/*
 * PT eSIM brand values and this app's own components (DESIGN.md). Direction: Boarding Pass — a light
 * terminal ground, cedar green owning whole bands, and every plan drawn as a boarding pass.
 * pyr-base.css (Pyramidal.Web) carries the shared token-driven Bootstrap bridge rules and loads
 * before this file, so equal-specificity rules here win by source order.
 *
 * Contrast ratios below are computed (WCAG relative luminance), not eyeballed.
 *
 * COMMENT HAZARD: never write the two token prefixes back-to-back with a slash and no spaces inside a
 * CSS comment — the "-*" followed by "/" ends the comment early and swallows the next rule. Always
 * write "--pyr-* / --bs-*" with spaces.
 */

:root {
  /* ---- Structure ---- */
  --pyr-space-1: 0.25rem;
  --pyr-space-2: 0.5rem;
  --pyr-space-3: 0.75rem;
  --pyr-space-4: 1rem;
  --pyr-space-5: 1.5rem;
  --pyr-space-6: 2rem;
  --pyr-space-7: 3rem;
  --pyr-space-8: 4rem;
  --pyr-space-9: 6rem;
  --pyr-radius-sm: 0.625rem;
  --pyr-radius-md: 0.875rem;
  --pyr-radius-lg: 1.25rem;
  --pyr-radius-xl: 1.75rem;
  --pyr-radius-pill: 9999px;
  --pyr-field-narrow-width: 22rem;
  --pyr-field-w-xs: 6rem;
  --pyr-field-w-sm: 7rem;
  --pyr-field-w-md: 9rem;
  --pyr-shadow-sm: 0 1px 2px rgba(16, 20, 18, 0.06);
  --pyr-shadow-md: 0 1px 2px rgba(16, 20, 18, 0.06), 0 12px 32px -14px rgba(16, 20, 18, 0.28);
  --pyr-shadow-lg: 0 2px 4px rgba(16, 20, 18, 0.06), 0 24px 48px -20px rgba(16, 20, 18, 0.4);
  --pyr-drop-md: drop-shadow(0 1px 1px rgba(16, 20, 18, 0.08)) drop-shadow(0 10px 14px rgba(16, 20, 18, 0.14));
  --pyr-drop-lg: drop-shadow(0 2px 2px rgba(16, 20, 18, 0.08)) drop-shadow(0 18px 24px rgba(16, 20, 18, 0.22));
  --pyr-tap-min: 44px;
  --pyr-ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --pyr-z-dropdown: 1000;
  --pyr-z-sticky: 1020;
  --pyr-z-modal-backdrop: 1040;
  --pyr-z-modal: 1050;
  --pyr-z-toast: 1080;
  --pyr-z-tooltip: 1090;

  /* ---- Type. Archivo is variable on width: the display voice runs wide (font-stretch). Arabic
     glyphs fall through to Tajawal / Noto Sans Arabic (unicode-range scoped in fonts.css). ---- */
  --pyr-font-display: "Archivo", "Tajawal", ui-sans-serif, system-ui, sans-serif;
  --pyr-font-heading: "Archivo", "Tajawal", ui-sans-serif, system-ui, sans-serif;
  --pyr-font-body: "Inter", "Noto Sans Arabic", system-ui, sans-serif;
  --pyr-font-data: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --pyr-font-instrument: "Archivo", "Tajawal", ui-sans-serif, sans-serif;
  --pyr-stretch-wide: 118%;

  --pyr-text-display: 3rem;
  --pyr-text-headline: 1.75rem;
  --pyr-text-title: 1.25rem;
  --pyr-text-body: 1rem;
  --pyr-text-sm: 0.875rem;
  --pyr-text-label: 0.75rem;
  --pyr-text-data: 0.9375rem;
  --pyr-text-caption: 0.6875rem;

  /* ---- Brand hues ---- */
  --pyr-ink: #101412;
  --pyr-cedar: #007A52;                  /* white text on it 5.38:1; as text on --pyr-bg 5.05:1 */
  --pyr-cedar-deep: #005C3D;             /* hover fill; white text 8.08:1 */
  --pyr-mint: #B7F5D8;                   /* ink text 15.09:1 */
  --pyr-mint-soft: #E3F7EE;
  --pyr-tangerine: #FF8A3D;              /* "you are here" only; ink text 7.92:1, never text itself */
  --pyr-gold: #8F660F;                   /* VIP and PT Ultra only; white text 5.15:1 */
  --pyr-gold-ink: #6B4C0C;               /* 7.88:1 on white */
  --pyr-success: #16A34A;
  --pyr-success-ink: #166534;
  --pyr-warning: #D97706;
  --pyr-warning-ink: #92400E;
  --pyr-danger: #DC2626;                 /* white text 4.83:1 */
  --pyr-danger-ink: #B91C1C;

  /* ---- Surfaces and text ---- */
  --pyr-bg: #F7F8F6;
  --pyr-surface: #FFFFFF;
  --pyr-surface-2: #EEF1EE;
  --pyr-recessed: #FFFFFF;
  --pyr-border: #DDE3DD;
  --pyr-border-strong: #7C8A80;          /* 3.62:1 on white: real control borders */
  --pyr-text: var(--pyr-ink);            /* 17.43:1 on --pyr-bg */
  --pyr-text-muted: #4B5750;             /* 7.10:1 on --pyr-bg, 6.64:1 on --pyr-surface-2 */
  --pyr-on-accent: #FFFFFF;
  --pyr-primary: var(--pyr-cedar);
  --pyr-primary-hover: var(--pyr-cedar-deep);
  --pyr-link: var(--pyr-cedar);

  /* The cedar band (home hero, footer): white text, mint-tinted secondary text (4.78:1). */
  --pyr-band-bg: var(--pyr-cedar);
  --pyr-on-band: #FFFFFF;
  --pyr-on-band-muted: #DFF7EC;
  --pyr-on-band-rule: rgba(255, 255, 255, 0.25);

  /* A hairline keeps a white-edged flag from dissolving into a white surface. */
  --pyr-flag-edge: rgba(16, 20, 18, 0.12);

  /* The scrim under white text on a photo: at 62% ink even a pure white photo leaves white text 5.9:1. */
  --pyr-photo-scrim: rgba(16, 20, 18, 0.62);
  --pyr-photo-scrim-deep: rgba(16, 20, 18, 0.82);

  /* "You are here": the current tab, the focused pass. */
  --pyr-signal: var(--pyr-tangerine);
  --pyr-on-signal: var(--pyr-ink);

  --pyr-status-success: var(--pyr-success-ink);
  --pyr-status-warning: var(--pyr-warning-ink);
  --pyr-status-danger: var(--pyr-danger-ink);
  --pyr-status-info: var(--pyr-cedar);

  --pyr-success-glow: rgba(22, 163, 74, 0.10);
  --pyr-success-line: rgba(22, 163, 74, 0.35);
  --pyr-warning-glow: rgba(217, 119, 6, 0.10);
  --pyr-warning-line: rgba(217, 119, 6, 0.35);
  --pyr-danger-glow: rgba(220, 38, 38, 0.08);
  --pyr-danger-line: rgba(220, 38, 38, 0.35);
  --pyr-neutral-glow: rgba(75, 87, 80, 0.08);
  --pyr-accent-line: rgba(0, 122, 82, 0.35);
  --pyr-on-danger: #FFFFFF;
  --pyr-on-danger-hover: #FFFFFF;

  --pyr-focus-ring-glow: rgba(0, 122, 82, 0.22);
  --pyr-focus-ring-ink: var(--pyr-cedar);

  /* Bridge the Bootstrap utility vars that .text-primary / .bg-primary / .text-danger read. */
  --bs-primary: var(--pyr-cedar);
  --bs-primary-rgb: 0, 122, 82;
  --bs-danger-rgb: 185, 28, 28;
  --bs-code-color: var(--pyr-cedar-deep);

  /* Browser surfaces nobody draws still carry the palette. */
  accent-color: var(--pyr-cedar);
  caret-color: var(--pyr-cedar);
  scrollbar-color: var(--pyr-border-strong) var(--pyr-bg);
}

/* =====================================================================================
   Base overrides on pyr-base.css
   ===================================================================================== */

/* The shared pager (_Pager.cshtml) in the brand's colours, light and dark alike. */
.pagination {
  --bs-pagination-color: var(--pyr-link);
  --bs-pagination-bg: var(--pyr-surface);
  --bs-pagination-border-color: var(--pyr-border);
  --bs-pagination-hover-color: var(--pyr-primary-hover);
  --bs-pagination-hover-bg: var(--pyr-surface-2);
  --bs-pagination-hover-border-color: var(--pyr-border);
  --bs-pagination-focus-color: var(--pyr-primary-hover);
  --bs-pagination-focus-bg: var(--pyr-surface-2);
  --bs-pagination-focus-box-shadow: 0 0 0 0.25rem var(--pyr-focus-ring-glow);
  --bs-pagination-active-color: var(--pyr-on-accent);
  --bs-pagination-active-bg: var(--pyr-primary);
  --bs-pagination-active-border-color: var(--pyr-primary);
  --bs-pagination-disabled-color: var(--pyr-text-muted);
  --bs-pagination-disabled-bg: var(--pyr-surface);
  --bs-pagination-disabled-border-color: var(--pyr-border);
}

h1, h2, h3, .h1, .h2, .h3 {
  font-stretch: 108%;
  font-weight: 750;
  letter-spacing: -0.015em;
}
html[lang="ar"] h1, html[lang="hi"] h1, html[lang="ar"] h2, html[lang="hi"] h2, html[lang="ar"] h3, html[lang="hi"] h3,
html[lang="ar"] .h1, html[lang="hi"] .h1, html[lang="ar"] .h2, html[lang="hi"] .h2, html[lang="ar"] .h3, html[lang="hi"] .h3 {
  letter-spacing: 0;
  line-height: 1.35;
}

.btn { border-radius: var(--pyr-radius-pill); font-weight: 600; }
.btn-lg { padding: 0.875rem 1.75rem; font-size: 1.0625rem; }

.form-control, .form-select { border-color: var(--pyr-border-strong); }

/* =====================================================================================
   Navigation — the storefront bar, the app shell's top bar, their menus. The section the visitor is
   in carries one tangerine dot ("you are here"); weight marks it too, so colour is never the only cue.
   ===================================================================================== */

.navbar { padding-block: var(--pyr-space-2); }
.navbar .navbar-brand { font-stretch: var(--pyr-stretch-wide); font-weight: 800; letter-spacing: 0; }
.navbar .navbar-brand .pyr-brand-logo { color: inherit; }
.navbar-nav .nav-link { font-weight: 500; }
.navbar .nav-link:focus-visible {
  outline: 2px solid var(--pyr-focus-ring-ink);
  outline-offset: 2px;
  border-radius: var(--pyr-radius-sm);
  box-shadow: none;
}
.navbar .nav-link[aria-current="page"] { color: var(--pyr-ink) !important; font-weight: 700; }
.navbar-toggler { border-radius: var(--pyr-radius-sm); }
.navbar-toggler:focus { border-color: var(--pyr-cedar); box-shadow: 0 0 0 3px var(--pyr-focus-ring-glow); }

.pyr-site-header { position: sticky; top: 0; z-index: var(--pyr-z-sticky); }
.pyr-site-nav { padding-block: var(--pyr-space-3); }
.pyr-site-nav .navbar-brand { font-size: var(--pyr-text-title); margin-inline-end: var(--pyr-space-6); flex-shrink: 0; }
.pyr-site-nav .nav-link { position: relative; }
.pyr-site-nav .nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--pyr-signal);
}
.pyr-nav-cta .btn { padding: 0.5rem 1.25rem; min-height: var(--pyr-tap-min); display: inline-flex; align-items: center; justify-content: center; }

/* The header's bell. The bar is pinned LTR (pyr-base.css), so the margins are physical. Below xl it sits beside the
   menu button; at xl after the account links. */
.pyr-header-icons { display: flex; align-items: center; gap: var(--pyr-space-1); margin-left: auto; margin-right: var(--pyr-space-2); }
.pyr-header-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--pyr-tap-min);
  height: var(--pyr-tap-min);
  border-radius: var(--pyr-radius-pill);
  color: var(--pyr-ink);
  flex-shrink: 0;
}
.pyr-header-icon:hover { color: var(--pyr-primary); background: var(--pyr-surface-2); }
.pyr-header-icon:focus-visible { outline: 2px solid var(--pyr-focus-ring-ink); outline-offset: 2px; }
.pyr-header-badge {
  position: absolute;
  top: 0.25rem;
  right: 0.125rem;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  border-radius: var(--pyr-radius-pill);
  background: var(--pyr-danger);
  color: var(--pyr-on-accent);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.25rem;
  text-align: center;
}
@media (min-width: 1200px) {
  .pyr-site-nav .pyr-header-icons { order: 1; margin-left: var(--pyr-space-2); margin-right: 0; }
}

/* The display-currency picker (_CurrencyPicker) beside the header's bell: a native disclosure whose panel drops below
   the bar, across it on a phone, under the button on a wider screen. */
.pyr-currency { display: block; text-align: end; }
.pyr-header-icons .pyr-currency > summary { min-width: var(--pyr-tap-min); justify-content: center; padding-inline: var(--pyr-space-2); }
.pyr-header-icons .pyr-currency-panel {
  position: absolute;
  top: 100%;
  inset-inline: var(--pyr-space-3);
  z-index: 1035;
  margin-top: 0;
  box-shadow: var(--pyr-shadow-md);
}
@media (min-width: 576px) {
  .pyr-header-icons .pyr-currency { position: relative; }
  .pyr-header-icons .pyr-currency-panel { inset-inline: auto 0; top: calc(100% + var(--pyr-space-1)); width: 20rem; }
}
.pyr-currency > summary { list-style: none; cursor: pointer; min-height: var(--pyr-tap-min); display: inline-flex; align-items: center; }
.pyr-currency > summary::-webkit-details-marker { display: none; }
.pyr-currency-panel {
  margin-top: var(--pyr-space-2);
  max-height: min(24rem, 60vh);
  overflow-y: auto;
  padding: var(--pyr-space-3);
  border: 1px solid var(--pyr-border);
  border-radius: var(--pyr-radius-md);
  background: var(--pyr-surface);
  color: var(--pyr-text);
  text-align: start;
}
.pyr-currency-heading { margin: 0 0 var(--pyr-space-2); font-weight: 600; }
.pyr-currency-panel .tab-pane { margin: 0; padding: var(--pyr-space-2) 0 0; border: 0; min-width: 0; }
.pyr-currency-option { display: flex; align-items: center; gap: var(--pyr-space-2); min-height: var(--pyr-tap-min); margin: 0; padding: 0; }
.pyr-currency-option .form-check-input { float: none; margin: 0; flex-shrink: 0; }

/* A page's tabs (_TabBar): one row that scrolls sideways on a phone, never wraps. */
.pyr-tabs {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  margin-bottom: var(--pyr-space-4);
}
.pyr-tabs .nav-link { min-height: var(--pyr-tap-min); white-space: nowrap; color: var(--pyr-text); font-weight: 500; }
.pyr-tabs .nav-link.active { color: var(--pyr-ink); font-weight: 700; }

/* The bar expands at xl (navbar-expand-xl): a signed-in account's links need the width on one line. */
@media (min-width: 1200px) {
  .pyr-site-links { gap: var(--pyr-space-2); }
  .pyr-site-nav .navbar-nav .nav-link { padding-inline: var(--pyr-space-3); white-space: nowrap; }
  /* The bar is pinned LTR (pyr-base.css), so a physical centre is the same in every locale. */
  .pyr-site-nav .nav-link[aria-current="page"]::after { left: 50%; bottom: 0; transform: translateX(-50%); }
  .pyr-account-links { margin-inline-start: auto; align-items: center; gap: var(--pyr-space-2); }
  .pyr-nav-cta { margin-inline-start: var(--pyr-space-2); }
}
@media (min-width: 1400px) {
  .pyr-site-nav .pyr-account-email { max-width: 12rem; }
}
/* The one long label takes two lines for someone signed in, whose bar has the most links, rather than pushing it off the screen in a longer language. */
@media (min-width: 1200px) {
  .pyr-site-nav .navbar-nav .nav-link.pyr-nav-long { max-width: 11rem; line-height: 1.2; white-space: normal; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .pyr-site-nav > .container { max-width: none; }
}
/* Up to 1400px a signed-in bar has no room for the address; the icon opens the menu and the address
   stays its accessible name. */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .pyr-site-nav .pyr-account-email {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* Below the desktop breakpoint the menu opens as a stacked list under the bar; the dot moves to the
   start of the current row. */
@media (max-width: 1199.98px) {
  /* The brand, the two header icons and the menu button share one row at 320px. */
  .pyr-site-nav .navbar-brand { margin-inline-end: var(--pyr-space-2); }
  .pyr-site-nav .navbar-collapse {
    margin-block-start: var(--pyr-space-3);
    padding-block: var(--pyr-space-3) var(--pyr-space-2);
    border-top: 1px solid var(--pyr-border);
  }
  /* Opens and closes at once: the header is sticky, so animating the menu's height re-lays out the whole page on
     every frame, which a phone shows as lag. */
  .pyr-site-nav .navbar-collapse.collapsing { transition: none; }
  .pyr-site-nav .navbar-nav .nav-link { padding-inline: var(--pyr-space-5) 0; }
  .pyr-site-nav .nav-link[aria-current="page"]::after {
    inset-inline-start: var(--pyr-space-2);
    top: 50%;
    transform: translateY(-50%);
  }
  .pyr-account-links {
    margin-block-start: var(--pyr-space-2);
    padding-block-start: var(--pyr-space-2);
    border-top: 1px solid var(--pyr-border);
  }
  .pyr-nav-cta { margin-block-start: var(--pyr-space-2); }
  .pyr-nav-cta .btn { width: 100%; }
}

/* The account menu's toggle: a pill holding a mint avatar and the address. */
.navbar .pyr-account-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--pyr-space-2);
  padding: 0.25rem 0.875rem 0.25rem 0.25rem;
  border: 1px solid var(--pyr-border);
  border-radius: var(--pyr-radius-pill);
  background: var(--pyr-surface);
  color: var(--pyr-ink) !important;
}
.navbar .pyr-account-toggle:hover,
.navbar .pyr-account-toggle.show {
  border-color: var(--pyr-cedar);
  background: var(--pyr-mint-soft);
  color: var(--pyr-ink) !important;
}
.pyr-account-avatar {
  display: inline-grid;
  place-items: center;
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 50%;
  background: var(--pyr-mint-soft);
  color: var(--pyr-cedar);
}
.pyr-account-toggle:hover .pyr-account-avatar,
.pyr-account-toggle.show .pyr-account-avatar { background: var(--pyr-surface); }
.pyr-account-avatar .pyr-account-icon { width: 1.125rem; height: 1.125rem; }

