/* The same compact search and locale controls stay available on every page. */
.header { padding-top: env(safe-area-inset-top, 0px); }
html { scroll-padding-top: calc(100px + env(safe-area-inset-top, 0px)); }
.header-inner { gap: 24px; }
.header .desktop-nav { margin-left: auto; }
.header-actions { gap: 10px; flex-shrink: 0; }
.nav-search, .nav-preferences { min-height: 44px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #d2dbcf; background: #fffef94d; color: var(--ink); }
.nav-search { width: 44px; padding: 0; }
.nav-search .icon { width: 20px; height: 20px; }
.nav-preferences { gap: 8px; padding: 0 12px; font-size: 11px; font-weight: 650; letter-spacing: .2px; white-space: nowrap; }
.nav-search:hover, .nav-preferences:hover { background: #ffffffa8; border-color: #adbfaf; }
.nav-search:active, .nav-preferences:active { background: #ffebdd; }
.nav-globe, .nav-down { display: inline-flex; align-items: center; }
.nav-globe .icon { width: 17px; height: 17px; }
.nav-down .icon { width: 12px; height: 12px; }
.nav-divider { width: 1px; height: 13px; background: #c3cdc1; }
.preferences-dialog { width: min(480px, calc(100% - 32px)); }
.preferences-content { padding: 34px 30px 28px; }
.preferences-content h2 { padding-right: 18px; }
.preferences-intro { margin: 0 0 23px; font-size: 13px; line-height: 1.7; }
.preferences-content .dialog-feature-icon { margin-bottom: 18px; }
.preference-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-width: 0; margin: 0 0 22px; padding: 0; border: 0; }
.preference-options legend { font-size: 13px; font-weight: 700; margin: 0 0 10px; padding: 0; }
.preference-choice { display: flex; align-items: center; gap: 10px; padding: 15px 13px; min-height: 76px; border: 1px solid #dee3d7; background: #fff; border-radius: 13px; cursor: pointer; }
.preference-choice:hover { border-color: #f0b59c; }
.preference-choice:has(input:checked) { background: #fff2e9; border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.preference-choice:has(input:focus-visible) { outline: 3px solid #286651; outline-offset: 3px; }
.preference-choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--orange); flex-shrink: 0; }
.preference-choice strong { display: block; font-size: 13px; font-weight: 650; }
.preference-choice small { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.preference-rate-note { padding: 12px 14px; background: #eff3e9; border: 1px solid #e0e6d8; border-radius: 10px; font-size: 11px; line-height: 1.7; margin-bottom: 20px; }
.preference-save { width: 100%; }
.preference-actions { display: flex; gap: 10px; }
.preference-actions .preference-save { flex: 1; width: auto; }
.preference-actions .preference-cancel { flex: 0 0 auto; }
.currency-note { color: var(--muted); font-size: 10px; line-height: 1.55; margin-top: 9px; }
.checkout-content .currency-note { margin: 8px 0 16px; }
@media (max-width: 1100px) and (min-width: 641px) {
  .header-inner { margin-left: 20px; margin-right: 20px; gap: 16px; }
  .header .desktop-nav { gap: 19px; }
  .header .account-button { width: 44px; padding: 0; justify-content: center; }
  .header .account-button > span:not(.account-icon) { display: none; }
}
@media (max-width: 760px) and (min-width: 641px) {
  .header .brand { font-size: 27px; }
  .header .brand-icon { width: 30px; height: 34px; margin-right: 7px; }
  .header-inner { gap: 13px; margin-left: 16px; margin-right: 16px; }
  .header .desktop-nav { gap: 14px; }
  .header .desktop-nav a { font-size: 12px; }
  .header-actions { gap: 6px; }
  .nav-preferences { padding: 0 9px; }
  .nav-globe { display: none; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: calc(76px + env(safe-area-inset-top, 0px)); }
  .bottom-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .bottom-nav > a { min-width: 44px; min-height: 50px; white-space: nowrap; }
  /* The centre eSIM tab is the primary action, raised like common mobile apps. */
  .bottom-nav > a.bottom-nav-center { position: relative; justify-content: flex-end; }
  .bottom-nav > a.bottom-nav-center > span:first-child {
    position: absolute;
    left: 50%;
    top: -22px;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-left: -27px;
    border-radius: 50%;
    background: var(--orange);
    color: #fff;
    box-shadow: 0 8px 20px #d95f2a4d, 0 0 0 4px #fffefa;
    transform: translateZ(0);
    transition: transform .2s ease, box-shadow .2s ease;
  }
  .bottom-nav > a.bottom-nav-center > span:first-child > .icon { width: 25px; height: 25px; stroke-width: 1.9; }
  .bottom-nav > a.bottom-nav-center:active > span:first-child { transform: scale(.94); }
  .bottom-nav > a.bottom-nav-center.active { color: var(--orange-dark); }
  .bottom-nav > a.bottom-nav-center.active:before { display: none; }
  .bottom-nav > a.bottom-nav-center.active > span:first-child { background: var(--orange-dark); box-shadow: 0 8px 22px #d95f2a66, 0 0 0 4px #fffefa; }
  .bottom-nav > a.bottom-nav-center > span:last-child { margin-top: auto; padding-bottom: 1px; line-height: 1.2; }
  /* The centre eSIM tab is the primary action, raised like common mobile apps. */
  .bottom-nav > a.bottom-nav-center { position: relative; justify-content: flex-end; }
  .bottom-nav > a.bottom-nav-center > span:first-child {
    position: absolute;
    left: 50%;
    top: -22px;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-left: -27px;
    border-radius: 50%;
    background: var(--orange);
    color: #fff;
    box-shadow: 0 8px 20px #d95f2a4d, 0 0 0 4px #fffefa;
    transform: translateZ(0);
    transition: transform .2s ease, box-shadow .2s ease;
  }
  .bottom-nav > a.bottom-nav-center > span:first-child > .icon { width: 25px; height: 25px; stroke-width: 1.9; }
  .bottom-nav > a.bottom-nav-center:active > span:first-child { transform: scale(.94); }
  .bottom-nav > a.bottom-nav-center.active { color: var(--orange-dark); }
  .bottom-nav > a.bottom-nav-center.active:before { display: none; }
  .bottom-nav > a.bottom-nav-center.active > span:first-child { background: var(--orange-dark); box-shadow: 0 8px 22px #d95f2a66, 0 0 0 4px #fffefa; }
  .bottom-nav > a.bottom-nav-center > span:last-child { margin-top: auto; padding-bottom: 1px; line-height: 1.2; }
  .header-inner { gap: 10px; margin-left: 14px; margin-right: 14px; }
  .header-actions { gap: 6px; }
  .header .account-button { display: none; }
  .nav-search { width: 44px; height: 44px; border-radius: 12px; }
  .nav-preferences { gap: 6px; font-size: 10px; min-height: 44px; padding: 0 9px; }
  .nav-globe, .nav-down { display: none; }
  .preferences-dialog { width: 100%; max-width: 100%; }
  .preferences-content { padding: 32px 24px calc(26px + env(safe-area-inset-bottom)); }
  .preferences-content h2 { font-size: 24px; }
  .preference-options { gap: 10px; }
  .preference-choice { padding: 13px 11px; gap: 8px; }
  .preference-choice strong { font-size: 12px; }
  .preference-choice small { font-size: 10px; }
  .preferences-intro { font-size: 12px; }
  .currency-note { font-size: 9px; }
}
@media (max-width: 359px) {
  .header-inner { margin-left: 11px; margin-right: 11px; gap: 6px; }
  .header .brand { font-size: 26px; letter-spacing: -1.5px; }
  .header .brand-icon { width: 27px; height: 31px; margin-right: 6px; }
  .header .brand-icon svg { width: 18px; height: 22px; }
  .header-actions { gap: 4px; }
  .nav-preferences { padding: 0 8px; gap: 5px; }
  .preferences-content { padding-left: 20px; padding-right: 20px; }
  .preference-choice { gap: 7px; padding: 12px 9px; }
  .preference-choice strong { font-size: 11px; }
}
.policy-links { display: flex; align-items: center; flex-wrap: wrap; gap: 0 24px; }
.policy-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-soft); font-size: 12px; text-decoration: underline; text-decoration-color: #afb9ac; text-underline-offset: 4px; }
.policy-links a:hover, .policy-links a[aria-current="page"] { color: var(--orange-dark); text-decoration-color: currentColor; }
.footer-policy-links { max-width: 1184px; margin: 16px auto 0; border-top: 1px solid #dce2d599; padding-top: 10px; }
.page-policy-links { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 14px; }
.auth-policy-links { justify-content: center; column-gap: 16px; margin-top: 16px; }
.auth-policy-links a { font-size: 11px; }
.checkout-policies { margin-top: 18px; padding: 14px 16px 6px; background: var(--mint); border-radius: 12px; }
.checkout-policies p, .checkout-policies .policy-links a { font-size: 11px; }
.checkout-policies .policy-links { column-gap: 16px; }
@media (max-width: 1300px) { .footer-policy-links { margin-left: 40px; margin-right: 40px; } }
@media (max-width: 960px) { .footer-policy-links { margin-left: 28px; margin-right: 28px; } }
@media (max-width: 640px) {
  .footer-policy-links { margin-left: 20px; margin-right: 20px; gap: 0 20px; }
  .auth-policy-links { column-gap: 14px; }
  .policy-links a { font-size: 11px; }
}
