/*
 * Shpper eSIM Help page (assets/js/shpper-help.js). Everything is scoped to .shpper-legal.sh-on,
 * which the script adds, so without JavaScript the guide renders exactly as before. Carries its
 * own dark values — keep it out of the dark-mode generator's input.
 */
.shpper-legal.sh-on {
	--sh-ink: #15212e;
	--sh-text: #3d4855;
	--sh-muted: #6f7a87;
	--sh-line: #e2e8ef;
	--sh-card: #ffffff;
	--sh-soft: #f3f6fa;
	--sh-blue: #2b8fe6;
	--sh-navy: #1f3043;
	--sh-yellow: #f3da14;
	--sh-ease: cubic-bezier(.2, .8, .2, 1);
	position: relative;
}
html[data-theme="dark"] .shpper-legal.sh-on {
	--sh-ink: #e8eef4;
	--sh-text: #c2ccd6;
	--sh-muted: #8fa0af;
	--sh-line: rgba(255, 255, 255, .12);
	--sh-card: #19232e;
	--sh-soft: #141c25;
}

/* ---- sticky tool bar ---------------------------------------------------- */
.shpper-legal.sh-on .sh-bar {
	position: sticky;
	top: 8px;
	z-index: 20;
	margin: 0 0 28px;
	padding: 14px 16px;
	border: 1px solid var(--sh-line);
	border-radius: 18px;
	background: var(--sh-card);
	box-shadow: 0 18px 40px -30px rgba(16, 38, 58, .55);
	backdrop-filter: blur(6px);
}
.shpper-legal.sh-on .sh-bar__tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.shpper-legal.sh-on input.sh-search {
	flex: 1 1 220px;
	min-width: 0;
	height: 44px;
	padding-inline: 16px;
	border: 1px solid var(--sh-line);
	border-radius: 999px;
	background: var(--sh-soft);
	color: var(--sh-ink) !important;
	font-family: inherit;
	font-size: 15px !important;
	transition: border-color .3s ease, box-shadow .3s ease;
}
.shpper-legal.sh-on input.sh-search:focus { outline: none; border-color: var(--sh-blue); box-shadow: 0 0 0 4px rgba(43, 143, 230, .18); }
html .shpper-legal.sh-on button.sh-btn {
	flex: none;
	height: 44px;
	margin: 0;
	padding-inline: 20px;
	border: 1px solid var(--sh-line);
	border-radius: 999px;
	background: var(--sh-soft);
	color: var(--sh-ink);
	font: 600 14px/1 inherit;
	text-transform: none;
	cursor: pointer;
	transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}
html .shpper-legal.sh-on button.sh-btn:hover { border-color: var(--sh-blue); color: var(--sh-blue); }