/* Menus: white, soft lift, rounded rows; the current language carries the tangerine dot. */
.dropdown-menu {
  background-color: var(--pyr-surface);
  padding: var(--pyr-space-2);
  min-width: 12rem;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--pyr-space-2);
  min-height: 2.5rem;
  padding: var(--pyr-space-2) var(--pyr-space-3);
  border-radius: var(--pyr-radius-sm);
}
.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--pyr-mint-soft);
  color: var(--pyr-ink);
}
.dropdown-item:focus-visible { outline: 2px solid var(--pyr-focus-ring-ink); outline-offset: -2px; }
.dropdown-item.active,
.dropdown-item:active {
  background-color: var(--pyr-mint-soft);
  color: var(--pyr-ink);
  font-weight: 600;
}
.dropdown-item[aria-current="true"]::after {
  content: "";
  flex-shrink: 0;
  width: 0.375rem;
  height: 0.375rem;
  margin-inline-start: auto;
  border-radius: 50%;
  background: var(--pyr-signal);
}
@media (pointer: coarse) { .dropdown-item { min-height: var(--pyr-tap-min); } }

/* The language switcher: a pill with a globe, white on the page, outlined white on the band. */
.pyr-language-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--pyr-space-2);
  min-height: 2.5rem;
  padding-inline: var(--pyr-space-3) var(--pyr-space-4);
  background-color: var(--pyr-surface);
  border-color: var(--pyr-border);
  color: var(--pyr-ink);
  font-weight: 500;
}
.pyr-language-toggle:hover,
.pyr-language-toggle:focus,
.pyr-language-toggle.show {
  background-color: var(--pyr-mint-soft);
  border-color: var(--pyr-cedar);
  color: var(--pyr-ink);
}
.pyr-flag.pyr-flag-language { width: 1.25rem; height: 0.9375rem; border-radius: 0.15rem; }
#pyr-language-switch .dropdown-item { display: flex; align-items: center; gap: var(--pyr-space-2); }
@media (pointer: coarse) { .pyr-language-toggle { min-height: var(--pyr-tap-min); } }

/* =====================================================================================
   Layout utilities
   ===================================================================================== */

/* A localized figure phrase ("1 GB · 30 days", "30 يوماً"): tabular numerals in the reading face and
   the page's own direction. .pyr-data's mono face has no Arabic glyphs and its forced LTR reverses
   the words around the number, so it stays on machine values (codes, IDs, timestamps) only. */
.pyr-figure { font-variant-numeric: tabular-nums; }

/* A date drawn by local-time.js never breaks inside itself (a hyphen is a break point); where the UTC stands
   beside the local time, the line may break between the two and nowhere else. */
time[data-pyr-time], time[data-pyr-time] > span { white-space: nowrap; }
time[data-pyr-time-utc] { white-space: normal; }

/* A "back" or "forward" arrow points along the reading direction, so it mirrors under RTL. */
html[dir="rtl"] .pyr-dir-arrow {
  display: inline-block;
  transform: scaleX(-1);
}

.pyr-font-instrument { font-family: var(--pyr-font-instrument); }

/* The delivered eSIM's QR code: an inline SVG needs an explicit width, and inline style is CSP-blocked. */
.pyr-qr-image { max-width: 220px; }
.pyr-qr-image svg { display: block; width: 100%; height: auto; }

.pyr-w-xs { width: var(--pyr-field-w-xs); }
.pyr-w-sm { width: var(--pyr-field-w-sm); }
.pyr-w-md { width: var(--pyr-field-w-md); }

/* A repeated item inside a panel that needs its own bounded surface (never a nested .pyr-panel). */
.pyr-inset-panel {
  background-color: var(--pyr-surface-2);
  border: 1px solid var(--pyr-border);
  border-radius: var(--pyr-radius-md);
  padding: var(--pyr-space-4);
}

.btn-vip:hover, .btn-vip:focus, .btn-vip:active {
  background-color: var(--pyr-gold-ink);
  border-color: var(--pyr-gold-ink);
  color: var(--pyr-on-accent);
}

[x-cloak] { display: none !important; }

/* bootstrap.rtl.min.css ships without .text-break; restated for both directions. */
.text-break {
  word-wrap: break-word !important;
  word-break: break-word !important;
}

.pyr-rate-input { max-width: 8rem; }
.pyr-fee-input { max-width: 6rem; }

/* =====================================================================================
   Brand mark
   ===================================================================================== */

.pyr-brand-logo { flex-shrink: 0; fill: var(--pyr-cedar); }
.pyr-band .pyr-brand-logo { fill: var(--pyr-on-band); }

/* =====================================================================================
   Flags (flag-icons, MIT). Images carry no text; the name beside them does.
   ===================================================================================== */

.pyr-flag {
  display: inline-block;
  flex-shrink: 0;
  object-fit: cover;
  background: var(--pyr-surface-2);
  box-shadow: inset 0 0 0 1px var(--pyr-flag-edge);
}
.pyr-flag-round { width: 1.75rem; height: 1.75rem; border-radius: 50%; }
.pyr-flag-rect { width: 2.25rem; height: 1.6875rem; border-radius: 0.3rem; }
.pyr-flag-glyph {
  display: inline-grid;
  place-items: center;
  color: var(--pyr-cedar);
  background: var(--pyr-mint-soft);
}
.pyr-flag-glyph svg { width: 62%; height: 62%; }

/* =====================================================================================
   Plan pass — every plan is a boarding pass: the main body carries the route and the figures,
   a perforated stub on the end side carries the price. The whole pass is one link.
   ===================================================================================== */

/* The wrapper carries the shadow, the lift and the focus ring: the pass itself is masked, and a
   mask clips box-shadow and outline along with the notches. */
.pyr-pass-wrap {
  border-radius: var(--pyr-radius-lg);
  filter: var(--pyr-drop-md);
  transition: transform 0.35s var(--pyr-ease-out), filter 0.35s var(--pyr-ease-out);
}
.pyr-pass-wrap:has(.pyr-pass:hover),
.pyr-pass-wrap:has(.pyr-pass:focus-visible) {
  transform: translateY(-3px);
  filter: var(--pyr-drop-lg);
}
/* Ink clears 3:1 against both the page ground and the cedar band (3.45:1); tangerine does not. */
.pyr-pass-wrap:has(.pyr-pass:focus-visible) {
  outline: 3px solid var(--pyr-ink);
  outline-offset: 4px;
}

/* The two notches are real holes cut on the stub line, so whatever sits behind shows through. */
.pyr-pass {
  --pyr-stub-w: 8.5rem;
  --pyr-notch-x: calc(100% - var(--pyr-stub-w));
  --pyr-notch-top: radial-gradient(circle at var(--pyr-notch-x) 0, transparent 0.75rem, #000 calc(0.75rem + 0.5px));
  --pyr-notch-bottom: radial-gradient(circle at var(--pyr-notch-x) 100%, transparent 0.75rem, #000 calc(0.75rem + 0.5px));
  position: relative;
  display: flex;
  min-height: 11rem;
  background: var(--pyr-surface);
  color: var(--pyr-text);
  border-radius: var(--pyr-radius-lg);
  text-decoration: none;
  -webkit-mask-image: var(--pyr-notch-top), var(--pyr-notch-bottom);
  -webkit-mask-composite: source-in;
  mask-image: var(--pyr-notch-top), var(--pyr-notch-bottom);
  mask-composite: intersect;
}
html[dir="rtl"] .pyr-pass { --pyr-notch-x: var(--pyr-stub-w); }
.pyr-pass:hover,
.pyr-pass:focus-visible { color: var(--pyr-text); outline: none; box-shadow: none; }

.pyr-pass-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--pyr-space-3);
  padding: var(--pyr-space-5) var(--pyr-space-5) var(--pyr-space-4);
}
.pyr-pass-route {
  display: flex;
  align-items: center;
  gap: var(--pyr-space-2);
  min-height: 1.75rem;
}
.pyr-pass-flags { display: flex; }
.pyr-pass-flags .pyr-flag + .pyr-flag { margin-inline-start: -0.5rem; }
.pyr-pass-code {
  font-family: var(--pyr-font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: var(--pyr-text-sm);
  letter-spacing: 0.08em;
  padding: 0.125rem 0.5rem;
  border-radius: var(--pyr-radius-pill);
  background: var(--pyr-mint-soft);
  color: var(--pyr-cedar-deep);
}
.pyr-pass-type {
  margin-inline-start: auto;
  font-size: var(--pyr-text-label);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pyr-text-muted);
}
.pyr-pass-dest {
  font-family: var(--pyr-font-display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: 1.375rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pyr-pass-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--pyr-space-2) var(--pyr-space-5);
  margin: auto 0 0;
}
.pyr-pass-fields dt,
.pyr-pass-stub-label {
  font-size: var(--pyr-text-caption);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pyr-text-muted);
}
.pyr-pass-fields dd {
  margin: 0;
  font-family: var(--pyr-font-instrument);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 1.125rem;
  font-variant-numeric: tabular-nums;
}
html[lang="ar"] .pyr-pass-fields dt, html[lang="hi"] .pyr-pass-fields dt,
html[lang="ar"] .pyr-pass-stub-label, html[lang="hi"] .pyr-pass-stub-label,
html[lang="ar"] .pyr-pass-type, html[lang="hi"] .pyr-pass-type { letter-spacing: 0; font-size: var(--pyr-text-label); }

.pyr-pass-stub {
  position: relative;
  flex: 0 0 var(--pyr-stub-w);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--pyr-space-3);
  padding: var(--pyr-space-5) var(--pyr-space-4) var(--pyr-space-4);
  border-inline-start: 2px dashed var(--pyr-border);
  text-align: end;
}
.pyr-pass-price {
  font-stretch: 112%;
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.15;
  font-family: var(--pyr-font-instrument);
}
.pyr-pass-go {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--pyr-cedar);
  color: var(--pyr-on-accent);
  transition: background-color 0.2s ease-out, color 0.2s ease-out;
}
.pyr-pass-go svg { width: 1.125rem; height: 1.125rem; }
.pyr-pass:hover .pyr-pass-go,
.pyr-pass:focus-visible .pyr-pass-go {
  background: var(--pyr-signal);
  color: var(--pyr-on-signal);
}

.pyr-pass-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: var(--pyr-space-5);
}

@media (max-width: 400px) {
  .pyr-pass { --pyr-stub-w: 7rem; }
  .pyr-pass-main { padding-inline: var(--pyr-space-4); }
}

/* =====================================================================================
   Cedar band — the brand colour owning a whole region (home hero, footer).
   ===================================================================================== */

.pyr-band {
  background: var(--pyr-band-bg);
  color: var(--pyr-on-band);
}
.pyr-footer a:not(.btn):not(.dropdown-item) { color: var(--pyr-on-band); }
.pyr-footer a:not(.btn):not(.dropdown-item):hover { color: var(--pyr-on-band-muted); }
.pyr-band :focus-visible { outline: 2px solid var(--pyr-on-band); outline-offset: 3px; }

.btn-on-band {
  background: var(--pyr-surface);
  border-color: var(--pyr-surface);
  color: var(--pyr-cedar-deep);
}
.btn-on-band:hover, .btn-on-band:focus, .btn-on-band:active {
  background: var(--pyr-mint);
  border-color: var(--pyr-mint);
  color: var(--pyr-ink);
}
.btn-outline-on-band {
  background: transparent;
  border: 2px solid var(--pyr-on-band);
  color: var(--pyr-on-band);
}
.btn-outline-on-band:hover, .btn-outline-on-band:focus, .btn-outline-on-band:active {
  background: var(--pyr-on-band);
  color: var(--pyr-cedar-deep);
}

/* =====================================================================================
   Home
   ===================================================================================== */

.pyr-home-hero { padding-block: var(--pyr-space-7) var(--pyr-space-8); overflow: hidden; }
.pyr-home-hero-grid {
  display: grid;
  gap: var(--pyr-space-7);
  align-items: center;
}
@media (min-width: 992px) {
  .pyr-home-hero { padding-block: var(--pyr-space-8) var(--pyr-space-9); }
  .pyr-home-hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}

.pyr-display {
  font-family: var(--pyr-font-display);
  font-stretch: var(--pyr-stretch-wide);
  font-weight: 850;
  font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: inherit;
  margin-bottom: var(--pyr-space-4);
}
html[lang="ar"] .pyr-display, html[lang="hi"] .pyr-display { letter-spacing: 0; line-height: 1.3; font-weight: 700; }
.pyr-home-sub {
  font-size: 1.125rem;
  max-width: 34rem;
  color: var(--pyr-on-band-muted);
  margin-bottom: var(--pyr-space-6);
}

/* Destination finder: a white panel on the band. */
.pyr-dest {
  background: var(--pyr-surface);
  color: var(--pyr-text);
  border-radius: var(--pyr-radius-xl);
  box-shadow: var(--pyr-shadow-lg);
  padding: var(--pyr-space-5);
  max-width: 40rem;
}
.pyr-dest-label {
  display: block;
  font-family: var(--pyr-font-display);
  font-stretch: 108%;
  font-weight: 750;
  font-size: var(--pyr-text-title);
  margin-bottom: var(--pyr-space-3);
}
.pyr-dest-search { position: relative; margin-bottom: var(--pyr-space-4); }
.pyr-dest-search svg {
  position: absolute;
  inset-inline-start: 1.125rem;
  top: 50%;
  width: 1.25rem;
  height: 1.25rem;
  transform: translateY(-50%);
  color: var(--pyr-text-muted);
  pointer-events: none;
}
.pyr-dest-search .form-control {
  min-height: 3.5rem;
  border-radius: var(--pyr-radius-pill);
  padding-inline-start: 3.25rem;
  font-size: 1.0625rem;
  background: var(--pyr-bg);
}

.pyr-seg {
  display: inline-flex;
  gap: var(--pyr-space-1);
  padding: var(--pyr-space-1);
  margin: 0 0 var(--pyr-space-4);
  border: 0;
  border-radius: var(--pyr-radius-pill);
  background: var(--pyr-surface-2);
}
.pyr-seg input { position: absolute; opacity: 0; pointer-events: none; }
.pyr-seg label {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 var(--pyr-space-4);
  border-radius: var(--pyr-radius-pill);
  font-weight: 600;
  font-size: var(--pyr-text-sm);
  color: var(--pyr-text-muted);
  cursor: pointer;
  transition: background-color 0.2s ease-out, color 0.2s ease-out;
}
.pyr-seg label:hover { color: var(--pyr-text); }
.pyr-seg input:checked + label { background: var(--pyr-signal); color: var(--pyr-on-signal); }
.pyr-seg input:focus-visible + label { box-shadow: 0 0 0 2px var(--pyr-surface), 0 0 0 4px var(--pyr-cedar); }

.pyr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pyr-space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.pyr-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--pyr-space-2);
  min-height: var(--pyr-tap-min);
  padding-block: 0;
  padding-inline: var(--pyr-space-2) var(--pyr-space-4);
  border: 1px solid var(--pyr-border);
  border-radius: var(--pyr-radius-pill);
  background: var(--pyr-surface);
  color: var(--pyr-text);
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s ease-out, background-color 0.15s ease-out;
}
.pyr-chip:hover { border-color: var(--pyr-cedar); background: var(--pyr-mint-soft); color: var(--pyr-text); }
.pyr-chip-meta { color: var(--pyr-text-muted); font-size: var(--pyr-text-sm); }
/* A long list (every country) as an even grid: two to a row on a phone, more as the width allows. */
.pyr-chips-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); }
.pyr-chips-grid .pyr-chip { display: flex; width: 100%; font-size: var(--pyr-text-sm); line-height: 1.25; }
.pyr-chips-grid .pyr-flag { width: 1.375rem; height: 1.375rem; flex-shrink: 0; }

/* Tabs are radios: the checked one decides which list shows, no script needed. */
.pyr-dest [data-dest-list] { display: none; }
.pyr-dest:has(#dest-tab-countries:checked) [data-dest-list="countries"],
.pyr-dest:has(#dest-tab-regions:checked) [data-dest-list="regions"],
.pyr-dest:has(#dest-tab-global:checked) [data-dest-list="global"] { display: flex; }
@supports not selector(:has(*)) {
  .pyr-dest [data-dest-list] { display: flex; }
}
/* While the visitor types, every list shows its matches (finder.js hides the rest) and the tabs step aside. */
.pyr-dest.is-filtering [data-dest-list] { display: flex; margin-bottom: var(--pyr-space-2); }
.pyr-dest.is-filtering .pyr-seg { display: none; }
/* Until the visitor types, the country list shows its first twelve: the popular countries, then the rest by name. */
.pyr-dest:not(.is-filtering) [data-dest-list="countries"] > li:nth-child(n + 13) { display: none; }
@media (max-width: 575.98px) {
  .pyr-dest:not(.is-filtering) [data-dest-list="countries"] > li:nth-child(n + 7) { display: none; }
  .pyr-home-hero { padding-block: var(--pyr-space-5) var(--pyr-space-6); }
  .pyr-home-hero-grid { gap: var(--pyr-space-5); }
  .pyr-home-sub { font-size: var(--pyr-text-body); margin-bottom: var(--pyr-space-4); }
  .pyr-dest { padding: var(--pyr-space-4); }
}
.pyr-dest-empty { margin: var(--pyr-space-2) 0 0; color: var(--pyr-text-muted); }
.pyr-dest-more {
  display: inline-flex;
  align-items: center;
  gap: var(--pyr-space-2);
  margin-top: var(--pyr-space-4);
  font-weight: 600;
  /* Above the featured passes below it in stacking order, so no pass can ever catch its taps. */
  position: relative;
  z-index: 4;
}
.pyr-dest-more svg { width: 1rem; height: 1rem; }

/* The featured passes, fanned like tickets in a hand: each pass behind the front one rises far
   enough to show its route row and destination, and keeps its price to itself. Every pass is aligned
   to the top and lifted by exactly the room the padding reserves above (rem, never a share of its own
   height), so a taller pass never rises past that room into the content above it. */
.pyr-pass-stack {
  display: grid;
  align-items: start;
  width: 100%;
  max-width: 27rem;
  margin-inline: auto;
  padding-block: var(--pyr-space-4);
}
.pyr-pass-stack:has(> :nth-child(2)) { padding-block-start: 6rem; }
.pyr-pass-stack:has(> :nth-child(3)) { padding-block-start: 12.5rem; }
.pyr-pass-stack > * { grid-area: 1 / 1; transition: transform 0.9s var(--pyr-ease-out); }
.pyr-pass-stack > :nth-child(1) { z-index: 3; }
.pyr-pass-stack > :nth-child(2) { z-index: 2; transform: translate(-9%, -6rem) rotate(-6deg); }
.pyr-pass-stack > :nth-child(3) { z-index: 1; transform: translate(9%, -12.5rem) rotate(5deg); }
.pyr-pass-stack > :nth-child(n + 2) .pyr-pass { background: var(--pyr-mint-soft); }
.pyr-pass-stack > :nth-child(n + 2) .pyr-pass-stub { border-inline-start-color: var(--pyr-mint); }
.pyr-pass-stack > :nth-child(n + 2) .pyr-pass-stub > * { visibility: hidden; }
.pyr-pass-stack > :nth-child(n + 2) .pyr-pass-code { background: var(--pyr-surface); }
@media (max-width: 575.98px) {
  .pyr-pass-stack { padding-inline: var(--pyr-space-3); }
  .pyr-pass-stack:has(> :nth-child(2)) { padding-block-start: 3.5rem; }
  .pyr-pass-stack:has(> :nth-child(3)) { padding-block-start: 6.5rem; }
  .pyr-pass-stack > :nth-child(2) { transform: translateY(-3.5rem) rotate(-2deg); }
  .pyr-pass-stack > :nth-child(3) { transform: translateY(-6.5rem) rotate(1.5deg); }
}
@media (prefers-reduced-motion: no-preference) {
  .pyr-pass-stack.is-dealing > :nth-child(n + 2) { transform: none; }
}

.pyr-section { padding-block: var(--pyr-space-8); }
.pyr-section-title {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  font-stretch: 112%;
  font-weight: 800;
  margin-bottom: var(--pyr-space-5);
}

.pyr-section-surface { background: var(--pyr-surface); }

/* How it works: three tickets along one dashed route line; the last one carries the QR code the
   bought pass becomes. */
.pyr-route {
  display: grid;
  gap: var(--pyr-space-6);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: pyr-route;
}
@media (min-width: 768px) {
  .pyr-route { grid-template-columns: repeat(3, minmax(0, 1fr)); position: relative; }
  .pyr-route::before {
    content: "";
    position: absolute;
    inset-inline: 2rem;
    top: 1.75rem;
    border-top: 2px dashed var(--pyr-border-strong);
  }
}
.pyr-route li { position: relative; }
.pyr-route-stop {
  --pyr-ticket-notch-l: radial-gradient(circle at 0 50%, transparent 0.5rem, #000 calc(0.5rem + 0.5px));
  --pyr-ticket-notch-r: radial-gradient(circle at 100% 50%, transparent 0.5rem, #000 calc(0.5rem + 0.5px));
  position: relative;
  display: grid;
  place-items: center;
  width: 5rem;
  height: 3.5rem;
  margin-bottom: var(--pyr-space-4);
  border-radius: var(--pyr-radius-md);
  background: var(--pyr-cedar);
  color: var(--pyr-on-accent);
  -webkit-mask-image: var(--pyr-ticket-notch-l), var(--pyr-ticket-notch-r);
  -webkit-mask-composite: source-in;
  mask-image: var(--pyr-ticket-notch-l), var(--pyr-ticket-notch-r);
  mask-composite: intersect;
}
.pyr-route-stop svg { width: 1.5rem; height: 1.5rem; }
.pyr-route-stop-scan svg { width: 1.75rem; height: 1.75rem; }
.pyr-route h3 { font-size: var(--pyr-text-title); margin-bottom: var(--pyr-space-2); }
.pyr-route p { color: var(--pyr-text-muted); margin: 0; max-width: 30ch; }

/* The one pre-purchase fact with an action: check the phone. A hairline strip, not a card. */
.pyr-device-check {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--pyr-space-4) var(--pyr-space-6);
  padding-block: var(--pyr-space-6);
  border-block: 1px solid var(--pyr-border);
}
.pyr-device-check h2 { font-size: var(--pyr-text-title); margin-bottom: var(--pyr-space-1); }
.pyr-device-check p { color: var(--pyr-text-muted); margin: 0; max-width: 40rem; }

.pyr-partner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--pyr-space-5);
  padding: var(--pyr-space-6);
  border-radius: var(--pyr-radius-xl);
  background: var(--pyr-mint);
  color: var(--pyr-ink);
}
.pyr-partner h2 { font-size: var(--pyr-text-headline); margin-bottom: var(--pyr-space-2); }
.pyr-partner p { margin: 0; max-width: 42rem; }

/* =====================================================================================
   Footer — a cedar band.
   ===================================================================================== */

.pyr-footer { padding-block: var(--pyr-space-7) var(--pyr-space-5); }
.pyr-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--pyr-space-2);
  font-family: var(--pyr-font-display);
  font-stretch: var(--pyr-stretch-wide);
  font-weight: 800;
  font-size: var(--pyr-text-title);
}
.pyr-footer-slogan { margin: var(--pyr-space-3) 0 0; font-weight: 600; }
.pyr-footer-tag { margin: var(--pyr-space-3) 0 0; max-width: 22rem; color: var(--pyr-on-band-muted); }
/* A white strip behind the brands' colour marks: Instagram's gradient is lost on the green band. */
.pyr-footer-social {
  list-style: none;
  margin: var(--pyr-space-3) 0 0;
  padding: 0 var(--pyr-space-1);
  display: inline-flex;
  gap: var(--pyr-space-1);
  background: var(--pyr-surface);
  border-radius: 999px;
}
.pyr-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--pyr-tap-min);
  min-height: var(--pyr-tap-min);
  border-radius: 50%;
}
.pyr-footer-social a:focus-visible { outline: 2px solid var(--pyr-primary); outline-offset: -2px; }
.pyr-footer-social .pyr-brand-icon { width: 24px; height: 24px; margin: 0; }
.pyr-app-downloads { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pyr-space-2); margin-top: var(--pyr-space-4); }
.pyr-app-downloads-label { flex-basis: 100%; color: var(--pyr-on-band-muted); font-size: var(--pyr-text-sm); }
.pyr-footer a.pyr-app-badge {
  display: inline-flex;
  align-items: center;
  min-height: var(--pyr-tap-min);
  padding-inline: var(--pyr-space-3);
  border: 1px solid var(--pyr-on-band-muted);
  border-radius: var(--pyr-radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.pyr-footer a.pyr-app-badge:hover { border-color: var(--pyr-on-band); color: var(--pyr-on-band); }
.pyr-footer a.pyr-app-badge:focus-visible { outline: 2px solid var(--pyr-on-band); outline-offset: 2px; }
/* An official store badge (_StoreBadge), shown as the stores supply it: no border, filter or recolouring. */
.pyr-store-link { display: inline-flex; border-radius: var(--pyr-radius-sm); }
.pyr-store-link:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.pyr-store-badge { display: block; height: var(--pyr-tap-min); width: auto; }
.pyr-hero-stores { display: flex; flex-wrap: wrap; gap: var(--pyr-space-2); margin-bottom: var(--pyr-space-6); }
.pyr-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--pyr-space-2);
}
.pyr-footer-bottom {
  margin-block-start: var(--pyr-space-6);
  padding-block-start: var(--pyr-space-4);
  border-top: 1px solid var(--pyr-on-band-rule);
  font-size: var(--pyr-text-sm);
  color: var(--pyr-on-band-muted);
}
.pyr-footer .pyr-language-toggle {
  background-color: transparent;
  border: 2px solid var(--pyr-on-band);
  color: var(--pyr-on-band);
}
.pyr-footer .pyr-language-toggle:hover,
.pyr-footer .pyr-language-toggle:focus,
.pyr-footer .pyr-language-toggle.show {
  background-color: var(--pyr-on-band);
  border-color: var(--pyr-on-band);
  color: var(--pyr-cedar-deep);
}
.pyr-footer .pyr-language-toggle:focus-visible { outline: 2px solid var(--pyr-on-band); outline-offset: 2px; }
/* The footer list opens upward: two columns halve its height so it fits under the sticky header,
   and it stacks above that header so nothing covers it. */
.pyr-footer .dropdown-menu {
  --pyr-text: var(--pyr-ink);
  z-index: calc(var(--pyr-z-sticky) + 1);
  grid-template-columns: repeat(2, auto);
  max-height: calc(100dvh - var(--pyr-space-6));
  overflow-y: auto;
}
.pyr-footer .dropdown-menu.show { display: grid; }

/* =====================================================================================
   Page band — a storefront page's header: a compact cedar band with the page's title.
   A page that uses it sets FullBleed and puts its body in a following .pyr-section.
   ===================================================================================== */

.pyr-page-band { padding-block: var(--pyr-space-6) var(--pyr-space-7); }
.pyr-page-back {
  display: inline-flex;
  align-items: center;
  gap: var(--pyr-space-2);
  min-height: var(--pyr-tap-min);
  margin-bottom: var(--pyr-space-3);
  color: var(--pyr-on-band);
  font-weight: 600;
  text-decoration: none;
}
.pyr-page-back:hover { color: var(--pyr-on-band); text-decoration: underline; text-underline-offset: 0.25em; }
.pyr-page-back svg { width: 1.125rem; height: 1.125rem; }
.pyr-page-head { display: flex; align-items: center; gap: var(--pyr-space-4); }
.pyr-page-title {
  font-family: var(--pyr-font-display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: inherit;
  margin: 0;
  text-wrap: balance;
}
html[lang="ar"] .pyr-page-title, html[lang="hi"] .pyr-page-title { letter-spacing: 0; line-height: 1.3; font-weight: 700; }
.pyr-page-sub {
  max-width: 40rem;
  margin: var(--pyr-space-3) 0 0;
  font-size: 1.125rem;
  color: var(--pyr-on-band-muted);
}
/* The page's own flag: the pass's 4:3 rectangle, scaled up; a region or global page draws a glyph. */
.pyr-flag-lg { width: 4rem; height: 3rem; border-radius: 0.5rem; }
.pyr-band .pyr-flag-glyph { background: var(--pyr-mint); color: var(--pyr-cedar-deep); }
.pyr-page-actions { display: flex; flex-wrap: wrap; gap: var(--pyr-space-3); margin-top: var(--pyr-space-5); }
@media (max-width: 575.98px) {
  .pyr-page-band { padding-block: var(--pyr-space-4) var(--pyr-space-6); }
  .pyr-page-sub { font-size: var(--pyr-text-body); }
  .pyr-flag-lg { width: 3rem; height: 2.25rem; }
}

/* A body section under a page band: the default section's rhythm, one step tighter. */
.pyr-section-tight { padding-block: var(--pyr-space-7); }
.pyr-section-tight + .pyr-section-tight { padding-block-start: 0; }
.pyr-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--pyr-space-4);
  margin-bottom: var(--pyr-space-5);
}
.pyr-section-head .pyr-section-title { margin-bottom: 0; }
.pyr-section-title-sm { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }

/* The catalog's country finder: the home finder's search pill, white on the ground, over every
   country as a chip. home-search.js drives it through the same data attributes. */
.pyr-catalog-finder .pyr-dest-search { flex: 1 1 18rem; max-width: 24rem; margin: 0; }
/* The device list's search box, above the makers. */
.pyr-device-search { max-width: 24rem; }
/* The Search page's box on the band: the field grows, the button keeps its size and wraps below on a phone. */
.pyr-search-bar { display: flex; flex-wrap: wrap; gap: var(--pyr-space-2); align-items: center; max-width: 40rem; margin-top: var(--pyr-space-4); }
.pyr-search-bar .pyr-dest-search { flex: 1 1 16rem; margin: 0; }
.pyr-search-bar .pyr-dest-search .form-control { background: var(--pyr-surface); }
.pyr-catalog-finder .pyr-dest-search .form-control { background: var(--pyr-surface); }

/* =====================================================================================
   Ticket — the package detail page: one plan as a full-size boarding pass. Two halves meet at a
   dashed tear line; each carries half of both notches, so together they read as one pass with
   two punched holes, stacked on a phone and side by side from 768px.
   ===================================================================================== */