.shpper-legal.sh-on .sh-chips {
	display: flex;
	gap: 8px;
	margin-top: 12px;
	padding-bottom: 2px;
	overflow-x: auto;
	scrollbar-width: none;
}
.shpper-legal.sh-on .sh-chips::-webkit-scrollbar { display: none; }
.shpper-legal.sh-on a.sh-chip {
	flex: none;
	padding: 8px 14px;
	border: 1px solid var(--sh-line);
	border-radius: 999px;
	color: var(--sh-muted) !important;
	font-size: 13.5px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.shpper-legal.sh-on a.sh-chip:hover { border-color: var(--sh-blue); color: var(--sh-blue) !important; }
.shpper-legal.sh-on a.sh-chip.is-current { border-color: var(--sh-navy); background: var(--sh-navy); color: #fff !important; }
html[data-theme="dark"] .shpper-legal.sh-on a.sh-chip.is-current { border-color: var(--sh-blue); background: var(--sh-blue); }

.shpper-legal.sh-on .sh-hide { display: none; }

/* ---- iPhone / Android filter -------------------------------------------- */
.shpper-legal.sh-on .sh-plat { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--sh-line); }
.shpper-legal.sh-on .sh-plat__label { color: var(--sh-muted) !important; font-size: 13px !important; font-weight: 600; }
.shpper-legal.sh-on .sh-plat__group { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--sh-soft); }
html .shpper-legal.sh-on button.sh-plat__btn {
	margin: 0;
	padding: 8px 18px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--sh-muted);
	font: 600 13.5px/1 inherit;
	text-transform: none;
	cursor: pointer;
	transition: background-color .3s ease, color .3s ease;
}
html .shpper-legal.sh-on button.sh-plat__btn[aria-pressed="true"] { background: var(--sh-navy); color: #fff; }
html[data-theme="dark"] .shpper-legal.sh-on button.sh-plat__btn[aria-pressed="true"] { background: var(--sh-blue); }

/* ---- questions ---------------------------------------------------------- */
.shpper-legal.sh-on .sh-qa { border-bottom: 1px solid var(--sh-line); }
html .shpper-legal.sh-on button.sh-qa__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	width: 100%;
	margin: 0;
	padding: 18px 0;
	border: 0;
	background: transparent;
	color: var(--sh-ink);
	font-family: inherit;
	font-size: 19px;
	font-weight: 500;
	line-height: 1.35;
	text-align: start;
	text-transform: none;
	cursor: pointer;
	transition: color .25s ease;
}
html .shpper-legal.sh-on button.sh-qa__q:hover { color: var(--sh-blue); background: transparent; }
.shpper-legal.sh-on .sh-qa__icon {
	position: relative;
	flex: none;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--sh-yellow);
	transition: transform .45s var(--sh-ease);
}
.shpper-legal.sh-on .sh-qa__icon::before,
.shpper-legal.sh-on .sh-qa__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 11px;
	height: 2px;
	margin: -1px 0 0 -5.5px;
	border-radius: 2px;
	background: #15212e;
	transition: transform .4s var(--sh-ease);
}
.shpper-legal.sh-on .sh-qa__icon::after { transform: rotate(90deg); }
.shpper-legal.sh-on .sh-qa.is-open .sh-qa__icon { transform: rotate(180deg); }
.shpper-legal.sh-on .sh-qa.is-open .sh-qa__icon::after { transform: rotate(0); }
.shpper-legal.sh-on .sh-qa__body { padding: 0 0 20px; padding-inline-end: 48px; }
.shpper-legal.sh-on .sh-qa__body > :first-child { margin-top: 0; }
@media (prefers-reduced-motion: no-preference) {
	.shpper-legal.sh-on .sh-qa.is-open .sh-qa__body { animation: sh-open .45s var(--sh-ease); }
}
.shpper-legal.sh-on .sh-empty { padding: 28px 0; color: var(--sh-muted) !important; }
.shpper-legal.sh-on.is-searching h2 { margin-top: 1em; }

/* ---- copy buttons on values you have to type ---------------------------- */
.shpper-legal.sh-on .sh-copy { display: inline-flex; align-items: center; gap: 4px; }
html .shpper-legal.sh-on button.sh-copy__btn {
	display: inline-grid;
	place-items: center;
	width: 28px;
	height: 28px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--sh-line);
	border-radius: 8px;
	background: var(--sh-card);
	color: var(--sh-muted);
	cursor: pointer;
	transition: color .25s ease, border-color .25s ease, background-color .25s ease;
}
html .shpper-legal.sh-on button.sh-copy__btn:hover { border-color: var(--sh-blue); color: var(--sh-blue); }
.shpper-legal.sh-on .sh-copy__btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html .shpper-legal.sh-on .sh-copy.is-copied button.sh-copy__btn { border-color: #2fb574; color: #2fb574; }
.shpper-legal.sh-on .sh-copy.is-copied::after {
	content: "✓";
	color: #2fb574;
	font-weight: 700;
}

/* ---- back to top -------------------------------------------------------- */
html button.sh-top {
	position: fixed;
	z-index: 60;
	inset-inline-end: 22px;
	bottom: 22px;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #1f3043;
	color: #fff;
	cursor: pointer;
	opacity: 0;
	transform: translateY(12px);
	pointer-events: none;
	box-shadow: 0 16px 30px -16px rgba(16, 38, 58, .8);
	transition: opacity .35s ease, transform .35s cubic-bezier(.2, .8, .2, 1), background-color .3s ease;
}
html button.sh-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
html button.sh-top:hover { background: #2b8fe6; }
html button.sh-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 767px) {
	.shpper-legal.sh-on .sh-bar { padding: 12px; border-radius: 16px; }
	html .shpper-legal.sh-on button.sh-qa__q { font-size: 17px; padding: 15px 0; gap: 12px; }
	.shpper-legal.sh-on .sh-qa__body { padding-inline-end: 0; }
	.shpper-legal.sh-on .sh-plat { flex-wrap: wrap; gap: 8px; }
	html button.sh-top { inset-inline-end: 14px; bottom: 14px; }
}

@keyframes sh-open { from { opacity: 0; transform: translate3d(0, -8px, 0); } to { opacity: 1; transform: none; } }