.pyr-ticket {
  --pyr-ticket-notch: 0.875rem;
  display: grid;
  filter: var(--pyr-drop-lg);
}
.pyr-ticket-main,
.pyr-ticket-stub {
  --pyr-n1: 0 0;
  --pyr-n2: 100% 0;
  background: var(--pyr-surface);
  color: var(--pyr-text);
  -webkit-mask-image:
    radial-gradient(circle at var(--pyr-n1), transparent var(--pyr-ticket-notch), #000 calc(var(--pyr-ticket-notch) + 0.5px)),
    radial-gradient(circle at var(--pyr-n2), transparent var(--pyr-ticket-notch), #000 calc(var(--pyr-ticket-notch) + 0.5px));
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(circle at var(--pyr-n1), transparent var(--pyr-ticket-notch), #000 calc(var(--pyr-ticket-notch) + 0.5px)),
    radial-gradient(circle at var(--pyr-n2), transparent var(--pyr-ticket-notch), #000 calc(var(--pyr-ticket-notch) + 0.5px));
  mask-composite: intersect;
}
.pyr-ticket-main {
  --pyr-n1: 0 100%;
  --pyr-n2: 100% 100%;
  display: flex;
  flex-direction: column;
  gap: var(--pyr-space-4);
  min-width: 0;
  padding: var(--pyr-space-6);
  border-radius: var(--pyr-radius-xl) var(--pyr-radius-xl) 0 0;
  /* Tuck 1px under the stub: a fractional column edge otherwise leaves a hairline of the band showing. */
  margin-bottom: -1px;
}
.pyr-ticket-stub {
  display: flex;
  flex-direction: column;
  gap: var(--pyr-space-4);
  padding: var(--pyr-space-6);
  border-top: 2px dashed var(--pyr-border);
  border-radius: 0 0 var(--pyr-radius-xl) var(--pyr-radius-xl);
}
@media (min-width: 768px) {
  .pyr-ticket { grid-template-columns: minmax(0, 1fr) 18rem; }
  .pyr-ticket-main {
    --pyr-n1: 100% 0;
    --pyr-n2: 100% 100%;
    border-radius: 0;
    border-start-start-radius: var(--pyr-radius-xl);
    border-end-start-radius: var(--pyr-radius-xl);
    padding: var(--pyr-space-7) var(--pyr-space-6);
    margin-bottom: 0;
    margin-inline-end: -1px;
  }
  .pyr-ticket-stub {
    --pyr-n1: 0 0;
    --pyr-n2: 0 100%;
    border-top: 0;
    border-inline-start: 2px dashed var(--pyr-border);
    border-radius: 0;
    border-start-end-radius: var(--pyr-radius-xl);
    border-end-end-radius: var(--pyr-radius-xl);
    padding: var(--pyr-space-7) var(--pyr-space-5) var(--pyr-space-6);
  }
  html[dir="rtl"] .pyr-ticket-main { --pyr-n1: 0 0; --pyr-n2: 0 100%; }
  html[dir="rtl"] .pyr-ticket-stub { --pyr-n1: 100% 0; --pyr-n2: 100% 100%; }
}

/* The ticket is white on the band: its controls take the page's cedar ring, not the band's white one. */
.pyr-ticket :focus-visible { outline: 2px solid var(--pyr-focus-ring-ink); outline-offset: 3px; }
.pyr-ticket .pyr-flag-glyph { background: var(--pyr-mint-soft); color: var(--pyr-cedar); }

.pyr-ticket-dest {
  font-family: var(--pyr-font-display);
  font-stretch: 115%;
  font-weight: 850;
  font-size: clamp(2.25rem, 1.6rem + 2.8vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
html[lang="ar"] .pyr-ticket-dest, html[lang="hi"] .pyr-ticket-dest { letter-spacing: 0; line-height: 1.3; font-weight: 700; }
.pyr-ticket-kind { margin: calc(var(--pyr-space-2) * -1) 0 0; color: var(--pyr-text-muted); font-weight: 500; }

/* The two figures a traveller compares, in the pass's wide voice, at the size of a boarding time. */
.pyr-ticket-figures {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pyr-space-4) var(--pyr-space-7);
  margin: var(--pyr-space-2) 0 0;
}
.pyr-ticket-figures dd {
  margin: 0;
  font-family: var(--pyr-font-instrument);
  font-stretch: 115%;
  font-weight: 800;
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.pyr-ticket-figures dt,
.pyr-ticket-facts dt { font-size: var(--pyr-text-caption); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pyr-text-muted); }
html[lang="ar"] .pyr-ticket-figures dt, html[lang="hi"] .pyr-ticket-figures dt,
html[lang="ar"] .pyr-ticket-facts dt, html[lang="hi"] .pyr-ticket-facts dt { letter-spacing: 0; font-size: var(--pyr-text-label); }

/* The remaining facts as a quiet list of rows, label at the start, value at the end. */
.pyr-ticket-facts { margin: auto 0 0; border-top: 1px solid var(--pyr-border); }
.pyr-ticket-facts > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--pyr-space-1) var(--pyr-space-4);
  padding-block: var(--pyr-space-3);
  border-bottom: 1px solid var(--pyr-border);
}
.pyr-ticket-facts dt { align-self: center; }
.pyr-ticket-facts dd { margin: 0; font-weight: 600; text-align: end; }
/* A long coverage list opens under its row, full width, in columns. */
.pyr-ticket-facts > div:has(details[open]) dd { flex-basis: 100%; text-align: start; }
.pyr-ticket-facts summary { cursor: pointer; color: var(--pyr-link); text-underline-offset: 0.25em; }
.pyr-ticket-facts summary:hover { text-decoration: underline; }
.pyr-ticket-facts [data-pyr-coverage-list] { columns: 11rem; column-gap: var(--pyr-space-5); font-weight: 400; }
.pyr-ticket-facts [data-pyr-coverage-list] li { break-inside: avoid; padding-block: 0.125rem; }

.pyr-ticket-price {
  font-family: var(--pyr-font-instrument);
  font-stretch: 115%;
  font-weight: 850;
  font-size: clamp(2.25rem, 1.8rem + 1.6vw, 2.75rem);
  line-height: 1.05;
}
/* .pyr-data forces the price LTR, so under RTL it would sit at the left, away from its label. */
html[dir="rtl"] .pyr-ticket-price { text-align: right; }
.pyr-ticket-stub-body { display: flex; flex-direction: column; gap: var(--pyr-space-4); }
.pyr-ticket-stub-body .pyr-pass-stub-label { margin-bottom: calc(var(--pyr-space-3) * -1); }
/* A discounted price's Price and Discount lines, label at the start and figure at the end, above the Total. */
.pyr-price-breakdown { display: grid; gap: var(--pyr-space-1); margin: 0; font-size: var(--pyr-text-sm); }
.pyr-price-breakdown > div { display: flex; justify-content: space-between; gap: var(--pyr-space-3); }
.pyr-price-breakdown dt { font-weight: 400; color: var(--pyr-text-muted); }
.pyr-price-breakdown dd { margin: 0; }
/* The price before a discount, struck through just above the price paid (_PriceWas); the paid price stays the large one. */
.pyr-price-was { display: block; font-size: var(--pyr-text-sm); font-weight: 400; color: inherit; text-decoration: line-through; }
/* A struck price is one unit: its currency never wraps alone onto the next line. */
.pyr-price-was, s.pyr-data { white-space: nowrap; }
.pyr-price-was[hidden] { display: none; }
/* A long coverage list makes the ticket tall: the price and the buy button stay in view beside it. */
@media (min-width: 768px) {
  .pyr-ticket-stub-body { position: sticky; top: calc(var(--pyr-space-9) + var(--pyr-space-2)); }
}

/* =====================================================================================
   Note — an informational aside on the ground: a mint-soft panel with a drawn icon.
   ===================================================================================== */

.pyr-note {
  display: flex;
  gap: var(--pyr-space-3);
  align-items: flex-start;
  padding: var(--pyr-space-4) var(--pyr-space-5);
  border-radius: var(--pyr-radius-lg);
  background: var(--pyr-mint-soft);
  color: var(--pyr-ink);
}
.pyr-note svg { flex-shrink: 0; width: 1.375rem; height: 1.375rem; margin-top: 0.0625rem; color: var(--pyr-cedar); }
.pyr-note p { margin: 0; max-width: 70ch; }

/* =====================================================================================
   Device compatibility — one white panel per platform: the supported phones, then the install
   steps on small cedar step markers.
   ===================================================================================== */

.pyr-platforms { display: grid; gap: var(--pyr-space-5); }
@media (min-width: 768px) { .pyr-platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pyr-platform {
  display: flex;
  flex-direction: column;
  gap: var(--pyr-space-4);
  padding: var(--pyr-space-6);
  border-radius: var(--pyr-radius-xl);
  background: var(--pyr-surface);
  border: 1px solid var(--pyr-border);
}
@media (max-width: 575.98px) { .pyr-platform { padding: var(--pyr-space-5); } }
.pyr-platform h2 { display: flex; align-items: center; gap: var(--pyr-space-3); font-size: var(--pyr-text-headline); margin: 0; }
.pyr-platform h3 { font-size: var(--pyr-text-title); margin: var(--pyr-space-2) 0 0; }
.pyr-device-list {
  columns: 13rem;
  column-gap: var(--pyr-space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}
.pyr-device-list li {
  display: flex;
  gap: var(--pyr-space-2);
  align-items: baseline;
  break-inside: avoid;
  padding-block: 0.1875rem;
}
.pyr-device-list li::before {
  content: "";
  flex-shrink: 0;
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: var(--pyr-cedar);
  transform: translateY(-0.125rem);
}
.pyr-install-steps { display: grid; gap: var(--pyr-space-3); margin: 0; padding: 0; list-style: none; counter-reset: pyr-install-step; }
.pyr-install-steps li { display: flex; gap: var(--pyr-space-3); align-items: flex-start; counter-increment: pyr-install-step; }
.pyr-install-steps li::before {
  content: counter(pyr-install-step);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--pyr-cedar);
  color: var(--pyr-on-accent);
  font-family: var(--pyr-font-instrument);
  font-stretch: 112%;
  font-weight: 800;
  font-size: var(--pyr-text-sm);
  font-variant-numeric: tabular-nums;
}

/* A readable column of prose (Privacy, notices). */
.pyr-reading { max-width: 70ch; }
.pyr-reading p { font-size: 1.0625rem; line-height: 1.65; }

/* =====================================================================================
   Desk — a single-task page (sign in, register, a notice): the title on a cedar band and the form
   on one white panel lifted onto the band's lower edge, the way the home finder sits on the hero.
   ===================================================================================== */

/* A band a panel is lifted onto, and the lifted panel (the desk here, the form ticket below). */
.pyr-desk-band, .pyr-lift-band { padding-block-end: calc(var(--pyr-space-9) + var(--pyr-space-4)); }
.pyr-desk-panel, .pyr-lifted { position: relative; margin-top: calc((var(--pyr-space-8) + var(--pyr-space-2)) * -1); }
@media (max-width: 575.98px) {
  .pyr-desk-band, .pyr-lift-band { padding-block-end: var(--pyr-space-9); }
  .pyr-desk-panel, .pyr-lifted { margin-top: calc(var(--pyr-space-8) * -1); }
}

.pyr-desk-band { padding-block-start: var(--pyr-space-7); text-align: center; }
.pyr-desk-band .pyr-page-sub { margin-inline: auto; }
.pyr-desk { padding-block-end: var(--pyr-space-9); }
.pyr-desk-panel {
  max-width: 30rem;
  margin-inline: auto;
  padding: var(--pyr-space-6);
  background: var(--pyr-surface);
  color: var(--pyr-text);
  border-radius: var(--pyr-radius-xl);
  box-shadow: var(--pyr-shadow-lg);
}
.pyr-desk-panel-wide { max-width: 40rem; }
.pyr-desk-panel > :last-child,
.pyr-desk-panel form > :last-child { margin-bottom: 0; }
.pyr-desk-panel h2 { font-size: var(--pyr-text-title); margin-bottom: var(--pyr-space-3); }
.pyr-desk-section + .pyr-desk-section { margin-top: var(--pyr-space-6); padding-top: var(--pyr-space-6); border-top: 1px solid var(--pyr-border); }
/* The panel's closing line: the way to the other door (sign in / create account). */
.pyr-desk-foot {
  margin: var(--pyr-space-5) 0 0;
  padding-top: var(--pyr-space-4);
  border-top: 1px solid var(--pyr-border);
  text-align: center;
  color: var(--pyr-text-muted);
}
.pyr-desk-foot a { font-weight: 600; }
@media (max-width: 575.98px) {
  .pyr-desk-band { padding-block-start: var(--pyr-space-5); }
  .pyr-desk-panel { padding: var(--pyr-space-5); }
}

/* =====================================================================================
   Choice — radio options as whole rows (account kind, payment method). The native control stays
   visible; the checked row takes the mint wash and a cedar stroke, so the choice never rests on
   colour alone.
   ===================================================================================== */

.pyr-choices { display: grid; gap: var(--pyr-space-2); margin: 0; padding: 0; border: 0; }
.pyr-choices-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); }
.pyr-choices legend { font-size: var(--pyr-text-body); font-weight: 600; margin-bottom: var(--pyr-space-2); }
.pyr-choice {
  display: flex;
  gap: var(--pyr-space-3);
  align-items: flex-start;
  min-height: var(--pyr-tap-min);
  margin: 0;
  padding: var(--pyr-space-3) var(--pyr-space-4);
  border: 1px solid var(--pyr-border-strong);
  border-radius: var(--pyr-radius-md);
  background: var(--pyr-surface);
  cursor: pointer;
  transition: border-color 0.15s ease-out, background-color 0.15s ease-out;
}
.pyr-choice:hover { border-color: var(--pyr-cedar); }
.pyr-choice:has(input:checked) { border-color: var(--pyr-cedar); background: var(--pyr-mint-soft); box-shadow: inset 0 0 0 1px var(--pyr-cedar); }
.pyr-choice .form-check-input { flex-shrink: 0; float: none; margin: 0.1875rem 0 0; }
.pyr-choice-label { font-weight: 600; }
.pyr-choice .form-text { display: block; margin-top: var(--pyr-space-1); color: var(--pyr-text-muted); font-weight: 400; }

/* =====================================================================================
   Form ticket — checkout and the plan builder: the full-size ticket as a form. The main half
   holds what the buyer reads or fills in; the stub holds the total and the one action.
   ===================================================================================== */

.pyr-ticket-form .pyr-ticket-main { gap: var(--pyr-space-5); }
.pyr-ticket-caption { margin: 0; }
.pyr-ticket-caption + .pyr-ticket-dest { margin-top: calc(var(--pyr-space-4) * -1); }
.pyr-ticket-dest-sm { font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem); }
/* A four-figure total outgrows the stub at the ticket's price size: the code may wrap under it. */
.pyr-ticket-stub .pyr-amount { white-space: normal; }
.pyr-ticket-stub-hint { margin: 0; font-size: var(--pyr-text-sm); color: var(--pyr-text-muted); }
.pyr-ticket-stub .alert { margin: 0; }
.pyr-field-pair { display: grid; gap: var(--pyr-space-4); }
@media (min-width: 576px) { .pyr-field-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pyr-field-pair > .mb-3 { margin-bottom: 0 !important; }
/* The travel insurance form: every row and every traveller spaced by the form gap, never touching; one column on a phone. */
.pyr-insurance-form, .pyr-insurance-travellers, .pyr-insurance-traveller { display: grid; gap: var(--pyr-space-4); min-width: 0; }
.pyr-insurance-traveller { margin: 0; padding: var(--pyr-space-4); border: 1px solid var(--pyr-border); border-radius: var(--pyr-radius-md); }
.pyr-insurance-traveller > legend { float: none; width: auto; margin: 0; padding: 0 var(--pyr-space-2); font-size: 1rem; font-weight: 600; }
.pyr-insurance-form .form-label { margin-bottom: var(--pyr-space-1); }
.pyr-insurance-form [data-field-error] { display: block; margin-top: var(--pyr-space-1); }
.pyr-insurance-form [data-field-error]:empty { display: none; }
.pyr-insurance-traveller > [data-pyr-insurance-remove-traveller] { justify-self: start; }
/* Daily unlimited's countries: a searchable list of ticks that scrolls inside the ticket. */
.pyr-daily-countries { max-height: 16rem; overflow-y: auto; border: 1px solid var(--pyr-border-strong); border-radius: var(--pyr-radius-md); padding: var(--pyr-space-2) var(--pyr-space-3); background: var(--pyr-surface); }
.pyr-daily-countries .form-check { display: flex; align-items: center; gap: var(--pyr-space-2); margin: 0; padding: 0.375rem 0; min-height: 2.75rem; }
.pyr-daily-countries .form-check-input { float: none; margin: 0; flex: none; }
/* A live margin read-out beside a staff price field: figures rendered by the server, updated as staff type. */
.pyr-live-margin { display: flex; flex-wrap: wrap; gap: var(--pyr-space-1) var(--pyr-space-3); margin-top: var(--pyr-space-1); font-size: 0.875rem; }
.pyr-live-margin [data-pyr-live-margin-result].is-loss { color: var(--pyr-danger-ink); font-weight: 600; }
.form-select[multiple] { border-radius: var(--pyr-radius-md); padding: var(--pyr-space-2); }
.form-select[multiple] option { padding: 0.375rem var(--pyr-space-2); border-radius: var(--pyr-radius-sm); }
.form-select[multiple] option:checked { background: var(--pyr-mint-soft) linear-gradient(var(--pyr-mint-soft), var(--pyr-mint-soft)); color: var(--pyr-ink); font-weight: 600; }

/* =====================================================================================
   eSIM pass — a delivered eSIM (order confirmation, My eSIMs): the ticket at list size on the
   ground, the QR code a traveller scans on its stub.
   ===================================================================================== */

.pyr-esim-list { display: grid; gap: var(--pyr-space-5); }
.pyr-ticket-sm { --pyr-ticket-notch: 0.75rem; filter: var(--pyr-drop-md); }
.pyr-ticket-sm .pyr-ticket-main { padding: var(--pyr-space-5); gap: var(--pyr-space-3); border-radius: var(--pyr-radius-lg) var(--pyr-radius-lg) 0 0; }
.pyr-ticket-sm .pyr-ticket-stub { padding: var(--pyr-space-5); gap: var(--pyr-space-3); border-radius: 0 0 var(--pyr-radius-lg) var(--pyr-radius-lg); }
@media (min-width: 768px) {
  .pyr-ticket-sm { grid-template-columns: minmax(0, 1fr) 16rem; }
  .pyr-ticket-sm .pyr-ticket-main { border-radius: 0; border-start-start-radius: var(--pyr-radius-lg); border-end-start-radius: var(--pyr-radius-lg); }
  .pyr-ticket-sm .pyr-ticket-stub { border-radius: 0; border-start-end-radius: var(--pyr-radius-lg); border-end-end-radius: var(--pyr-radius-lg); }
}
/* A dead eSIM has nothing on its stub: stacked on a phone, the stub closes to a thin end strip. */
@media (max-width: 767.98px) { .pyr-ticket-sm .pyr-ticket-stub:not(:has(*)) { padding-block: var(--pyr-space-3); } }
.pyr-esim-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--pyr-space-2) var(--pyr-space-3); }
.pyr-esim-name {
  font-family: var(--pyr-font-display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  overflow-wrap: anywhere;
}
html[lang="ar"] .pyr-esim-name, html[lang="hi"] .pyr-esim-name { letter-spacing: 0; line-height: 1.35; }
.pyr-ticket-sm .pyr-ticket-facts { margin-top: 0; }
.pyr-ticket-sm .pyr-ticket-facts > div { padding-block: var(--pyr-space-2); }
/* The plans on one eSIM, each on its own: plans on one SIM can cover different countries. */
.pyr-esim-plans { display: grid; gap: var(--pyr-space-2); margin: 0; padding: 0; list-style: none; }
.pyr-esim-plan { padding: var(--pyr-space-3) var(--pyr-space-4); border-radius: var(--pyr-radius-md); background: var(--pyr-surface-2); }
.pyr-esim-plan dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--pyr-space-1) var(--pyr-space-4); margin: var(--pyr-space-2) 0 0; font-size: var(--pyr-text-sm); }
.pyr-esim-plan dt { font-weight: 500; color: var(--pyr-text-muted); }
.pyr-esim-plan dd { margin: 0; font-weight: 600; }
.pyr-esim-code { margin: 0; font-size: var(--pyr-text-sm); color: var(--pyr-text-muted); }
.pyr-esim-code .pyr-data { display: block; color: var(--pyr-text); font-weight: 700; overflow-wrap: anywhere; }
.pyr-ticket-stub .pyr-qr-image { max-width: 12rem; padding: var(--pyr-space-2); background: var(--pyr-surface); border: 1px solid var(--pyr-border); border-radius: var(--pyr-radius-md); }
/* The eSIM's one data line above its plans, and when it was read. */
/* An eSIM's status: its steps joined by a line, the ones reached filled, the current one bold. Text, never a control. */
.pyr-esim-status { margin-block: var(--pyr-space-3) var(--pyr-space-2); }
.pyr-esim-steps { display: flex; margin: 0; padding: 0; list-style: none; }
.pyr-esim-step { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: var(--pyr-space-1); text-align: center; font-size: var(--pyr-text-sm); color: var(--pyr-text-muted); overflow-wrap: anywhere; }
.pyr-esim-step::before { content: ""; position: relative; z-index: 1; box-sizing: border-box; width: 0.875rem; height: 0.875rem; border: 2px solid var(--pyr-border-strong); border-radius: 50%; background: var(--pyr-surface); }
.pyr-esim-step + .pyr-esim-step::after { content: ""; position: absolute; top: calc(0.4375rem - 1px); inset-inline-end: 50%; width: 100%; height: 2px; background: var(--pyr-border); }
.pyr-esim-step.is-reached::before { border-color: var(--pyr-primary); background: var(--pyr-primary); }
.pyr-esim-step.is-reached + .pyr-esim-step.is-reached::after { background: var(--pyr-primary); }
.pyr-esim-step[aria-current="step"] { color: var(--pyr-text); font-weight: 700; }
.pyr-esim-next { margin: var(--pyr-space-2) 0 0; font-weight: 600; }
.pyr-esim-actions { display: flex; flex-wrap: wrap; gap: var(--pyr-space-2); margin-block: var(--pyr-space-2) var(--pyr-space-3); }
.pyr-esim-data { margin-block: var(--pyr-space-2); }
.pyr-esim-data-line { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.pyr-esim-calls-line { font-weight: 400; margin-block-start: var(--pyr-space-1); }
/* Minutes and texts left: the token colours on a native bar (no inline style, which the CSP refuses). */
.pyr-esim-calls-bar { display: block; inline-size: 100%; max-inline-size: 20rem; block-size: .5rem; appearance: none; border: 0;
  border-radius: var(--pyr-radius-sm, 4px); background: var(--pyr-border); accent-color: var(--pyr-primary); overflow: hidden; }
.pyr-esim-calls-bar::-webkit-progress-bar { background: var(--pyr-border); }
.pyr-esim-calls-bar::-webkit-progress-value { background: var(--pyr-primary); }
.pyr-esim-calls-bar::-moz-progress-bar { background: var(--pyr-primary); }
.pyr-esim-data-updated { margin: var(--pyr-space-1) 0 0; font-size: var(--pyr-text-sm); color: var(--pyr-text-muted); }

/* Home's "Your plan now" card. */
.pyr-plan-now { padding-block: var(--pyr-space-4) 0; }
.pyr-plan-now-card { padding: var(--pyr-space-4); border: 1px solid var(--pyr-border); border-radius: var(--pyr-radius-lg); background: var(--pyr-surface); box-shadow: var(--pyr-shadow-sm); }
.pyr-plan-now-head { display: flex; align-items: center; gap: var(--pyr-space-2); flex-wrap: wrap; margin: 0 0 var(--pyr-space-2); }
.pyr-plan-now-title { margin: 0; font-size: var(--pyr-text-sm); font-weight: 600; color: var(--pyr-text-muted); }
.pyr-plan-now-name { margin: 0; font-weight: 800; font-size: 1.25rem; overflow-wrap: anywhere; }
.pyr-plan-now-bar { display: block; width: 100%; height: 0.5rem; margin-block: var(--pyr-space-2); accent-color: var(--pyr-primary); }
.pyr-plan-now-facts { display: flex; flex-wrap: wrap; gap: var(--pyr-space-1) var(--pyr-space-4); margin: 0; padding: 0; list-style: none; font-size: var(--pyr-text-sm); }
.pyr-plan-now-actions { display: flex; flex-wrap: wrap; gap: var(--pyr-space-2); margin-top: var(--pyr-space-3); }
.pyr-plan-now-choices { display: grid; gap: var(--pyr-space-2); margin: 0; padding: 0; list-style: none; }
.pyr-plan-now-choice { width: 100%; text-align: start; }

.pyr-esim-state { margin: 0; font-weight: 600; }
.pyr-esim-state-muted { color: var(--pyr-text-muted); font-weight: 500; }

/* =====================================================================================
   Top-up choices — each plan a row with a dashed tear before the price button, a small pass.
   ===================================================================================== */

.pyr-option-list { display: grid; gap: var(--pyr-space-3); margin: 0; padding: 0; list-style: none; }
.pyr-option-pass {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--pyr-space-3) var(--pyr-space-5);
  padding: var(--pyr-space-4) var(--pyr-space-5);
  background: var(--pyr-surface);
  border: 1px solid var(--pyr-border);
  border-radius: var(--pyr-radius-lg);
}
.pyr-option-pass h2 { font-family: var(--pyr-font-display); font-stretch: 112%; font-weight: 800; font-size: var(--pyr-text-title); margin: 0 0 var(--pyr-space-1); }
.pyr-option-pass-buy { padding-inline-start: var(--pyr-space-5); border-inline-start: 2px dashed var(--pyr-border); }
@media (max-width: 575.98px) {
  .pyr-option-pass-buy { flex-basis: 100%; padding: var(--pyr-space-3) 0 0; border-inline-start: 0; border-top: 2px dashed var(--pyr-border); }
  .pyr-option-pass-buy .btn { width: 100%; }
}

/* =====================================================================================
   App page — a signed-in page's head in the app shell: the title in the wide voice, a quiet intro.
   ===================================================================================== */

.pyr-app-head { margin-bottom: var(--pyr-space-5); }
.pyr-app-title {
  font-family: var(--pyr-font-display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
}
html[lang="ar"] .pyr-app-title, html[lang="hi"] .pyr-app-title { letter-spacing: 0; line-height: 1.35; font-weight: 700; }
.pyr-app-sub { margin: var(--pyr-space-2) 0 0; max-width: 60ch; color: var(--pyr-text-muted); }
.pyr-notice-list { display: grid; gap: var(--pyr-space-2); }
.pyr-notice {
  padding: var(--pyr-space-4) var(--pyr-space-5);
  background: var(--pyr-surface);
  border: 1px solid var(--pyr-border);
  border-radius: var(--pyr-radius-md);
}
.pyr-notice .mark-read-btn { white-space: nowrap; flex-shrink: 0; }
.pyr-notice-body { min-width: 0; }
.pyr-notice-title { font-family: var(--pyr-font-body); font-size: var(--pyr-text-body); font-weight: 600; letter-spacing: 0; margin: 0 0 var(--pyr-space-1); }
/* A plain panel heading; a staff panel's h2 carries its own .h5 size. */
.pyr-panel > h2:not([class]) { font-size: var(--pyr-text-title); margin-bottom: var(--pyr-space-3); }
.pyr-app-panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--pyr-space-3); margin-bottom: var(--pyr-space-4); }
.pyr-app-panel-head h2 { font-size: var(--pyr-text-title); margin: 0; }
/* Totals: each figure is a card; .pyr-app-counts-key marks the one that matters most, a cedar card. */
.pyr-app-counts { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: var(--pyr-space-3); margin: 0; }
.pyr-app-counts > div {
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--pyr-space-2);
  padding: var(--pyr-space-3) var(--pyr-space-4);
  background: var(--pyr-surface-2);
  border: 1px solid var(--pyr-border);
  border-radius: var(--pyr-radius-md);
}
.pyr-app-counts > .pyr-app-counts-key,
.pyr-app-counts > .pyr-app-counts-total {
  background: linear-gradient(135deg, var(--pyr-cedar), var(--pyr-cedar-deep));
  border-color: var(--pyr-cedar-deep);
  color: var(--pyr-on-band);
  box-shadow: var(--pyr-shadow-md);
}
.pyr-app-counts > .pyr-app-counts-key dt,
.pyr-app-counts > .pyr-app-counts-total dt { color: var(--pyr-on-band-muted); }
.pyr-app-counts dt { font-size: var(--pyr-text-caption); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pyr-text-muted); }
html[lang="ar"] .pyr-app-counts dt, html[lang="hi"] .pyr-app-counts dt { letter-spacing: 0; font-size: var(--pyr-text-label); }
.pyr-app-counts dd { margin: 0; font-family: var(--pyr-font-instrument); font-stretch: 112%; font-weight: 800; font-size: 1.75rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pyr-app-quiet { margin: var(--pyr-space-6) 0 0; font-size: var(--pyr-text-sm); }
/* A count with nothing to show yet: a quiet note where the figure would be. */
.pyr-app-counts dd.pyr-app-counts-none { font-family: var(--pyr-font-body); font-stretch: 100%; font-weight: 500; font-size: var(--pyr-text-body); line-height: 1.75rem; color: var(--pyr-text-muted); }
/* An LTR-forced figure under an Arabic caption sits on the caption's side. */
html[dir="rtl"] .pyr-app-counts dd[dir="ltr"] { text-align: right; }
/* The sum closes the grid on its own full-width row, a step larger. */
.pyr-app-counts > .pyr-app-counts-total { grid-column: 1 / -1; }
.pyr-app-counts-total dd { font-size: 2.25rem; }
.pyr-app-hint { margin: var(--pyr-space-3) 0 0; max-width: 70ch; font-size: var(--pyr-text-sm); color: var(--pyr-text-muted); }
/* A chart drawn by charts.js: the box sets its height, the canvas fills it. A spark fits a table cell. */
.pyr-chart { position: relative; width: 100%; height: 16rem; margin-block-end: var(--pyr-space-3); }
.pyr-chart-spark { width: 10rem; max-width: 100%; height: 2.25rem; margin: 0; }
.pyr-chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: var(--pyr-space-5); }
.pyr-app-subhead { font-family: var(--pyr-font-body); font-size: var(--pyr-text-body); font-weight: 600; letter-spacing: 0; margin: var(--pyr-space-6) 0 var(--pyr-space-3); }
/* Two panels side by side when both fit; a lone one takes the row. */
.pyr-app-duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: var(--pyr-space-5); margin-bottom: var(--pyr-space-5); }
.pyr-app-duo > .pyr-panel { margin: 0; }
/* The partner panel at app-panel scale. */
.pyr-partner-app { display: block; padding: var(--pyr-space-5); border-radius: var(--pyr-radius-lg); }
.pyr-partner-app h2 { font-size: var(--pyr-text-title); margin-bottom: var(--pyr-space-3); }
.pyr-partner-app > p:not(.pyr-app-hint) { margin-bottom: var(--pyr-space-4); }
.pyr-partner-app .pyr-app-hint { color: var(--pyr-ink); }
.pyr-partner-app .form-control { border-color: var(--pyr-cedar); }

/* Reseller pre-buy: the form, with the discount ladder beside it once there is room. */
.pyr-prebuy { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--pyr-space-6); margin-top: var(--pyr-space-5); padding-top: var(--pyr-space-5); border-top: 1px solid var(--pyr-border); }
.pyr-prebuy-form { flex: 1 1 20rem; max-width: 28rem; }
.pyr-prebuy-tiers { flex: 1 1 16rem; max-width: 24rem; }
/* A long unbroken value (an e-mail address) wraps rather than widening its table past the panel. */
.pyr-cell-wrap { min-width: 10rem; overflow-wrap: anywhere; }
/* A displayed amount ("1,300.00 USD"): tabular figures, never broken across lines. Not .pyr-money,
   which pyr-base.css defines as a right-aligned mono table column. */
.pyr-amount { font-variant-numeric: tabular-nums; white-space: nowrap; }
/* An amount inside a .pyr-data run keeps that run's LTR isolation but reads in the reading face:
   the mono face is for codes, IDs and timestamps only. */
.pyr-data.pyr-amount { font-family: var(--pyr-font-body); font-size: inherit; }

/* =====================================================================================
   Back office — the staff pages speak the app-page grammar: a wide title with its actions at the
   end, white hairline panels, figures in the wide voice, and every table on a white surface of
   its own so a long worklist reads as one sheet.
   ===================================================================================== */

.pyr-app-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--pyr-space-3) var(--pyr-space-5); }
.pyr-app-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pyr-space-2); }
/* The way up to the parent page, above the title: the page band's back link, in cedar on the ground. */
.pyr-app-back {
  display: inline-flex;
  align-items: center;
  gap: var(--pyr-space-2);
  min-height: 2.25rem;
  margin-bottom: var(--pyr-space-2);
  color: var(--pyr-cedar);
  font-weight: 600;
  text-decoration: none;
}
.pyr-app-back:hover { color: var(--pyr-cedar-deep); text-decoration: underline; text-underline-offset: 0.25em; }
.pyr-app-back svg { width: 1.125rem; height: 1.125rem; }
@media (pointer: coarse) { .pyr-app-back { min-height: var(--pyr-tap-min); } }
/* A machine value named in a title (an ICCID): the data face, a step down, beside the title words. */
.pyr-app-title-code { display: inline-block; font-size: 0.55em; font-weight: 500; color: var(--pyr-text-muted); vertical-align: 0.2em; overflow-wrap: anywhere; }
/* The pages under one section (Catalog: new plan, built by buyers, costs, pricing): quiet pills. */
.pyr-app-links { display: flex; flex-wrap: wrap; gap: var(--pyr-space-2); margin: var(--pyr-space-4) 0 0; padding: 0; list-style: none; }
@media (pointer: coarse) { .pyr-app-links .btn { display: inline-flex; align-items: center; min-height: var(--pyr-tap-min); } }

/* A visually hidden label is absolutely positioned; without a positioned wrapper it escapes the
   table's scroll box and widens the whole page. */
.pyr-table-wrap { position: relative; }
/* A narrow panel is for a form: a table in one takes the page's width rather than hiding its last columns. */
.pyr-staff-content :is(.pyr-panel-md, .pyr-panel-lg):has(table) { max-width: none; }

/* A boosted sidebar click (sidebar-nav-htmx.js): a bar at the top of the window until the new page is in. */
.pyr-navigating body::before {
  content: "";
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 2000;
  height: 3px;
  background: var(--pyr-signal);
  transform-origin: left;
  animation: pyr-navigating-bar 6s cubic-bezier(0.1, 0.7, 0.2, 1) both;
}
[dir="rtl"].pyr-navigating body::before { transform-origin: right; }
@keyframes pyr-navigating-bar { from { transform: scaleX(0.05); } to { transform: scaleX(0.95); } }
.pyr-navigating #pyr-staff-content { opacity: 0.6; transition: opacity 0.15s linear 0.15s; }
@media (prefers-reduced-motion: reduce) {
  .pyr-navigating body::before { animation: none; }
  .pyr-navigating #pyr-staff-content { transition: none; }
}

.pyr-staff-content .pyr-table-wrap {
  margin-bottom: var(--pyr-space-5);
  background: var(--pyr-surface);
  border: 1px solid var(--pyr-border);
  border-radius: var(--pyr-radius-lg);
}
.pyr-staff-content :is(.pyr-panel, .pyr-partner) .pyr-table-wrap {
  margin-bottom: 0;
  background: none;
  border: 0;
  border-radius: 0;
}
.pyr-staff-content .pyr-table-wrap:last-child { margin-bottom: 0; }
/* Column captions speak like the pass's field labels. */
.pyr-app-shell .pyr-table thead th { font-size: var(--pyr-text-caption); letter-spacing: 0.1em; padding-block: var(--pyr-space-4) var(--pyr-space-3); }
html[lang="ar"] .pyr-app-shell .pyr-table thead th, html[lang="hi"] .pyr-app-shell .pyr-table thead th { font-size: var(--pyr-text-label); letter-spacing: 0; }
.pyr-app-shell .pyr-table td { font-variant-numeric: tabular-nums; }
@media (min-width: 641px) and (hover: hover) {
  .pyr-app-shell .pyr-table tbody tr:hover > td { background-color: var(--pyr-bg); }
}
/* On a phone the rows stand as cards of their own; the sheet behind them goes. */
@media (max-width: 640px) {
  .pyr-staff-content .pyr-table-wrap { background: none; border: 0; border-radius: 0; }
}

/* Panel headings in the title voice; an in-panel h3 in the reading face, like .pyr-app-subhead. */
.pyr-staff-content :is(.h4, .h5) { font-weight: 750; }
.pyr-staff-content h2.h5 { margin-bottom: var(--pyr-space-3); }
.pyr-staff-content .h6 { font-family: var(--pyr-font-body); font-size: var(--pyr-text-body); font-weight: 600; letter-spacing: 0; }
.pyr-staff-content .pyr-panel:not(:last-child) { margin-bottom: var(--pyr-space-5); }
/* A long value in a fact list (an e-mail, an order id) wraps inside its panel. */
.pyr-staff-content dd { overflow-wrap: anywhere; }
.pyr-staff-content legend.form-label { font-size: var(--pyr-text-body); font-weight: 600; color: var(--pyr-ink); }

/* A search or filter bar standing on the ground: one white strip, controls on one line. */
.pyr-staff-content > form[method="get"] {
  padding: var(--pyr-space-4) var(--pyr-space-5);
  background: var(--pyr-surface);
  border: 1px solid var(--pyr-border);
  border-radius: var(--pyr-radius-lg);
}

/* =====================================================================================
   App shell (_AppLayout: staff, My account, reseller) — full width, slim sticky top bar, fixed left
   sidebar. Built on pyr-base.css's .pyr-staff-* sidebar; scoped to .pyr-app-*.
   ===================================================================================== */

:root {
  --pyr-app-topbar-h: 3.5rem;
  --pyr-app-sidebar-w: 15rem;
}
.pyr-app-topbar-wrap {
  position: sticky;
  top: 0;
  z-index: var(--pyr-z-sticky);
}
.pyr-app-topbar {
  min-height: var(--pyr-app-topbar-h);
  padding-block: 0;
}
.pyr-app-topbar .navbar-brand {
  font-size: var(--pyr-text-body);
  gap: var(--pyr-space-2);
}
/* .navbar pins the whole bar LTR (pyr-base.css), actions included, so the cluster keeps one order
   in every locale. The margin is physical on purpose: Bootstrap's RTL build flips .ms-auto to the
   other side. Only the dropdown menus' own contents re-inherit the page direction. */
.pyr-app-topbar-actions {
  display: flex;
  align-items: center;
  gap: var(--pyr-space-3);
  min-width: 0;
  margin-left: auto;
}
html[dir="rtl"] .pyr-app-topbar .dropdown-menu {
  direction: rtl;
  text-align: right;
}
/* Inside .navbar Bootstrap positions menus by CSS, and its RTL build anchors -end menus on the
   LEFT — off-screen for a toggle pinned to the bar's physical right edge. */
html[dir="rtl"] .pyr-app-topbar .dropdown-menu-end[data-bs-popper] {
  left: auto;
  right: 0;
}
/* A phone has no room for the address beside the brand and language menu; the icon still opens
   the account menu, and the address stays its accessible name. */
@media (max-width: 575.98px) {
  .pyr-app-topbar .navbar-brand { margin-right: var(--pyr-space-2); }
  .pyr-app-topbar-actions { gap: var(--pyr-space-1); }
  /* The language menu shows its flag alone; the language's name stays its accessible name. */
  .pyr-app-topbar .pyr-language-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .pyr-app-topbar .pyr-account-email {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}
.pyr-app-shell {
  min-height: calc(100vh - var(--pyr-app-topbar-h));
}
.pyr-app-shell .pyr-staff-sidebar {
  position: sticky;
  top: var(--pyr-app-topbar-h);
  align-self: flex-start;
  flex-basis: var(--pyr-app-sidebar-w);
  width: var(--pyr-app-sidebar-w);
  height: calc(100vh - var(--pyr-app-topbar-h));
  overflow-y: auto;
  gap: 0;
}
/* Group captions speak like the pass's field labels; rows are pills; the page you are on is a mint
   row with the tangerine dot at its start. Groups separate by space, not rules. */
.pyr-app-shell .pyr-staff-sidebar-title {
  font-size: var(--pyr-text-caption);
  letter-spacing: 0.1em;
}
html[lang="ar"] .pyr-app-shell .pyr-staff-sidebar-title, html[lang="hi"] .pyr-app-shell .pyr-staff-sidebar-title { font-size: var(--pyr-text-label); letter-spacing: 0; }
.pyr-app-shell .pyr-staff-sidebar-group:not(:first-child) {
  border-top: 0;
  margin-block-start: var(--pyr-space-3);
  padding-block-start: 0;
}
.pyr-app-shell .pyr-staff-sidebar-link {
  position: relative;
  padding-inline: var(--pyr-space-6) var(--pyr-space-3);
  border-radius: var(--pyr-radius-pill);
  color: var(--pyr-text-muted);
  font-weight: 500;
}
.pyr-app-shell .pyr-staff-sidebar-link:hover,
.pyr-app-shell .pyr-staff-sidebar-link:focus {
  background-color: var(--pyr-surface-2);
  color: var(--pyr-ink);
}
.pyr-app-shell .pyr-staff-sidebar-link:focus-visible { outline: 2px solid var(--pyr-focus-ring-ink); outline-offset: -2px; }
/* A worklist's open count beside its menu link (staff-live.js), at the line's end in either direction. */
.pyr-app-shell .pyr-staff-sidebar-link:has(.pyr-staff-sidebar-count) {
  display: flex;
  align-items: center;
  gap: var(--pyr-space-2);
}
.pyr-app-shell .pyr-staff-sidebar-count {
  margin-inline-start: auto;
  min-width: 1.5rem;
  padding-inline: var(--pyr-space-2);
  border-radius: var(--pyr-radius-pill);
  background-color: var(--pyr-danger);
  color: var(--pyr-on-danger);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5rem;
  text-align: center;
}
.pyr-app-shell .pyr-staff-sidebar-link.active {
  background-color: var(--pyr-mint-soft);
  color: var(--pyr-ink);
  font-weight: 600;
}
.pyr-app-shell .pyr-staff-sidebar-link.active::before {
  content: "";
  position: absolute;
  inset-inline-start: var(--pyr-space-4);
  top: 50%;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--pyr-signal);
  transform: translateY(-50%);
}
.pyr-app-shell .pyr-staff-sidebar-toggle,
.pyr-app-shell .pyr-staff-sidebar-opener {
  border-radius: var(--pyr-radius-pill);
  background-color: var(--pyr-surface);
  color: var(--pyr-ink);
}
.pyr-app-shell .pyr-staff-sidebar-toggle:hover,
.pyr-app-shell .pyr-staff-sidebar-toggle:focus,
.pyr-app-shell .pyr-staff-sidebar-opener:hover,
.pyr-app-shell .pyr-staff-sidebar-opener:focus {
  background-color: var(--pyr-mint-soft);
  border-color: var(--pyr-cedar);
  color: var(--pyr-ink);
}
.pyr-app-shell .pyr-staff-content {
  padding: var(--pyr-space-5) var(--pyr-space-6) var(--pyr-space-7);
}
@media (min-width: 992px) {
  /* Always open on desktop: nothing to collapse to, since the links carry no icons for a rail. */
  .pyr-app-shell .pyr-staff-sidebar-toggle {
    display: none;
  }
}
/* A mouse needs no 44px target; the denser rows keep a long staff menu on one screen. */
@media (min-width: 992px) and (pointer: fine) {
  .pyr-app-shell .pyr-staff-sidebar-link {
    min-height: 2rem;
  }
}
/* Below the desktop breakpoint the menu button sits on its own row above the content and an
   opened sidebar overlays the page rather than squeezing it. */
@media (max-width: 991.98px) {
  .pyr-app-shell {
    flex-direction: column;
  }
  .pyr-app-shell .pyr-staff-sidebar {
    position: fixed;
    top: var(--pyr-app-topbar-h);
    left: 0;
    z-index: var(--pyr-z-sticky);
    height: calc(100dvh - var(--pyr-app-topbar-h));
    max-width: 85vw;
    box-shadow: var(--pyr-shadow-md);
  }
  .pyr-app-shell .pyr-staff-content {
    padding: 0 var(--pyr-space-4) var(--pyr-space-6);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pyr-pass, .pyr-pass-stack > * { transition: none; }
  .pyr-pass:hover, .pyr-pass:focus-visible { transform: none; }
}

/* =====================================================================================
   Store sections — the staff-composed rows and cards on the home page, the Offers page and the
   staff preview. Every background comes with its own text colour, so each pairing clears AA by
   construction (ratios beside each); never a free colour. Imagery is allowed inside these items
   only: a 1:1 tile image, a 4:3 card image on the end side (mirrors with the layout).
   ===================================================================================== */

.pyr-store-stack { display: grid; gap: var(--pyr-space-7); }
.pyr-store-heading {
  font-family: var(--pyr-font-heading);
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  margin-bottom: var(--pyr-space-4);
}
html[lang="ar"] .pyr-store-heading, html[lang="hi"] .pyr-store-heading { letter-spacing: 0; line-height: 1.35; }

/* A horizontally scrolling row: a focusable, labelled region so a keyboard can scroll it. */
.pyr-store-row {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: var(--pyr-space-2) var(--pyr-space-2) var(--pyr-space-4);
  margin-inline: calc(-1 * var(--pyr-space-2));
}
.pyr-store-row:focus-visible { outline: 3px solid var(--pyr-ink); outline-offset: 2px; border-radius: var(--pyr-radius-lg); }
.pyr-store-tiles,
.pyr-store-plans { display: flex; gap: var(--pyr-space-4); }
/* Two and a half tiles on a phone, so the row reads as scrollable. */
.pyr-store-tiles > li { flex: 0 0 calc((100% - 2 * var(--pyr-space-4)) / 2.5); scroll-snap-align: start; }
.pyr-store-plans > li { flex: 0 0 min(20rem, 85%); scroll-snap-align: start; }
@media (min-width: 768px) {
  .pyr-store-tiles > li { flex-basis: 13rem; }
}

.pyr-store-tile,
.pyr-store-card,
.pyr-store-banner { text-decoration: none; transition: transform 0.25s var(--pyr-ease-out); }
.pyr-store-tile:hover,
.pyr-store-card:hover,
.pyr-store-banner:hover { transform: translateY(-2px); }
.pyr-store-tile:focus-visible,
.pyr-store-card:focus-visible,
.pyr-store-banner:focus-visible { outline: 3px solid var(--pyr-ink); outline-offset: 3px; box-shadow: none; }

.pyr-store-tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--pyr-space-3);
  height: 100%;
  min-height: 9rem;
  padding: var(--pyr-space-3);
  border-radius: var(--pyr-radius-lg);
  overflow: hidden;
}
.pyr-store-tile-image { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--pyr-radius-md); }
.pyr-store-tile-title { font-family: var(--pyr-font-heading); font-weight: 800; font-size: 1.125rem; line-height: 1.2; overflow-wrap: anywhere; }

.pyr-store-cards { display: grid; gap: var(--pyr-space-4); }
.pyr-store-card {
  display: flex;
  align-items: center;
  gap: var(--pyr-space-5);
  min-height: 9rem;
  padding: var(--pyr-space-5);
  border-radius: var(--pyr-radius-xl);
}
.pyr-store-card-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: var(--pyr-space-2); }
.pyr-store-card-title {
  font-family: var(--pyr-font-heading);
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  line-height: 1.15;
}
html[lang="ar"] .pyr-store-card-title, html[lang="hi"] .pyr-store-card-title,
html[lang="ar"] .pyr-store-tile-title, html[lang="hi"] .pyr-store-tile-title { line-height: 1.35; }
.pyr-store-ticks { display: flex; flex-direction: column; gap: var(--pyr-space-1); }
.pyr-store-tick { display: inline-flex; align-items: center; gap: var(--pyr-space-2); font-weight: 600; }
.pyr-store-tick svg { width: 1.125rem; height: 1.125rem; flex: none; }
.pyr-store-card-image { flex: 0 0 auto; width: clamp(7rem, 32%, 13rem); height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--pyr-radius-lg); }

.pyr-store-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--pyr-space-3);
  min-height: 4rem;
  padding: var(--pyr-space-3) var(--pyr-space-5);
  border-radius: var(--pyr-radius-pill);
  font-weight: 600;
}
.pyr-store-banner:has(.pyr-store-banner-glyph) { padding-inline-start: var(--pyr-space-3); }
/* Banners one after another read as one group of buttons, not as separate sections. */
.pyr-store-layout-banner + .pyr-store-layout-banner { margin-top: calc(var(--pyr-space-3) - var(--pyr-space-7)); }
/* From a tablet up, banners one after another share a row (Global plans beside Regions); every other section, and a
   banner on its own, keeps the full width. */
@media (min-width: 768px) {
  .pyr-store-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--pyr-space-4); }
  .pyr-store-stack > * { grid-column: 1 / -1; }
  .pyr-store-stack > .pyr-store-layout-banner:has(+ .pyr-store-layout-banner),
  .pyr-store-stack > .pyr-store-layout-banner + .pyr-store-layout-banner { grid-column: auto; margin-top: 0; }
}
.pyr-store-banner-text { flex: 1 1 auto; min-width: 0; font-family: var(--pyr-font-heading); font-weight: 800; font-size: 1.125rem; line-height: 1.25; }
html[lang="ar"] .pyr-store-banner-text, html[lang="hi"] .pyr-store-banner-text { line-height: 1.4; }
.pyr-store-banner-go { display: inline-flex; }
.pyr-store-banner-go svg { width: 1.25rem; height: 1.25rem; }
/* The Global and Regions banners' glyph: the globe and the map pin the coverage marks use, on a disc of the text colour. */
.pyr-store-banner-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: color-mix(in srgb, currentColor 16%, transparent);
}
.pyr-store-banner-glyph svg { width: 1.375rem; height: 1.375rem; }

.pyr-store-partner {
  display: inline-flex;
  align-items: center;
  gap: var(--pyr-space-1);
  font-size: var(--pyr-text-label);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
html[lang="ar"] .pyr-store-partner, html[lang="hi"] .pyr-store-partner { letter-spacing: 0; text-transform: none; }
.pyr-store-partner svg { width: 0.875rem; height: 0.875rem; flex: none; }

/* The :hover twins keep the pairing when the shared link hover colour would otherwise win. */
.pyr-store-bg-cedar, .pyr-store-bg-cedar:hover { background: var(--pyr-cedar); color: var(--pyr-on-band); }                  /* 5.38:1 */
.pyr-store-bg-cedar-deep, .pyr-store-bg-cedar-deep:hover { background: var(--pyr-cedar-deep); color: var(--pyr-on-band); }   /* 8.08:1 */
.pyr-store-bg-mint, .pyr-store-bg-mint:hover { background: var(--pyr-mint); color: var(--pyr-ink); }                         /* 15.09:1 */
.pyr-store-bg-mint-soft, .pyr-store-bg-mint-soft:hover { background: var(--pyr-mint-soft); color: var(--pyr-ink); }          /* 16.7:1 */
.pyr-store-bg-surface, .pyr-store-bg-surface:hover { background: var(--pyr-surface); color: var(--pyr-ink); box-shadow: inset 0 0 0 1px var(--pyr-border); } /* 18.5:1 */
.pyr-store-bg-ink, .pyr-store-bg-ink:hover { background: var(--pyr-ink); color: var(--pyr-on-band); }                        /* 18.5:1 */
.pyr-store-bg-gold, .pyr-store-bg-gold:hover { background: var(--pyr-gold); color: var(--pyr-on-band); }                      /* 5.15:1 */

.pyr-pass-badges { display: flex; flex-wrap: wrap; gap: var(--pyr-space-2); }

/* Staff editor: the background picker and the preview frames. */
.pyr-store-swatches { display: flex; flex-wrap: wrap; gap: var(--pyr-space-2); }
.pyr-store-swatch {
  display: inline-flex;
  align-items: center;
  gap: var(--pyr-space-2);
  min-height: var(--pyr-tap-min);
  padding: var(--pyr-space-2) var(--pyr-space-3);
  border-radius: var(--pyr-radius-pill);
  cursor: pointer;
}
.pyr-store-swatch:has(input:checked) { outline: 3px solid var(--pyr-ink); outline-offset: 2px; }
.pyr-store-swatch:has(input:focus-visible) { outline: 3px solid var(--pyr-cedar); outline-offset: 2px; }
.pyr-store-preview {
  padding: var(--pyr-space-4);
  margin-bottom: var(--pyr-space-4);
  border: 1px dashed var(--pyr-border-strong);
  border-radius: var(--pyr-radius-lg);
  background: var(--pyr-bg);
}
.pyr-store-thumb { width: 8rem; height: auto; border-radius: var(--pyr-radius-sm); }

@media (prefers-reduced-motion: no-preference) {
  .pyr-store-row { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  .pyr-store-tile, .pyr-store-card, .pyr-store-banner { transition: none; }
  .pyr-store-tile:hover, .pyr-store-card:hover, .pyr-store-banner:hover { transform: none; }
}

/* ---------- Support centre (the chat screen, its messages, the round button) ---------- */
.pyr-support { max-width: 46rem; margin-inline: auto; display: flex; flex-direction: column; gap: var(--pyr-space-4); }
.pyr-chat-thread { display: flex; flex-direction: column; gap: var(--pyr-space-3); margin: 0; }
.pyr-chat {
  max-width: 85%;
  padding: var(--pyr-space-3) var(--pyr-space-4);
  border-radius: var(--pyr-radius-lg);
  background: var(--pyr-surface);
  border: 1px solid var(--pyr-border);
  box-shadow: var(--pyr-shadow-sm);
  overflow-wrap: break-word;
}
.pyr-chat-them { align-self: flex-start; border-end-start-radius: var(--pyr-radius-sm); }
.pyr-chat-me { align-self: flex-end; background: var(--pyr-mint-soft); border-color: var(--pyr-mint); border-end-end-radius: var(--pyr-radius-sm); }
.pyr-chat-who { display: block; font-size: var(--pyr-text-label); color: var(--pyr-text-muted); margin-bottom: var(--pyr-space-1); }
.pyr-chat-text { margin: 0; }
.pyr-chat-text + .pyr-chat-text { margin-top: var(--pyr-space-2); }
.pyr-chat-photo { display: block; max-width: 100%; max-height: 18rem; height: auto; border-radius: var(--pyr-radius-sm); }
.pyr-support-topics { display: flex; flex-wrap: wrap; gap: var(--pyr-space-2); }
.pyr-support-topics .btn { min-height: var(--pyr-tap-min); display: inline-flex; align-items: center; }
.pyr-support-question-list { display: flex; flex-direction: column; gap: var(--pyr-space-2); margin: 0; }
.pyr-support-question {
  display: block;
  min-height: var(--pyr-tap-min);
  padding: var(--pyr-space-3) var(--pyr-space-4);
  border: 1px solid var(--pyr-border);
  border-radius: var(--pyr-radius-md);
  background: var(--pyr-surface);
  text-decoration: none;
}
.pyr-support-question:hover, .pyr-support-question:focus-visible { border-color: var(--pyr-primary); }
.pyr-support-ways { border-top: 1px solid var(--pyr-border); padding-top: var(--pyr-space-4); }
.pyr-support-ways-title { font-weight: 600; margin-bottom: var(--pyr-space-2); }
.pyr-support-ways-list { display: flex; flex-wrap: wrap; gap: var(--pyr-space-2); margin: 0; }
.pyr-support-ways-list .btn { min-height: var(--pyr-tap-min); }
.pyr-support-fab {
  position: fixed;
  inset-inline-end: var(--pyr-space-4);
  inset-block-end: var(--pyr-space-4);
  z-index: var(--pyr-z-sticky);
  width: 3.5rem;
  height: 3.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--pyr-radius-pill);
  background: var(--pyr-primary);
  color: var(--pyr-on-accent);
  box-shadow: var(--pyr-shadow-lg);
}
.pyr-support-fab:hover { background: var(--pyr-primary-hover); color: var(--pyr-on-accent); }
.pyr-support-fab:focus-visible { outline: 3px solid var(--pyr-signal); outline-offset: 3px; }
/* A reply not yet read. */
.pyr-support-fab-dot { display: none; position: absolute; inset-block-start: 0.25rem; inset-inline-end: 0.25rem; width: 0.875rem; height: 0.875rem;
  border-radius: var(--pyr-radius-pill); background: var(--pyr-signal); border: 2px solid var(--pyr-surface); }
.pyr-support-fab[data-pyr-chat-unread="true"] .pyr-support-fab-dot { display: block; }
.pyr-support-fab[aria-expanded="true"] { background: var(--pyr-primary-hover); }
/* The button's menu, above it: the first option (Live chat) nearest the button. */
.pyr-support-dial {
  position: fixed;
  inset-inline-end: var(--pyr-space-4);
  inset-block-end: calc(var(--pyr-space-4) + 4.25rem);
  z-index: var(--pyr-z-sticky);
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: var(--pyr-space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.pyr-support-dial[hidden] { display: none; }
.pyr-support-dial-item {
  display: inline-flex;
  align-items: center;
  gap: var(--pyr-space-2);
  min-height: 2.75rem;
  padding: var(--pyr-space-2) var(--pyr-space-4);
  border: 1px solid var(--pyr-border);
  border-radius: var(--pyr-radius-pill);
  background: var(--pyr-surface);
  color: var(--pyr-text);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--pyr-shadow-lg);
  white-space: nowrap;
}
.pyr-support-dial-item svg { color: var(--pyr-primary); flex-shrink: 0; }
/* A brand's own mark (_BrandIcon): its own colours, beside the label that names it. */
.pyr-brand-icon { flex-shrink: 0; vertical-align: -0.25em; margin-inline-end: var(--pyr-space-1); }
.pyr-support-dial-item:hover { background: var(--pyr-bg); color: var(--pyr-text); }
.pyr-support-dial-item:focus-visible { outline: 3px solid var(--pyr-signal); outline-offset: 2px; }

/* The chat window over the page: a panel at the corner above the button; the whole screen on a phone. */
.pyr-chat-window {
  position: fixed;
  inset-inline-end: var(--pyr-space-4);
  inset-block-end: calc(var(--pyr-space-4) + 4.25rem);
  /* Under the header's dropdown menus, which open over it. */
  z-index: calc(var(--pyr-z-dropdown) - 1);
  width: min(25rem, calc(100vw - 2 * var(--pyr-space-4)));
  /* Below the site header, whose menus stay reachable while the window is open. */
  height: min(38rem, calc(100vh - 11rem));
  display: flex;
  flex-direction: column;
  background: var(--pyr-bg);
  border: 1px solid var(--pyr-border);
  border-radius: var(--pyr-radius-xl);
  box-shadow: var(--pyr-shadow-lg);
  overflow: hidden;
}
.pyr-chat-window[hidden] { display: none; }
.pyr-chat-window-head {
  display: flex;
  align-items: center;
  gap: var(--pyr-space-3);
  padding: var(--pyr-space-3) var(--pyr-space-4);
  background: var(--pyr-primary);
  color: var(--pyr-on-accent);
}
.pyr-chat-window-mark { display: inline-flex; padding: 0.25rem; border-radius: var(--pyr-radius-pill); background: var(--pyr-surface); }
.pyr-chat-window-title { margin: 0; flex: 1; font-size: var(--pyr-text-title); font-weight: 700; color: inherit; }
.pyr-chat-window-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--pyr-tap-min); height: var(--pyr-tap-min);
  border: 0; border-radius: var(--pyr-radius-pill); background: transparent; color: inherit;
}
.pyr-chat-window-close:hover { background: var(--pyr-primary-hover); }
.pyr-chat-window-close:focus-visible { outline: 3px solid var(--pyr-signal); outline-offset: 1px; }
.pyr-chat-window-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.pyr-chat-window-status { margin: auto; padding: var(--pyr-space-5); color: var(--pyr-text-muted); text-align: center; }
/* On a phone the window fills the screen below the sticky site header (support-widget.js sets --pyr-chat-top to the
   header's height), so the header never covers the window's close button and its menus stay reachable. */
@media (max-width: 575.98px) {
  .pyr-chat-window { inset: var(--pyr-chat-top, 0px) 0 0; width: auto; height: auto; border: 0; border-radius: 0; }
  /* The page behind does not scroll. On html only: hidden on body too would make body the sticky header's scroll
     container, and the header would leave the top of the screen on a scrolled page. */
  html.pyr-chat-open { overflow: hidden; }
  html.pyr-chat-open .pyr-support-fab { display: none; }
}

/* The chat inside the window (Support/Chat.cshtml). */
.pyr-chatw { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.pyr-chatw-who {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--pyr-space-2);
  margin: 0; padding: var(--pyr-space-2) var(--pyr-space-4);
  font-size: var(--pyr-text-sm); background: var(--pyr-surface); border-bottom: 1px solid var(--pyr-border);
}
.pyr-chatw-presence { width: 0.625rem; height: 0.625rem; border-radius: var(--pyr-radius-pill); background: var(--pyr-border-strong); }
.pyr-chatw-presence.is-online { background: var(--pyr-success); }
.pyr-chatw-presence.is-waiting { background: var(--pyr-signal); }
.pyr-chatw-hours { flex-basis: 100%; color: var(--pyr-text-muted); font-size: var(--pyr-text-label); }
.pyr-chatw-feed {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: var(--pyr-space-3);
  padding: var(--pyr-space-4);
}
.pyr-chatw-feed:focus { outline: none; }
.pyr-chatw-feed:focus-visible { outline: 2px solid var(--pyr-focus-ring-ink); outline-offset: -2px; }
.pyr-chatw .pyr-chat-thread { gap: var(--pyr-space-2); }
.pyr-chatw .pyr-chat { max-width: 88%; padding: var(--pyr-space-2) var(--pyr-space-3); }
.pyr-chatw .pyr-chat-them { background: var(--pyr-surface); }
.pyr-chatw .pyr-chat.is-continued { margin-top: calc(-1 * var(--pyr-space-1)); }
.pyr-chatw .pyr-chat-them.is-continued { border-start-start-radius: var(--pyr-radius-sm); }
.pyr-chatw .pyr-chat-me.is-continued { border-start-end-radius: var(--pyr-radius-sm); }
.pyr-chatw .pyr-chat.is-continued .pyr-chat-who { display: none; }
.pyr-chat-time { display: block; margin-top: var(--pyr-space-1); font-size: var(--pyr-text-caption); color: var(--pyr-text-muted); text-align: end; }
.pyr-chatw-day {
  align-self: center; margin: var(--pyr-space-2) 0; padding: 0.125rem var(--pyr-space-3);
  border-radius: var(--pyr-radius-pill); background: var(--pyr-surface-2); color: var(--pyr-text-muted); font-size: var(--pyr-text-label);
}
.pyr-chatw-chips { display: flex; flex-wrap: wrap; gap: var(--pyr-space-2); }
.pyr-chatw-chip, .pyr-chatw-way, .pyr-chatw-suggestion {
  display: inline-flex; align-items: center; min-height: var(--pyr-tap-min);
  padding: var(--pyr-space-2) var(--pyr-space-3);
  border: 1px solid var(--pyr-border-strong); border-radius: var(--pyr-radius-pill);
  background: var(--pyr-surface); color: var(--pyr-primary); font-size: var(--pyr-text-sm); font-weight: 600;
  text-decoration: none; line-height: 1.25;
}
.pyr-chatw-chip:hover, .pyr-chatw-way:hover, .pyr-chatw-suggestion:hover { border-color: var(--pyr-primary); color: var(--pyr-primary-hover); }
.pyr-chatw-chip.is-active, .pyr-chatw-way-primary { background: var(--pyr-primary); border-color: var(--pyr-primary); color: var(--pyr-on-accent); }
.pyr-chatw-way-primary:hover { background: var(--pyr-primary-hover); color: var(--pyr-on-accent); }
.pyr-chatw-suggestions { display: flex; flex-direction: column; align-items: flex-start; gap: var(--pyr-space-2); margin: 0; }
.pyr-chatw-suggestion { border-radius: var(--pyr-radius-lg); font-weight: 500; text-align: start; }
.pyr-chatw-back { align-self: flex-start; display: inline-flex; align-items: center; min-height: var(--pyr-tap-min); font-size: var(--pyr-text-sm); }
.pyr-chatw-ways { padding-top: var(--pyr-space-3); border-top: 1px solid var(--pyr-border); }
.pyr-chatw-ways-title { margin: 0 0 var(--pyr-space-2); font-size: var(--pyr-text-sm); font-weight: 600; }
.pyr-chatw-ways-list { display: flex; flex-wrap: wrap; gap: var(--pyr-space-2); margin: 0; }
.pyr-chatw-ways-list form { margin: 0; }
.pyr-chatw-notice { margin: 0 0 var(--pyr-space-2); font-size: var(--pyr-text-sm); color: var(--pyr-text-muted); }
.pyr-chatw-bar {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--pyr-space-2);
  padding: var(--pyr-space-2) var(--pyr-space-3) calc(var(--pyr-space-2) + env(safe-area-inset-bottom, 0px));
  background: var(--pyr-surface); border-top: 1px solid var(--pyr-border);
}
.pyr-chatw-bar-ask { flex-direction: column; align-items: stretch; }
.pyr-chatw-bar form { margin: 0; }
.pyr-chatw-bar .alert { flex-basis: 100%; order: -1; margin: 0; font-size: var(--pyr-text-sm); }
.pyr-chatw-send-form { flex: 1; display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--pyr-space-2); }
/* Its paperclip, its file box and a refusal take their places in the bar itself. */
.pyr-chatw-photo-form { display: contents; }
.pyr-chatw-input {
  flex: 1; min-height: var(--pyr-tap-min); max-height: 8rem; resize: none; field-sizing: content;
  padding: var(--pyr-space-2) var(--pyr-space-3);
  border: 1px solid var(--pyr-border-strong); border-radius: var(--pyr-radius-lg);
  background: var(--pyr-bg); color: var(--pyr-text); font: inherit;
}
.pyr-chatw-input:focus { outline: 2px solid var(--pyr-primary); outline-offset: 1px; }
.pyr-chatw-icon-button {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: var(--pyr-tap-min); height: var(--pyr-tap-min); margin: 0;
  border: 0; border-radius: var(--pyr-radius-pill); background: transparent; color: var(--pyr-primary); cursor: pointer;
}
.pyr-chatw-icon-button:hover { background: var(--pyr-surface-2); }
.pyr-chatw-photo-form:focus-within .pyr-chatw-icon-button, .pyr-chatw-icon-button:focus-visible { outline: 3px solid var(--pyr-signal); outline-offset: 1px; }
.pyr-chatw-send { background: var(--pyr-primary); color: var(--pyr-on-accent); }
.pyr-chatw-send:hover { background: var(--pyr-primary-hover); }
[dir="rtl"] .pyr-chatw-send-icon { transform: scaleX(-1); }
.pyr-chatw-hint { margin: 0; font-size: var(--pyr-text-label); color: var(--pyr-text-muted); }
.pyr-chatw-end { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pyr-space-2); margin-top: var(--pyr-space-2); }
@media (prefers-reduced-motion: no-preference) {
  .pyr-chat-window:not([hidden]) { animation: pyr-chat-rise 160ms ease-out; }
  @keyframes pyr-chat-rise { from { opacity: 0; transform: translateY(0.75rem); } to { opacity: 1; transform: none; } }
}

/* =====================================================================================
   Destinations, plan lists and the Store carousel — destination cards (flag or landmark photo, "N plans", "from"),
   the search destinations screen, the sort tabs and filters above every plan list, the "Find my plan" finder, the
   carousel layout, the photo band of a country page and the photo credits.
   ===================================================================================== */

/* A destination card. With a landmark photo the photo fills the card under the scrim and the text turns white. */
.pyr-dest-cards {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pyr-space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.pyr-dest-cards > li { flex: 1 1 14rem; min-width: 0; }
.pyr-dest-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 4.75rem;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--pyr-border);
  border-radius: var(--pyr-radius-md);
  background: var(--pyr-surface);
  color: var(--pyr-text);
  text-decoration: none;
  transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out;
}
.pyr-dest-card:hover { border-color: var(--pyr-cedar); box-shadow: var(--pyr-shadow-md); color: var(--pyr-text); }
.pyr-dest-card:focus-visible { outline: 3px solid var(--pyr-signal); outline-offset: 2px; }
.pyr-dest-card.has-photo { min-height: 7.5rem; color: var(--pyr-on-band); }
.pyr-dest-card.has-photo:hover { color: var(--pyr-on-band); }
.pyr-dest-card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pyr-dest-card.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--pyr-photo-scrim-deep), var(--pyr-photo-scrim));
}
.pyr-dest-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--pyr-space-1);
  width: 100%;
  padding: var(--pyr-space-3);
}
.pyr-dest-card-name { display: flex; align-items: center; gap: var(--pyr-space-2); font-weight: 700; line-height: 1.25; }
.pyr-dest-card-name .pyr-flag { width: 1.5rem; height: 1.5rem; flex-shrink: 0; }
.pyr-dest-card-meta { display: flex; flex-wrap: wrap; gap: var(--pyr-space-1); font-size: var(--pyr-text-sm); color: var(--pyr-text-muted); }
.pyr-dest-card.has-photo .pyr-dest-card-meta { color: var(--pyr-on-band); }
.pyr-dest-card-tag {
  align-self: flex-start;
  padding: 0 var(--pyr-space-2);
  border-radius: var(--pyr-radius-pill);
  background: var(--pyr-mint);
  color: var(--pyr-ink);
  font-size: var(--pyr-text-label);
  font-weight: 700;
}
/* The home finder's lists are flex rows of cards. */
.pyr-dest [data-dest-list].pyr-dest-cards { flex-wrap: wrap; }

/* The search destinations screen: while the visitor types, the matching destinations show and the browse sections
   step aside. */
.pyr-all-plans {
  display: flex;
  align-items: center;
  gap: var(--pyr-space-4);
  margin-bottom: var(--pyr-space-5);
  padding: var(--pyr-space-4) var(--pyr-space-5);
  border: 1px solid var(--pyr-border);
  border-radius: var(--pyr-radius-lg);
  background: var(--pyr-mint-soft);
  color: var(--pyr-text);
  text-decoration: none;
}
.pyr-all-plans:hover { border-color: var(--pyr-cedar); color: var(--pyr-text); }
.pyr-all-plans > span:nth-child(2) { flex: 1; }
.pyr-all-plans-sub { display: block; color: var(--pyr-text-muted); font-size: var(--pyr-text-sm); }
.pyr-all-plans-icon {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--pyr-cedar);
  color: var(--pyr-on-accent);
}
.pyr-all-plans-icon svg { width: 1.25rem; height: 1.25rem; }
.pyr-all-plans .pyr-dir-arrow { width: 1.25rem; height: 1.25rem; transform: scaleX(-1); }
html[dir="rtl"] .pyr-all-plans .pyr-dir-arrow { transform: none; }
.pyr-dest-search-lists { display: none; margin-top: var(--pyr-space-4); }
.pyr-dest-search-lists > ul { margin-bottom: var(--pyr-space-2); }
.pyr-dest-screen .is-filtering .pyr-dest-search-lists { display: block; }
.pyr-dest-screen:has(.is-filtering) .pyr-dest-browse { display: none; }
.pyr-recent-item { display: inline-flex; align-items: center; gap: var(--pyr-space-1); }
.pyr-recent-remove {
  display: inline-grid;
  place-items: center;
  width: var(--pyr-tap-min);
  height: var(--pyr-tap-min);
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--pyr-text-muted);
  font-size: 1.25rem;
}
.pyr-recent-remove:hover { background: var(--pyr-surface-2); color: var(--pyr-text); }
.pyr-recent-remove:focus-visible { outline: 3px solid var(--pyr-signal); outline-offset: 1px; }

/* Category tabs are radios: finder.js opens the checked one's panel, for any region; with no script every panel shows. */
.pyr-cat-tabs { flex-wrap: wrap; margin-bottom: var(--pyr-space-4); }
.pyr-cat [data-pyr-category-panel] { display: none; }
.pyr-cat [data-pyr-category-panel].is-open { display: flex; }
@media (scripting: none) {
  .pyr-cat [data-pyr-category-panel] { display: flex; margin-bottom: var(--pyr-space-4); }
}

/* Sort tabs, "N total" and the Filters panel above a plan list. */
.pyr-plan-controls { margin-bottom: var(--pyr-space-5); }
.pyr-sort-tabs ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pyr-space-2);
  margin: 0 0 var(--pyr-space-3);
  padding: 0;
  list-style: none;
}
.pyr-sort-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: var(--pyr-tap-min);
  padding: 0 var(--pyr-space-4);
  border: 1px solid var(--pyr-border);
  border-radius: var(--pyr-radius-pill);
  background: var(--pyr-surface);
  color: var(--pyr-text);
  font-size: var(--pyr-text-sm);
  font-weight: 600;
  text-decoration: none;
}
.pyr-sort-tabs a:hover { border-color: var(--pyr-cedar); }
.pyr-sort-tabs a[aria-current="true"] { border-color: var(--pyr-signal); background: var(--pyr-signal); color: var(--pyr-on-signal); }
.pyr-plan-controls-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--pyr-space-3); }
.pyr-plan-total { margin: 0; padding-block: var(--pyr-space-1); font-weight: 600; }
.pyr-plan-filters { flex: 0 1 34rem; min-width: 0; }
.pyr-plan-filters > summary { list-style: none; cursor: pointer; }
.pyr-plan-filters > summary::-webkit-details-marker { display: none; }
.pyr-plan-filters-panel {
  display: grid;
  gap: var(--pyr-space-4);
  margin-top: var(--pyr-space-3);
  padding: var(--pyr-space-4);
  border: 1px solid var(--pyr-border);
  border-radius: var(--pyr-radius-md);
  background: var(--pyr-surface);
}
.pyr-plan-filter-head { display: flex; justify-content: space-between; gap: var(--pyr-space-2); font-weight: 600; }
.pyr-plan-filter-head output { color: var(--pyr-text-muted); font-weight: 500; }
/* One end of a from–to filter, under the filter's own heading. */
.pyr-plan-filter-end { font-size: var(--pyr-text-sm); font-weight: 500; }
.pyr-plan-filter-chips { display: flex; flex-wrap: wrap; gap: var(--pyr-space-1); margin: var(--pyr-space-1) 0 0; padding: 0; list-style: none; }
.pyr-chip-sm { min-height: 2rem; padding-inline: var(--pyr-space-3); font-size: var(--pyr-text-sm); }
.pyr-plan-filter-toggles { display: flex; flex-wrap: wrap; gap: var(--pyr-space-4); }
.pyr-plan-filter-actions { display: flex; flex-wrap: wrap; gap: var(--pyr-space-2); align-items: center; }
@media (max-width: 575.98px) {
  .pyr-plan-filters { flex-basis: 100%; }
}

/* A plan card's price per GB under its price, and the Recommended tag. */
.pyr-pass-per-day { color: var(--pyr-text-muted); font-size: var(--pyr-text-label); font-weight: 600; }
.pyr-badge-mint { color: var(--pyr-ink); background: var(--pyr-mint); border-color: var(--pyr-cedar); }

.btn-check:focus-visible + .btn-outline-primary { outline: 3px solid var(--pyr-ink); outline-offset: 2px; box-shadow: none; }


/* "All plans"'s country picker on the band. */
.pyr-plan-country { margin-top: var(--pyr-space-4); max-width: 32rem; }
.pyr-plan-country-label { display: block; margin-bottom: var(--pyr-space-1); color: var(--pyr-on-band-muted); font-weight: 600; }
.pyr-plan-country-row { display: flex; gap: var(--pyr-space-2); }

/* "Find my plan" on home. */
.pyr-finder {
  margin-top: var(--pyr-space-5);
  padding: var(--pyr-space-5);
  border-radius: var(--pyr-radius-lg);
  background: var(--pyr-surface);
  color: var(--pyr-text);
  box-shadow: var(--pyr-shadow-md);
}
.pyr-finder-title { font-size: var(--pyr-text-title); margin-bottom: var(--pyr-space-4); }
.pyr-finder-step { margin: 0 0 var(--pyr-space-4); padding: 0; border: 0; min-width: 0; }
.pyr-finder-label { display: block; margin-bottom: var(--pyr-space-2); font-size: var(--pyr-text-sm); font-weight: 600; float: none; }
.pyr-finder-choices { display: flex; flex-wrap: wrap; gap: var(--pyr-space-2); }
/* Its own home block, placed wherever staff put it. */
.pyr-home-finder .pyr-finder { margin-top: 0; max-width: 48rem; }

/* The Store carousel: one wide slide at a time once its script runs; every slide stacked without it. */
.pyr-store-home-top { padding-block: var(--pyr-space-4); }
.pyr-carousel-slides { display: grid; gap: var(--pyr-space-3); }
.pyr-carousel.is-ready .pyr-carousel-slides { display: block; }
.pyr-carousel-link {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 12rem;
  aspect-ratio: 64 / 27;
  overflow: hidden;
  border-radius: var(--pyr-radius-lg);
  text-decoration: none;
}
.pyr-carousel-link.has-photo { color: var(--pyr-on-band); }
.pyr-carousel-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pyr-carousel-link.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--pyr-photo-scrim-deep), transparent 70%);
}
.pyr-carousel-caption {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--pyr-space-3);
  padding: var(--pyr-space-5);
}
.pyr-carousel-title { font-family: var(--pyr-font-heading); font-size: var(--pyr-text-display); font-weight: 800; line-height: 1.1; }
/* The pill (pause/play and "2/4") and the arrows sit inside the slide; the caption leaves the pill its corner. */
.pyr-carousel { position: relative; }
/* The page still scrolls vertically; a horizontal pan reaches the script as a swipe. */
.pyr-carousel.is-ready { touch-action: pan-y; }
.pyr-carousel.is-ready .pyr-carousel-caption { padding-inline-end: 8rem; }
.pyr-carousel-pill {
  position: absolute;
  inset-block-end: var(--pyr-space-3);
  inset-inline-end: var(--pyr-space-3);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--pyr-space-1);
  padding-inline: var(--pyr-space-1) var(--pyr-space-3);
  border-radius: var(--pyr-radius-pill);
  background: var(--pyr-photo-scrim-deep);
  color: var(--pyr-on-band);
}
.pyr-carousel-pill[hidden], .pyr-carousel-arrows[hidden] { display: none; }
.pyr-carousel-pill-button {
  display: inline-grid;
  place-items: center;
  width: var(--pyr-tap-min);
  height: var(--pyr-tap-min);
  border: 0;
  border-radius: var(--pyr-radius-pill);
  background: transparent;
  color: inherit;
}
.pyr-carousel-pill-button svg { width: 1.25rem; height: 1.25rem; }
.pyr-carousel-pill-button[aria-pressed="true"] .pyr-carousel-icon-pause,
.pyr-carousel-pill-button[aria-pressed="false"] .pyr-carousel-icon-play { display: none; }
.pyr-carousel-pill-button:focus-visible,
.pyr-carousel-arrow:focus-visible { outline: 3px solid var(--pyr-signal); outline-offset: 2px; }
.pyr-carousel-position { min-width: 2.5rem; text-align: center; font-weight: 600; }
.pyr-carousel-arrow {
  position: absolute;
  inset-block-start: 50%;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: var(--pyr-tap-min);
  height: var(--pyr-tap-min);
  border: 0;
  border-radius: var(--pyr-radius-pill);
  background: var(--pyr-photo-scrim-deep);
  color: var(--pyr-on-band);
  transform: translateY(-50%);
}
.pyr-carousel-arrow svg { width: 1.125rem; height: 1.125rem; }
.pyr-carousel-arrow-previous { inset-inline-start: var(--pyr-space-3); }
.pyr-carousel-arrow-next { inset-inline-end: var(--pyr-space-3); }
@media (max-width: 767.98px) {
  .pyr-carousel-arrows { display: none; }
}
@media (max-width: 575.98px) {
  .pyr-carousel-title { font-size: var(--pyr-text-headline); }
  .pyr-carousel-caption { padding: var(--pyr-space-4); }
}
/* The security slide: a shield in the band's own text colour beside the title and its line; it opens nothing. */
.pyr-security-shield { flex: none; display: inline-grid; inline-size: 4rem; block-size: 4rem; }
.pyr-security-shield svg { inline-size: 100%; block-size: 100%; }
.pyr-security-text { display: flex; flex-direction: column; gap: var(--pyr-space-2); }
.pyr-security-slide .pyr-carousel-title { font-size: var(--pyr-text-headline); }
.pyr-security-line { font-size: var(--pyr-text-title); font-weight: 600; }
@media (max-width: 575.98px) {
  .pyr-security-shield { inline-size: 2.75rem; block-size: 2.75rem; }
  .pyr-security-slide .pyr-carousel-title { font-size: var(--pyr-text-title); }
  .pyr-security-line { font-size: var(--pyr-text-body); }
}
/* At the top of the home a carousel runs edge to edge, and the next block starts on a sheet over its foot. */
.pyr-store-home-top:has(> .pyr-carousel-bleed) { padding-block-start: 0; }
.pyr-carousel-bleed .pyr-carousel-link { border-radius: 0; min-height: 11rem; }
.pyr-carousel-bleed .pyr-carousel-caption { padding-block-end: var(--pyr-space-7); }
.pyr-carousel-bleed .pyr-carousel-pill { inset-block-end: var(--pyr-space-6); }
.pyr-carousel-bleed .pyr-store-heading { max-width: 1320px; margin-inline: auto; padding-inline: var(--pyr-space-4); }
.pyr-store-home-top:has(> .pyr-carousel-bleed:last-child) { padding-block-end: 0; }
.pyr-store-home-top:has(> .pyr-carousel-bleed:last-child) + * {
  position: relative;
  z-index: 1;
  margin-block-start: calc(-1 * var(--pyr-space-5));
  border-start-start-radius: var(--pyr-radius-xl);
  border-start-end-radius: var(--pyr-radius-xl);
}

/* A country page's band over its landmark photo. */
.pyr-photo-band { position: relative; overflow: hidden; }
.pyr-photo-band-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pyr-photo-band::after { content: ""; position: absolute; inset: 0; background: var(--pyr-photo-scrim); }
.pyr-photo-band > .container { position: relative; z-index: 1; }

/* The device page's "How to check" card. */
.pyr-how-check-steps { margin-bottom: var(--pyr-space-3); padding-inline-start: 1.25rem; font-weight: 600; }
.pyr-dial-code { padding: 0 var(--pyr-space-1); border-radius: var(--pyr-radius-sm); background: var(--pyr-mint-soft); }
.pyr-note-line { color: var(--pyr-text); }

/* Landmark photos: the staff thumbnail and the public credits list. */
.pyr-landmark-thumb { width: 20rem; max-width: 100%; height: auto; border-radius: var(--pyr-radius-sm); }
.pyr-credits { display: grid; gap: var(--pyr-space-3); }
.pyr-credit { display: flex; align-items: center; gap: var(--pyr-space-3); }
.pyr-credit-thumb { width: 6rem; height: auto; aspect-ratio: 16 / 9; object-fit: cover; flex-shrink: 0; border-radius: var(--pyr-radius-sm); }

/* Travel recommendations: the home block, the Travel page's cards with their advisory line, the source lines. */
.pyr-travel-home-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--pyr-space-3); }
.pyr-travel-home-row { margin: var(--pyr-space-4) 0 var(--pyr-space-2); font-size: var(--pyr-text-body); font-weight: 700; }
.pyr-travel-level {
  padding: 0 var(--pyr-space-2);
  border-radius: var(--pyr-radius-sm);
  background: var(--pyr-mint-soft);
  color: var(--pyr-text);
  font-size: var(--pyr-text-label);
  font-weight: 600;
}
.pyr-travel-source { margin: var(--pyr-space-2) 0 var(--pyr-space-3); color: var(--pyr-text-muted); font-size: var(--pyr-text-sm); }
.pyr-travel-cards > li { display: flex; flex-direction: column; gap: var(--pyr-space-1); }
.pyr-travel-cards .pyr-dest-card { height: auto; flex-grow: 1; }
.pyr-travel-advisory { margin: 0; color: var(--pyr-text-muted); font-size: var(--pyr-text-sm); }

/* An unpaid order's Cancel (Checkout/Return) sits outside the polled status region; it goes once a refresh swaps in a
   paid, confirming or cancelled state. */
#pyr-order-status:not([data-pyr-not-paid]) ~ .pyr-order-cancel-host { display: none; }
.pyr-order-cancel-host { max-width: 32rem; margin-block-end: var(--pyr-space-6); text-align: center; }

/* The destinations map: MapLibre's canvas over our own colours, read by travel-map.js from these tokens. */
.pyr-map {
  --pyr-map-sea: var(--pyr-mint-soft);
  --pyr-map-land: var(--pyr-surface);
  --pyr-map-sold: var(--pyr-cedar);
  --pyr-map-yours: var(--pyr-tangerine);
  --pyr-map-border: var(--pyr-border-strong);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--pyr-border);
  border-radius: var(--pyr-radius-sm);
  background: var(--pyr-map-sea);
}
.pyr-map-canvas { width: 100%; height: clamp(18rem, 60vh, 34rem); }
.pyr-map-fallback { margin: 0; padding: var(--pyr-space-4); }
.pyr-map-popup { color: var(--pyr-text); font-size: var(--pyr-text-sm); }
.pyr-map-popup p { margin: var(--pyr-space-1) 0; }
.pyr-map-legend { display: flex; flex-wrap: wrap; gap: var(--pyr-space-4); margin: var(--pyr-space-3) 0; padding: 0; list-style: none; font-size: var(--pyr-text-sm); }
.pyr-map-legend li { display: inline-flex; align-items: center; gap: var(--pyr-space-2); }
.pyr-map-swatch { display: inline-block; width: 1rem; height: 1rem; border: 1px solid var(--pyr-border-strong); border-radius: 2px; }
.pyr-map-swatch-sold { background: var(--pyr-cedar); }
.pyr-map-swatch-yours { background: var(--pyr-tangerine); }
.pyr-map-yours-tag {
  padding: 0 var(--pyr-space-2);
  border-radius: var(--pyr-radius-sm);
  background: var(--pyr-tangerine);
  color: var(--pyr-on-signal);
  font-size: var(--pyr-text-label);
  font-weight: 600;
}
.pyr-map-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: var(--pyr-space-2) var(--pyr-space-4); margin: 0; padding: 0; list-style: none; }
.pyr-map-list li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pyr-space-2); min-height: var(--pyr-tap-min); }
.pyr-map-list-line { color: var(--pyr-text-muted); font-size: var(--pyr-text-sm); }

/* The speed test. */
.pyr-speed-test-actions { display: flex; flex-wrap: wrap; gap: var(--pyr-space-3); margin-block: var(--pyr-space-4) var(--pyr-space-2); }
.pyr-speed-test-actions .btn { min-height: var(--pyr-tap-min); min-width: 8rem; }
.pyr-speed-test-status { min-height: 1.5em; font-weight: 600; }
.pyr-speed-test [data-pyr-speed-test-results] dd { font-variant-numeric: tabular-nums; unicode-bidi: isolate; }

/* The card pay page, and every page in the app (app mode): one scroll container, no zoom, no bounce, no long-press
   menu or selection outside form fields, safe areas respected. */
.pyr-card-pay-amount { display: flex; justify-content: space-between; align-items: baseline; gap: var(--pyr-space-3); }
.pyr-card-pay-amount strong { font-variant-numeric: tabular-nums; unicode-bidi: isolate; }
[data-pyr-card-mount] { min-height: 12rem; }
html:has(body.pyr-pay-app) { height: 100%; overflow: hidden; }
body.pyr-pay-app {
  height: 100%; overflow-y: auto; overscroll-behavior: none; touch-action: manipulation;
  -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none;
  background: var(--pyr-bg, var(--bs-body-bg));
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
body.pyr-pay-app input, body.pyr-pay-app textarea, body.pyr-pay-app select, body.pyr-pay-app [contenteditable] { user-select: text; -webkit-user-select: text; }
.pyr-pay-app-main { padding: var(--pyr-space-4); }

/* Travel insurance: the insurer's tables on a white sheet that scrolls inside itself when wider than the page (phones get
   the cards .pyr-table draws below 641px); the insurer's own wording keeps its line breaks. */
.pyr-insurance-from { margin: var(--pyr-space-2) 0 0; font-size: var(--pyr-text-title); font-weight: 700; }
.pyr-insurance-intro { max-width: 70ch; }
.pyr-insurance-groups { display: grid; gap: var(--pyr-space-4); grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin: var(--pyr-space-4) 0 0; padding: 0; list-style: none; }
.pyr-insurance-groups li { padding: var(--pyr-space-4); background: var(--pyr-surface); border: 1px solid var(--pyr-border); border-radius: var(--pyr-radius-lg); }
.pyr-insurance-groups p { margin: 0; color: var(--pyr-text-muted); }
.pyr-insurance-wrap { overflow-x: auto; background: var(--pyr-surface); border: 1px solid var(--pyr-border); border-radius: var(--pyr-radius-lg); }
.pyr-insurance-table { margin: 0; }
.pyr-insurance-table td, .pyr-insurance-table tbody th { vertical-align: top; }
.pyr-insurance-group-row th { background: var(--pyr-mint-soft); font-weight: 700; }
.pyr-insurance-benefit { font-weight: 500; }
.pyr-insurance-info {
  display: inline-flex; align-items: center; justify-content: center; vertical-align: middle;
  width: var(--pyr-tap-min); height: var(--pyr-tap-min); margin-inline-start: var(--pyr-space-1); padding: 0;
  color: var(--pyr-cedar); background: none; border: 0; border-radius: 50%;
}
.pyr-insurance-info:hover { background: var(--pyr-mint-soft); }
.pyr-insurance-info svg { width: 1.25rem; height: 1.25rem; }
.pyr-insurance-dialog { width: min(42rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: var(--pyr-space-5); border: 0; border-radius: var(--pyr-radius-lg); box-shadow: var(--pyr-shadow-lg); }
.pyr-insurance-dialog::backdrop { background: rgba(16, 20, 18, 0.5); }
.pyr-insurance-official-label { margin: 0 0 var(--pyr-space-2); color: var(--pyr-text-muted); font-size: var(--pyr-text-sm); }
.pyr-insurance-official { white-space: pre-line; overflow-wrap: anywhere; text-align: start; }
.pyr-insurance-official-list { padding-inline-start: 1.25rem; }
.pyr-insurance-official-list li + li { margin-top: var(--pyr-space-2); }
.pyr-insurance-documents { display: grid; gap: var(--pyr-space-2); padding: 0; list-style: none; }
.pyr-insurance-documents li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--pyr-space-2); padding-block: var(--pyr-space-2); border-bottom: 1px solid var(--pyr-border); }
.pyr-insurance-documents a { display: inline-flex; align-items: center; min-height: var(--pyr-tap-min); }
@media (max-width: 640px) { .pyr-insurance-wrap { background: none; border: 0; } }
.pyr-insurance-website { display: inline-flex; align-items: center; gap: var(--pyr-space-2); }
.pyr-insurance-website svg { width: 1rem; height: 1rem; }
/* The benefit comparison on a phone: a sticky row of the plans' short names, then per benefit its name on a full-width
   line and its three limits in equal columns, compact; never wider than the screen. */
.pyr-ins-compact { display: none; }
@media (max-width: 640px) {
  .pyr-insurance-wrap:has(> .pyr-insurance-compare) { overflow: visible; }
  .pyr-insurance-compare .pyr-ins-full {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }
  .pyr-insurance-compare .pyr-ins-compact { display: inline; }
  .pyr-insurance-compare thead {
    display: block;
    position: sticky;
    top: calc(var(--pyr-space-9) + var(--pyr-space-2));
    z-index: 1;
    background: var(--pyr-surface);
    border-bottom: 2px solid var(--pyr-cedar);
  }
  .pyr-insurance-compare tr[data-pyr-insurance-benefit],
  .pyr-insurance-compare thead tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    border: 0;
    border-radius: 0;
    background: var(--pyr-surface);
  }
  .pyr-insurance-compare tr[data-pyr-insurance-benefit] { border-bottom: 1px solid var(--pyr-border); }
  .pyr-insurance-compare thead th:first-child { display: none; }
  .pyr-insurance-compare thead th { padding: var(--pyr-space-2) var(--pyr-space-1); text-align: center; font-weight: 700; }
  .pyr-insurance-compare tbody th.pyr-insurance-benefit {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--pyr-space-2) var(--pyr-space-2) 0;
    border: 0;
  }
  .pyr-insurance-compare tbody td {
    display: block;
    padding: var(--pyr-space-1) var(--pyr-space-1) var(--pyr-space-2);
    text-align: center;
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
  }
  .pyr-insurance-compare tbody td::before { content: none; }
  .pyr-insurance-compare .pyr-insurance-group-row { margin: 0; border: 0; border-radius: 0; }
  .pyr-insurance-compare .pyr-insurance-group-row th { display: block; padding: var(--pyr-space-2); }
}

/* The GB / Unlimited choice heading the builder's and daily unlimited's forms (_PlanKindChoice). */
.pyr-plan-kind { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pyr-space-2); }
.pyr-plan-kind-label { font-weight: 600; margin-inline-end: var(--pyr-space-1); }
.pyr-plan-kind .btn { min-height: var(--pyr-tap-min); }

/* The plan builder's "every country" list (_PlanBuilder): long, so it scrolls inside its collapsed row. */
.pyr-covered-list { max-height: 16rem; overflow-y: auto; }
.pyr-covered-list li { padding-block: var(--pyr-space-1); }

/* An order's number with its Copy button (_OrderNumber). */
.pyr-order-number { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pyr-space-2); margin-block: var(--pyr-space-2); }
.pyr-order-number-label { color: var(--pyr-text-muted); font-size: var(--pyr-text-sm); }
.pyr-order-number .pyr-app-hint { margin: 0; }
.pyr-order-number-value { font-weight: 700; }

/* Offers that catch the eye (_OfferCard, _OffersBlock, the carousel's offer slides): the destination large on Cedar deep,
   the saving as a Mint badge, the old price struck beside the viewer's own, the end, one button. */
.pyr-offers-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--pyr-space-3); margin-block-end: var(--pyr-space-3); }
.pyr-offers-all { font-weight: 600; }
.pyr-offer-cards { display: grid; gap: var(--pyr-space-4); grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.pyr-offer-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: var(--pyr-radius-lg); background: var(--pyr-cedar-deep); color: var(--pyr-on-band); box-shadow: var(--pyr-shadow-md); }
.pyr-offer-card-media { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; background: var(--pyr-cedar); }
.pyr-offer-card-photo { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; }
.pyr-offer-card-flag .pyr-flag { inline-size: 5rem; block-size: auto; border-radius: var(--pyr-radius-sm); box-shadow: var(--pyr-shadow-sm); }
.pyr-offer-card-badge { position: absolute; inset-block-start: var(--pyr-space-3); inset-inline-start: var(--pyr-space-3); padding: var(--pyr-space-1) var(--pyr-space-3); border-radius: var(--pyr-radius-pill); background: var(--pyr-mint); color: var(--pyr-ink); font-weight: 800; font-size: var(--pyr-text-title); }
.pyr-offer-card-badge-quiet { font-size: var(--pyr-text-sm); font-weight: 700; }
.pyr-offer-card-body { display: flex; flex-direction: column; gap: var(--pyr-space-2); padding: var(--pyr-space-4); flex: 1; }
.pyr-offer-card-title { margin: 0; font-size: var(--pyr-text-title); font-weight: 800; color: inherit; }
.pyr-offer-card-specs, .pyr-offer-card-ends { margin: 0; opacity: 0.9; }
.pyr-offer-card-ends { font-weight: 700; color: var(--pyr-mint); }
.pyr-offer-card-price { margin: 0; display: flex; align-items: baseline; gap: var(--pyr-space-2); }
.pyr-offer-card .pyr-price-was { opacity: 0.8; color: inherit; }
.pyr-offer-card-now { font-size: var(--pyr-text-headline); font-weight: 800; }
.pyr-offer-card-button { margin-block-start: auto; background: var(--pyr-mint); color: var(--pyr-ink); font-weight: 700; border: 0; }
.pyr-offer-card-button:hover, .pyr-offer-card-button:focus-visible { background: var(--pyr-on-band); color: var(--pyr-ink); }
.pyr-offer-slide .pyr-offer-card-badge { position: static; display: inline-block; margin-block-end: var(--pyr-space-2); }
/* An offer with no photo: a band with its flag rather than a wide empty slide. */
.pyr-offer-slide:not(.has-photo) { aspect-ratio: auto; align-items: center; color: var(--pyr-on-band); }
.pyr-offer-slide-flag .pyr-flag { inline-size: 3.5rem; block-size: auto; border-radius: var(--pyr-radius-sm); }
/* The warning badge's dark orange is unreadable on the deep green of an offer. */
:is(.pyr-offer-card, .pyr-offer-slide) .pyr-badge-warning { color: var(--pyr-on-band); }

/* What a choice hides: the card's options under a balance or credit payment, the save tick under a saved card, and a
   client's first password under an invitation. */
form:has(#gateway-prepaid:checked) [data-pyr-card-options],
form:has(#gateway-credit:checked) [data-pyr-card-options],
[data-pyr-card-options]:has(input[name=savedCardId]:checked:not(#saved-card-new)) [data-pyr-save-card],
form:has(#client-invite:checked) div:has(> [data-pyr-first-password-label]) {
  display: none;
}

/* Touch screens: every small control keeps a full tap target (the look stays compact on a mouse). */
@media (pointer: coarse) {
  .page-link { display: inline-flex; align-items: center; justify-content: center; min-width: var(--pyr-tap-min); min-height: var(--pyr-tap-min); }
  .form-check-label { padding-block: 0.625rem; }
  summary:not(.btn) { padding-block: 0.625rem; }
  .pyr-chip-sm, .pyr-seg label { min-height: var(--pyr-tap-min); }
  .pyr-dest-more, .pyr-offers-all { display: inline-flex; align-items: center; min-height: var(--pyr-tap-min); }
  .form-range { height: var(--pyr-tap-min); }
  .form-range::-webkit-slider-thumb { width: 1.75rem; height: 1.75rem; margin-top: -0.625rem; }
  .form-range::-moz-range-thumb { width: 1.75rem; height: 1.75rem; }
}

/* A destination's most popular plan (BR-COUNTRY-POPULAR-PLAN): a highlighted card above the list, with a pulsing "live"
   light that is still for a viewer who asks for reduced motion. */
.pyr-most-popular {
  border: 2px solid var(--pyr-cedar);
  border-radius: var(--pyr-radius-lg);
  background: var(--pyr-mint-soft);
  padding: 1rem;
}
.pyr-most-popular-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--pyr-text-title);
  margin-bottom: 0.75rem;
}
.pyr-live-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--pyr-success);
  animation: pyr-live-pulse 1.6s ease-in-out infinite;
  flex: none;
}
@keyframes pyr-live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}
@media (prefers-reduced-motion: reduce) {
  .pyr-live-dot { animation: none; }
}

/* Staff's Popular countries on the home page (BR-POPULAR-COUNTRIES): flag and name, each opening its page. */
.pyr-popular-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.pyr-popular-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: var(--pyr-tap-min);
  padding: 0.25rem 0.875rem;
  border: 1px solid var(--pyr-cedar);
  border-radius: 999px;
  background: var(--pyr-surface);
  color: var(--pyr-ink);
  text-decoration: none;
}
.pyr-popular-list a:hover, .pyr-popular-list a:focus-visible { background: var(--pyr-mint); }

/* A fieldset that disables a form's controls without breaking the grid it sits in. */
.d-contents { display: contents; }

/* The calendar beside a Days box (_DaysPicker) and flatpickr's range in the site's own colours. */
.pyr-days-picker { color: var(--pyr-primary); border-color: var(--pyr-border); background: var(--pyr-surface); }
.pyr-days-picker:hover, .pyr-days-picker:active { color: #fff; background: var(--pyr-primary); border-color: var(--pyr-primary); }
/* Prefixed with .flatpickr-calendar to win over flatpickr's own sheet, which the page loads after this one. */
.flatpickr-calendar { font-family: inherit; border-radius: var(--pyr-radius-md); }
.flatpickr-calendar .flatpickr-day.selected, .flatpickr-calendar .flatpickr-day.startRange, .flatpickr-calendar .flatpickr-day.endRange,
.flatpickr-calendar .flatpickr-day.selected:hover, .flatpickr-calendar .flatpickr-day.startRange:hover, .flatpickr-calendar .flatpickr-day.endRange:hover {
  background: var(--pyr-primary); border-color: var(--pyr-primary); color: #fff;
}
.flatpickr-calendar .flatpickr-day.inRange, .flatpickr-calendar .flatpickr-day.inRange:hover {
  background: var(--pyr-mint); border-color: var(--pyr-mint);
  box-shadow: -5px 0 0 var(--pyr-mint), 5px 0 0 var(--pyr-mint);
}
.flatpickr-calendar .flatpickr-day.today { border-color: var(--pyr-primary); }
.flatpickr-calendar .flatpickr-day.startRange + .endRange:not(:nth-child(7n+1)) { box-shadow: -10px 0 0 var(--pyr-primary); }
