/* =========================================================
   Eridura look A "Calm Navy" - homepage preview layer.
   Loaded after styles.css; everything is scoped to html.theme-a
   so removing the class (or this file) restores the old look.
   ========================================================= */

html.theme-a {
  --a-ink: #0B1F3A;
  --a-blue: #1E4FC2;
  --a-blue-dark: #16398F;
  --a-blue-soft: #E8EEFB;
  --a-page: #F4F6FA;
  --a-line: #DCE2EC;
  --a-line-strong: #AEB8C7;
  --a-muted: #4A5568;
  --a-ok-bg: #E5F3EB;
  --a-ok: #125C39;
  --font-family: 'IBM Plex Sans', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --color-primary: #1E4FC2;
  --color-primary-dark: #16398F;
  --color-accent: #1E4FC2;
  --color-background: #F4F6FA;
  --color-text-primary: #0B1F3A;
  --color-text-secondary: #4A5568;
  --color-border: #DCE2EC;
  --border-radius: 6px;
}

html.theme-a[lang="ar"] {
  --font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, sans-serif;
}

html.theme-a body,
html.theme-a body *:not(.material-icons-outlined):not(.material-icons):not(.fi) {
  font-family: var(--font-family) !important;
}

html.theme-a body {
  background: var(--a-page);
  color: var(--a-ink);
  padding-top: 72px;
}

html.theme-a[lang="ar"] body { line-height: 1.6; }

/* ---------- Header ---------- */
html.theme-a .main-header {
  background: #fff !important;
  border-bottom: 1px solid var(--a-line) !important;
  box-shadow: none !important;
  height: 72px;
}

html.theme-a .main-header .header-content {
  max-width: 1240px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px !important;
  display: flex !important;
  align-items: center;
  gap: 36px;
  flex-wrap: nowrap !important;
}

html.theme-a .header-logo { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
html.theme-a .header-logo img { display: none !important; }
/* styles.css pulls the logo 24px to the left on the two account pages (it
   lined up with the card grid under the old 24px header padding). With this
   header that put the logo half off the screen on phones in left-to-right
   languages, and 24px left of its place on every other page on desktop. */
html.theme-a body.profile-page .header-logo,
html.theme-a body.my-bookings-page .header-logo { margin-left: 0; }
html.theme-a .a-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Sans', sans-serif !important;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--a-ink);
}
html.theme-a .a-logo svg { width: 26px; height: 26px; color: var(--a-blue); }

html.theme-a .a-nav { display: flex; gap: 28px; }
html.theme-a .a-nav a {
  color: var(--a-ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}
html.theme-a .a-nav a:hover { color: var(--a-blue); }
html.theme-a .a-nav a.is-current { color: var(--a-blue); }
/* Rows that only exist in the small-screen menu (Sign In, Register, Currency) */
html.theme-a .a-nav .a-nav-extra { display: none; }

/* Menu button: shown below 1101px, where the main links open as a panel */
html.theme-a .a-menu-toggle {
  display: none;
  flex: none;
  width: 42px;
  height: 42px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--a-line);
  border-radius: 6px;
  background: #fff;
  color: var(--a-ink);
  cursor: pointer;
}
html.theme-a .a-menu-toggle svg { width: 22px; height: 22px; stroke-width: 2; }
html.theme-a .a-menu-toggle:hover,
html.theme-a .main-header.is-menu-open .a-menu-toggle { border-color: var(--a-blue); color: var(--a-blue); }

/* The information pages used to force their header left-to-right. */
html.theme-a .info-page-body .main-header { direction: inherit; }

html.theme-a .main-header .header-controls { margin-inline-start: auto; gap: 10px; }
html.theme-a .main-header .quick-prefs { gap: 8px; }

html.theme-a .pill {
  height: 40px;
  border: 1px solid var(--a-line) !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: var(--a-ink) !important;
  box-shadow: none !important;
  font-size: 14px;
  font-weight: 500;
}
html.theme-a .pill select { color: var(--a-ink); font-weight: 500; }

/* Language picker: flag, name and arrow stay inside the box in both text
   directions (the arrow used to be placed with a right-hand offset and ran
   over the Sign In button in Arabic). */
html.theme-a .quick-lang.language-picker { flex: none; padding-inline: 12px 9px; }
html.theme-a .quick-lang.language-picker .fi { margin: 0; }
/* A hairline around the flags: half of the Algerian flag is white. */
html.theme-a .quick-lang .fi,
html.theme-a .language-menu-option .fi { box-shadow: 0 0 0 1px rgba(11, 31, 58, 0.18); border-radius: 1px; }
html.theme-a .language-picker-button { flex: 1 1 auto; width: auto; min-width: 0; }
html.theme-a .language-picker-label { flex: 1 1 auto; text-align: start; }
html.theme-a .language-menu { inset-inline: auto 0; text-align: start; }
html.theme-a .language-menu-option { grid-template-columns: auto minmax(0, 1fr) 18px; text-align: start; }
/* Tick drawn in CSS: several pages do not load the icon font. */
html.theme-a .language-menu-option.is-selected::after {
  content: "";
  width: 6px;
  height: 11px;
  margin-inline-end: 4px;
  border: solid var(--a-blue);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  font-size: 0;
}

html.theme-a #auth-links-logged-out { gap: 10px; }
html.theme-a #auth-links-logged-out .auth-link {
  height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border-radius: 6px !important;
  font-size: 15px;
  font-weight: 600;
  box-shadow: none !important;
  white-space: nowrap;
}
html.theme-a #auth-links-logged-out .ghost-btn { background: #fff !important; color: var(--a-blue) !important; border: 1px solid var(--a-blue) !important; }
html.theme-a #auth-links-logged-out .solid-btn { background: var(--a-blue) !important; color: #fff !important; border: 1px solid var(--a-blue) !important; }

/* ---------- Hero with photo ---------- */
html.theme-a .hero {
  position: relative;
  padding: 0 !important;
  text-align: start !important;
  color: #fff;
  background: #0B1F3A url("../assets/photos/home-hero-sidi-bou-said.jpg") center 58% / cover no-repeat !important;
}
html.theme-a .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 22, 44, 0.56);
}
html.theme-a .hero-content {
  position: relative;
  max-width: 1240px !important;
  margin: 0 auto;
  padding: 88px 24px 72px;
}
html.theme-a .a-kick {
  margin: 0 0 14px !important;
  font-size: 14px !important;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #D3DFF6 !important;
}
html.theme-a[lang="ar"] .a-kick { letter-spacing: 0; }
html.theme-a .hero h1 {
  max-width: 780px;
  margin: 0 0 16px !important;
  font-size: 58px !important;
  line-height: 1.08 !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em;
  color: #fff !important;
  text-align: start !important;
}
html.theme-a[lang="ar"] .hero h1 { letter-spacing: 0; line-height: 1.3 !important; }
html.theme-a .hero-content > p:not(.a-kick) {
  max-width: 660px;
  margin: 0 0 40px !important;
  font-size: 19px !important;
  line-height: 1.6;
  color: #E8EEF8 !important;
  text-align: start !important;
}

/* ---------- Search card ---------- */
html.theme-a .search-container {
  background: #fff !important;
  border: 1px solid var(--a-line);
  border-radius: 8px !important;
  box-shadow: 0 14px 36px rgba(8, 22, 44, 0.22) !important;
  padding: 0 !important;
  color: var(--a-ink);
  text-align: start;
}
html.theme-a .search-tabs {
  gap: 30px;
  padding: 0 26px;
  border-bottom: 1px solid #E3E8F0;
  background: none !important;
}
html.theme-a .search-tabs .tab-link {
  height: 56px;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  color: var(--a-muted) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}
html.theme-a .search-tabs .tab-link.active {
  color: var(--a-ink) !important;
  border-bottom-color: var(--a-blue) !important;
}
html.theme-a .search-container .tab-content,
html.theme-a #budget-search-module { background: #fff !important; }
html.theme-a .search-container .tab-content { padding: 22px 26px 26px; }
html.theme-a .hero .search-container { width: 100% !important; max-width: none !important; margin: 0 !important; }
html.theme-a .budget-container { position: relative; }
html.theme-a .budget-panel-top {
  position: absolute !important;
  top: 0;
  inset-inline-end: 0;
  z-index: 3;
}

html.theme-a .budget-container {
  width: auto !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--a-ink) !important;
}
html.theme-a .budget-panel-top { margin: 0 !important; align-items: center !important; }
html.theme-a .budget-panel-top > div:first-child { display: none !important; }
html.theme-a .budget-origin-chip {
  height: 40px;
  border: 1px solid var(--a-line-strong) !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: var(--a-ink) !important;
  box-shadow: none !important;
}
html.theme-a .budget-origin-chip .material-icons-outlined { color: var(--a-blue) !important; }

html.theme-a .budget-discovery-form { gap: 16px !important; }

/* Who is travelling: plain segmented control, no cartoon icons */
html.theme-a .budget-intent-picker { display: flex !important; align-items: center; gap: 14px; flex-wrap: wrap; }
html.theme-a .budget-intent-picker legend {
  float: inline-start;
  margin: 0 !important;
  padding: 0;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--a-muted) !important;
}
html.theme-a .budget-intent-options {
  display: inline-flex !important;
  gap: 0 !important;
  border: 1px solid var(--a-line-strong);
  border-radius: 6px;
  overflow: hidden;
}
html.theme-a .budget-intent-option {
  min-height: 40px !important;
  height: 40px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 20px !important;
  border: 0 !important;
  border-inline-end: 1px solid var(--a-line-strong) !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}
html.theme-a .budget-intent-option:last-child { border-inline-end: 0 !important; }
html.theme-a .budget-intent-option .material-icons-outlined,
html.theme-a .budget-intent-option small { display: none !important; }
html.theme-a .budget-intent-option strong { font-size: 14px !important; font-weight: 500 !important; color: var(--a-ink) !important; }
html.theme-a .budget-intent-option.is-active { background: var(--a-ink) !important; }
html.theme-a .budget-intent-option.is-active strong { color: #fff !important; font-weight: 600 !important; }

/* Budget amount */
html.theme-a .budget-money-field {
  height: 66px !important;
  border: 1px solid var(--a-blue) !important;
  border-radius: 6px !important;
  box-shadow: 0 0 0 3px rgba(30, 79, 194, 0.12) !important;
  background: #fff !important;
  overflow: hidden;
}
html.theme-a .budget-money-field .currency-icon {
  background: var(--a-page) !important;
  color: var(--a-blue) !important;
  border: 0 !important;
  border-inline-end: 1px solid var(--a-line) !important;
  border-radius: 0 !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}
html.theme-a .budget-money-field .budget-input {
  font-size: 26px !important;
  font-weight: 600 !important;
  color: var(--a-ink) !important;
}

/* Travellers, dates, search button */
html.theme-a .budget-control-grid { gap: 12px !important; }
html.theme-a .budget-control-grid .passenger-button,
html.theme-a .budget-control-grid .date-input {
  border: 1px solid var(--a-line-strong) !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: var(--a-ink) !important;
  box-shadow: none !important;
}
html.theme-a .budget-control-grid .material-icons-outlined { color: var(--a-blue) !important; }
html.theme-a .budget-control-grid .search-btn {
  background: var(--a-blue) !important;
  border: 1px solid var(--a-blue) !important;
  border-radius: 6px !important;
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  box-shadow: none !important;
}
html.theme-a .budget-control-grid .search-btn .material-icons-outlined { color: #fff !important; }
html.theme-a .budget-control-grid .search-btn:hover { background: var(--a-blue-dark) !important; }

/* Visa switch + custom trip link */
html.theme-a .budget-secondary-row { gap: 12px !important; }
html.theme-a .custom-visa-toggle,
html.theme-a .budget-custom-trip-cta {
  background: #fff !important;
  border: 1px solid var(--a-line) !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  color: var(--a-ink) !important;
}
html.theme-a .budget-custom-trip-cta .material-icons-outlined { color: var(--a-blue) !important; background: none !important; }
html.theme-a .custom-visa-toggle-text small,
html.theme-a .budget-custom-trip-cta small { color: var(--a-muted) !important; }

/* ---------- Destinations + trust ---------- */
html.theme-a .a-extras { padding: 64px 24px 72px; background: var(--a-page); }
html.theme-a .a-wrap { max-width: 1192px; margin: 0 auto; }
html.theme-a .a-dcard img[src*="istanbul"] { object-position: 50% 82%; }
html.theme-a .a-sh { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
html.theme-a .a-sh h2 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -0.01em; color: var(--a-ink); }
html.theme-a[lang="ar"] .a-sh h2 { letter-spacing: 0; }
html.theme-a .a-sh p { margin: 0; font-size: 14px; color: var(--a-muted); }
html.theme-a .a-dgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
html.theme-a .a-dcard { margin: 0; background: #fff; border: 1px solid var(--a-line); border-radius: 8px; overflow: hidden; }
html.theme-a .a-dcard img { display: block; width: 100%; height: 230px; object-fit: cover; }
html.theme-a .a-dtext { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 16px 18px 18px; }
html.theme-a .a-dtext h3 { margin: 0; font-size: 18px; font-weight: 600; color: var(--a-ink); }
html.theme-a .a-dtext p { margin: 2px 0 0; font-size: 14px; color: var(--a-muted); }
html.theme-a .a-price { text-align: end; white-space: nowrap; }
html.theme-a .a-price small { display: block; font-size: 12px; color: var(--a-muted); }
html.theme-a .a-price b { font-size: 18px; font-weight: 600; color: var(--a-ink); }

html.theme-a .a-trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 40px;
  background: #fff;
  border: 1px solid var(--a-line);
  border-radius: 8px;
}
html.theme-a .a-titem { display: flex; gap: 14px; padding: 22px 24px; border-inline-end: 1px solid #E3E8F0; }
html.theme-a .a-titem:last-child { border-inline-end: 0; }
html.theme-a .a-titem svg { width: 26px; height: 26px; flex: none; margin-top: 2px; color: var(--a-blue); }
html.theme-a .a-titem b { display: block; font-size: 15px; font-weight: 600; color: var(--a-ink); }
html.theme-a .a-titem span { font-size: 14px; color: var(--a-muted); }
html.theme-a .a-ic { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

html.theme-a .a-faq { margin-top: 48px; max-width: 880px; }
html.theme-a .a-faq h2 { margin: 0 0 16px; font-size: 28px; font-weight: 600; color: var(--a-ink); }
html.theme-a .a-faq details { background: #fff; border: 1px solid var(--a-line); border-radius: 8px; margin-bottom: 10px; }
html.theme-a .a-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--a-ink);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
html.theme-a .a-faq summary::-webkit-details-marker { display: none; }
html.theme-a .a-faq summary::after { content: "+"; color: var(--a-blue); font-size: 22px; line-height: 1; }
html.theme-a .a-faq details[open] summary::after { content: "\2212"; }
html.theme-a .a-faq details p { margin: 0; padding: 0 20px 18px; font-size: 15px; line-height: 1.65; color: var(--a-muted); }

/* Hide the homepage extras while results or checkout are on screen */
html.theme-a.eridura-pending-checkout .a-extras,
html.theme-a body:has(#checkout-review-step) .a-extras,
html.theme-a body:has(#passenger-details-container:not(.hidden)) .a-extras,
html.theme-a body:has(#payment-details-container:not(.hidden)) .a-extras,
html.theme-a body:has(#suggested-hotels-container:not(.hidden)) .a-extras,
html.theme-a body:has(#widget-flight-results-area:not(.hidden)) .a-extras { display: none; }

/* ---------- Home search form: validation and tablet layout ---------- */
/* The field that Explore complained about is outlined, so the problem is
   visible at the field even when the keyboard covers the message. */
html.theme-a .budget-money-field:has(#budget-amount-input[aria-invalid="true"]) {
  border-color: #B42318 !important;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.14) !important;
}
html.theme-a .budget-control-grid .date-input[aria-invalid="true"] {
  border-color: #B42318 !important;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.14) !important;
}
html.theme-a .budget-search-feedback { margin: 0; scroll-margin-bottom: 16px; }

/* Tablet (761-980px): travellers, departure and return share one row. The
   two-column grid left the Return date alone on a row of its own. */
@media (min-width: 761px) and (max-width: 980px) {
  html.theme-a .budget-control-grid,
  html.theme-a .hero #budget-search-module .budget-control-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* ---------- Checkout ---------- */
/* The header is fixed above 760px (72px tall). Whatever the page scrolls to
   (the next checkout step, a #link, a validation message) must stop below
   it, not underneath it. On phones the header scrolls with the page. */
@media (min-width: 761px) {
  html.theme-a { scroll-padding-top: 88px; }
}

/* The floating "Checkout / Secure booking" box only has room beside the 980px
   card from 1480px up (styles.css keeps the horizontal step bar below that).
   The horizontal bar gives every step the same share of the width, for three
   steps as well as four. */
@media (min-width: 761px) and (max-width: 1479px) {
  /* The header is fixed (72px) at these widths and is drawn above the bar:
     a bar that sticks 12px from the top parked behind it, with its bottom
     12px showing under the header for the whole scroll. It scrolls away
     with the page instead, as it already does below 981px. */
  html.theme-a body.page-review .checkout-progress-rail { position: static; }
  html.theme-a body.page-review .checkout-progress-track {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
  }
}

/* Right-to-left: the floating box sits on the right of the card, where an
   Arabic page starts, and its line, dots and active marker are mirrored. */
@media (min-width: 1480px) {
  html.theme-a[dir="rtl"] body.page-review .checkout-progress-rail {
    left: auto;
    right: max(18px, calc(50vw - (var(--checkout-card-width) / 2) - 246px));
  }
  html.theme-a[dir="rtl"] body.page-review .checkout-progress-track::before { left: auto; right: 14px; }
  html.theme-a[dir="rtl"] body.page-review .checkout-progress-rail a { padding: 8px 0 8px 10px; }
  html.theme-a[dir="rtl"] body.page-review .checkout-progress-rail a span { margin-left: 0; margin-right: 8px; }
  html.theme-a[dir="rtl"] body.page-review .checkout-progress-rail a.is-active {
    padding: 9px 0 9px 12px;
    box-shadow: inset -3px 0 0 #1E4FC2, 0 10px 22px rgba(11, 31, 58, 0.08);
  }
}

/* ---------- One-payment checkout: "Price held until ..." ---------- */
/* The line sat against the card edge (and ran past it in Arabic): it had no
   inset of its own. Same inset as the stay block above it; the date is kept
   as one left-to-right unit inside Arabic text. */
html.theme-a #payment-details-container .payment-checkout-card > .payment-note {
  margin: 12px 28px 0;
  color: #475569;
  font-size: 0.86rem;
  line-height: 1.5;
}
html.theme-a #payment-details-container .payment-checkout-card > .payment-note time { unicode-bidi: isolate; white-space: nowrap; }
@media (max-width: 720px) {
  html.theme-a #payment-details-container .payment-checkout-card > .payment-note { margin: 10px 20px 0; }
}

/* ---------- Weather card ---------- */
/* "13 °C / 56 °F" may wrap only at the slash, never between a number and
   its unit (trip-weather.js wraps each side in a span). */
html.theme-a .trip-weather-temp > span { white-space: nowrap; }
/* Those inner spans are plain text. The older rules ".trip-weather-meta span"
   (a chip) and ".trip-weather-day-top span" (a block line) also match them:
   without this reset each half of a temperature was drawn as its own chip
   inside the chip, and the day temperature was stacked on three lines. */
html.theme-a .trip-weather-card .trip-weather-temp > span {
  display: inline;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  font: inherit;
  line-height: inherit;
}
/* "Extend weather forecast" beside the flight list: the same button the trip
   cards have. It was only styled inside .budget-result-weather, so here it was
   a bare disclosure triangle with oversized text. */
html.theme-a .flight-results-weather-rail .trip-weather-extend { margin-top: 10px; }
html.theme-a .flight-results-weather-rail .trip-weather-extend summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 36px;
  padding: 4px 8px;
  border: 1px solid #C9D4E6;
  border-radius: 10px;
  background: #EEF2FA;
  color: #1E4FC2;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  list-style: none;
}
html.theme-a .flight-results-weather-rail .trip-weather-extend summary::-webkit-details-marker { display: none; }
html.theme-a .flight-results-weather-rail .trip-weather-extend summary .material-icons-outlined { font-size: 17px; }
html.theme-a .flight-results-weather-rail .trip-weather-days--extended { margin-top: 10px; }

/* ---------- Custom trip ---------- */
/* Country search: the magnifier, the text and the Go button follow the
   reading direction. With physical left/right the icon sat under the Go
   button in Arabic. A long hint ends in "…" instead of being cut mid-word,
   and an untranslated (English) hint still reads from its first word. */
/* (The icon font sets direction: ltr on itself, so the icon needs a physical side.) */
html.theme-a[dir="rtl"] .custom-country-search > .material-icons-outlined { left: auto; right: 12px; }
html.theme-a .custom-country-search input {
  min-width: 0;
  padding: 12px 14px;
  padding-inline-start: 42px;
  text-overflow: ellipsis;
}
html.theme-a .custom-country-search input::placeholder { unicode-bidi: plaintext; text-overflow: ellipsis; }
html.theme-a .custom-country-search-submit { margin-left: 0; margin-inline-start: 8px; }
html.theme-a .custom-passport-select { flex-basis: 330px; text-overflow: ellipsis; }
/* The tip pill starts where the page starts; the zoom buttons keep the other corner. */
html.theme-a .custom-world-map .cw-hint { left: auto; inset-inline-start: 14px; max-width: calc(100% - 84px); }
html.theme-a[dir="rtl"] .custom-map-zoom-controls { right: auto; left: 14px; }
/* The frame hugs the map. Its fixed minimum height (470px, 320px on phones)
   left the lower part of the frame empty on every screen narrower than about
   900px: half of it on a phone. The "Loading world map" text keeps a box. */
html.theme-a .custom-world-map { min-height: 0; }
html.theme-a .custom-world-map:has(> .cw-loading) { min-height: 180px; }

@media (max-width: 640px) {
  /* The world map is 304 x 158 on a phone: the continent names are made
     readable and the tip sits under the map, clear of the zoom buttons. */
  html.theme-a .custom-world-map .cw-continent-label { font-size: 30px; stroke-width: 7px; }
  html.theme-a .custom-world-map .cw-continent-count { font-size: 21px; }
  html.theme-a .custom-world-map .cw-hint {
    position: static;
    max-width: none;
    min-height: 58px;
    box-sizing: border-box;
    padding: 9px 12px;
    padding-inline-end: 104px;
    border: 0;
    border-top: 1px solid #D3DCEB;
    border-radius: 0;
    background: #fff;
    font-weight: 600;
    line-height: 1.4;
  }
  html.theme-a .custom-world-map .cw-hint:not([hidden]) { display: flex; align-items: center; }
  html.theme-a .custom-map-zoom-controls,
  html.theme-a[dir="rtl"] .custom-map-zoom-controls {
    flex-direction: row;
    gap: 6px;
    bottom: 10px;
    left: auto;
    right: auto;
    inset-inline-end: 10px;
  }
  /* Passport row: the list takes the full width so its text is not cut. */
  html.theme-a .custom-passport-row { padding: 12px 8px; }
  html.theme-a .custom-passport-select { flex: 1 1 100%; width: 100%; min-width: 0; padding-inline: 6px; font-weight: 500; }
}

/* ---------- My bookings ---------- */
html.theme-a .booking-card .booking-id { white-space: nowrap; }
/* Two even lines instead of a break inside the reference ("ERI-" / "4PX8N2QD"). */
html.theme-a .booking-card .booking-subtitle { text-wrap: balance; }
@media (max-width: 520px) {
  /* The card already has side padding on phones; a second 20px inside it
     squeezed the text into a narrow column beside the status badge. The
     badge goes on its own line above the title and the details use the full
     width. */
  html.theme-a .booking-card-main { flex-direction: column; align-items: stretch; gap: 10px; padding: 16px 0 14px; }
  html.theme-a .booking-card-status { order: -1; }
  html.theme-a .booking-card .booking-destination { margin-bottom: 8px; font-size: 1.3rem; line-height: 1.25; overflow-wrap: anywhere; }
  html.theme-a .booking-card .booking-subtitle { margin: 0 0 12px; }
  html.theme-a .booking-card-details { flex-direction: column; gap: 8px; }
  html.theme-a .booking-card-footer { margin-inline: -18px; padding: 14px 18px; }
}

/* ---------- Footer ---------- */
html.theme-a .site-footer { background: var(--a-ink) !important; color: #C9D4E6 !important; border-top: 0 !important; margin-top: 0 !important; padding-top: 48px !important; }
html.theme-a .site-footer .footer-shell { max-width: 1192px !important; margin-inline: auto; }
html.theme-a .site-footer .language-picker-button { color: #fff !important; background: transparent !important; }
html.theme-a .site-footer .language-picker-button * { color: #fff !important; }
html.theme-a .site-footer a { color: #E2E8F2 !important; }
html.theme-a .site-footer a:hover { color: #fff !important; }
html.theme-a .site-footer .footer-col-title { color: #fff !important; font-weight: 600 !important; background: none !important; }
html.theme-a .site-footer .footer-bottom { border-top-color: rgba(255, 255, 255, 0.16) !important; color: #AFC0D8 !important; }
html.theme-a .site-footer .footer-bottom small { color: #AFC0D8 !important; }
html.theme-a .site-footer .pill { background: transparent !important; border-color: rgba(255, 255, 255, 0.28) !important; color: #fff !important; }
html.theme-a .site-footer .pill select { color: #fff !important; background: transparent; }
html.theme-a .site-footer .pill select option { color: var(--a-ink); background: #fff; }

/* ---------- Whole-site details ---------- */
/* Spam-trap fields were parked at left:-9999px; in right-to-left pages that
   made the whole page scroll sideways. Hide them without any offset. */
html.theme-a .partner-apply-hp {
  left: auto !important;
  right: auto !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
}
/* Third-party widgets (Google Translate helpers) also sit at negative left
   offsets; never let them widen a right-to-left page. */
html.theme-a[dir="rtl"],
html.theme-a[dir="rtl"] body { overflow-x: clip; }

/* ---------- Keyboard focus ---------- */
/* Several controls removed the browser's focus ring and put nothing in its
   place. One visible ring for everything reached with the Tab key. */
html.theme-a :is(a, button, select, summary, [role="button"], [tabindex]:not([tabindex="-1"]), input[type="checkbox"], input[type="radio"]):focus-visible {
  outline: 2px solid var(--a-blue) !important;
  outline-offset: 2px !important;
}
html.theme-a .budget-money-field:focus-within,
html.theme-a .quick-lang.language-picker:has(.language-picker-button:focus-visible) {
  outline: 2px solid var(--a-blue);
  outline-offset: 2px;
}
html.theme-a .quick-lang.language-picker .language-picker-button:focus-visible { outline: 0 !important; }
html.theme-a .site-footer :is(a, button, select, summary, [role="button"], [tabindex]:not([tabindex="-1"])):focus-visible,
html.theme-a .site-footer .quick-lang.language-picker:has(.language-picker-button:focus-visible) {
  outline-color: #fff !important;
}

html.theme-a h1, html.theme-a h2, html.theme-a h3 { letter-spacing: -0.01em; }
html.theme-a[lang="ar"] h1, html.theme-a[lang="ar"] h2, html.theme-a[lang="ar"] h3 { letter-spacing: 0; }

/* One button shape everywhere: 6px corners, no glow */
html.theme-a .solid-btn, html.theme-a .ghost-btn, html.theme-a .explore-btn, html.theme-a .back-btn,
html.theme-a .search-btn, html.theme-a .update-search-btn, html.theme-a .budget-trip-select-btn,
html.theme-a .budget-gate-cta, html.theme-a .button--card, html.theme-a .button--card-ghost,
html.theme-a .auth-submit, html.theme-a .btn, html.theme-a .primary-btn, html.theme-a .secondary-btn,
html.theme-a .budget-dropdown-done, html.theme-a .passenger-done-btn {
  border-radius: 6px !important;
  box-shadow: none !important;
}

/* Cards: hairline border, quiet shadow */
html.theme-a .page-section, html.theme-a .info-card, html.theme-a .auth-card, html.theme-a .budget-result-card,
html.theme-a .passenger-checkout-card, html.theme-a .confirmation-card, html.theme-a .booking-card {
  border-color: var(--a-line) !important;
  box-shadow: 0 1px 2px rgba(11, 31, 58, 0.04) !important;
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  html.theme-a body { padding-top: 64px; }
  /* The header scrolls with the page on phones; "relative" lets the menu
     panel hang from it. */
  html.theme-a .main-header { position: relative !important; height: 64px; padding: 0 !important; }
  /* Older phone rules in styles.css stacked this row (a 38px line with the
     buttons against the top edge of the screen, and full-width inner boxes).
     One 64px line: logo, language, Sign In, menu button. */
  html.theme-a .main-header .header-content {
    display: flex !important;
    width: 100% !important;
    max-width: none !important;
    height: 64px !important;
    min-height: 64px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    gap: 8px;
    align-items: center !important;
    justify-content: flex-start;
  }
  html.theme-a .main-header .header-controls {
    flex: none;
    flex-wrap: nowrap !important;
    width: auto !important;
    min-width: 0;
    margin-inline-start: auto;
    gap: 8px !important;
    align-items: center;
    justify-content: flex-end;
  }
  html.theme-a .main-header .quick-prefs { flex: none; flex-wrap: nowrap; width: auto !important; align-items: center; }
  html.theme-a .main-header #auth-links-logged-out:not([hidden]):not(.hidden) { display: flex !important; flex-wrap: nowrap; gap: 8px; }
  html.theme-a .main-header #auth-links-logged-out .auth-link { margin: 0 !important; }
  html.theme-a .main-header .quick-lang.pill--lang { min-width: 0 !important; }
  html.theme-a .budget-panel-top { position: static !important; margin-bottom: 14px !important; }
  /* Register and the currency choice are in the menu on phones (see the menu
     rules further down). */
  html.theme-a #auth-links-logged-out .solid-btn,
  html.theme-a .main-header .pill--currency { display: none !important; }
  html.theme-a .a-menu-toggle { width: 38px; height: 38px; }
  html.theme-a .a-logo { font-size: 22px; }
  html.theme-a .a-logo svg { width: 22px; height: 22px; }
  html.theme-a #auth-links-logged-out .auth-link { height: 38px; padding: 0 12px; font-size: 14px; }
  html.theme-a .pill { height: 38px; }

  html.theme-a .hero-content { padding: 44px 12px 28px; }
  html.theme-a .a-kick { font-size: 12px !important; padding-inline: 6px; }
  html.theme-a .hero h1 { font-size: 34px !important; padding-inline: 6px; }
  html.theme-a .hero-content > p:not(.a-kick) { font-size: 16px !important; margin-bottom: 26px !important; padding-inline: 6px; }
  html.theme-a .search-tabs { padding: 0 16px; gap: 24px; }
  html.theme-a .search-container .tab-content { padding: 16px; }
  html.theme-a .budget-intent-picker { flex-direction: column; align-items: stretch; gap: 8px; }
  html.theme-a .budget-intent-options { display: flex !important; width: 100%; }
  html.theme-a .budget-intent-option { flex: 1; padding: 0 6px !important; }

  html.theme-a .a-extras { padding: 44px 16px 48px; }
  html.theme-a .a-sh { flex-direction: column; align-items: flex-start; gap: 4px; }
  html.theme-a .a-sh h2 { font-size: 22px; }
  html.theme-a .a-dgrid { display: flex; overflow-x: auto; gap: 12px; scroll-snap-type: x mandatory; padding-bottom: 4px; }
  html.theme-a .a-dcard { flex: 0 0 78%; scroll-snap-align: start; }
  html.theme-a .a-dcard img { height: 170px; }
  html.theme-a .a-trust { grid-template-columns: 1fr; margin-top: 28px; }
  html.theme-a .a-titem { border-inline-end: 0; border-bottom: 1px solid #E3E8F0; padding: 18px; }
  html.theme-a .a-titem:last-child { border-bottom: 0; }
}

@media (min-width: 761px) and (max-width: 1100px) {
  html.theme-a .hero h1 { font-size: 46px !important; }
}

/* ---------- Menu for small laptops, tablets and phones ---------- */
/* The row (logo, four links, currency, language, Sign In, Register) needs
   about 1210px in Russian and 1150px in French or German. Below 1241px the
   links open from the menu button instead; before, the links stayed in the
   row down to 1101px and the language box ran into Sign In. */
@media (max-width: 1240px) {
  html.theme-a .a-menu-toggle { display: inline-flex; }
  /* The panel hangs from the row, so its links line up with the logo. */
  html.theme-a .main-header .header-content { position: relative; gap: 16px; }
  /* One line: an older rule let the buttons wrap onto a second row that hung
     below the header. */
  html.theme-a .main-header .header-controls { flex-wrap: nowrap !important; }
  html.theme-a .main-header .a-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 4px 24px 10px;
    background: #fff;
    border: 1px solid var(--a-line);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 16px 28px rgba(11, 31, 58, 0.14);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  /* The ring is drawn inside the row, and a row has no side padding: it lay
     on the first letter (the thin alif of an Arabic link disappeared under
     it). The focused row steps in by the width of the ring and a gap. */
  html.theme-a .main-header .a-nav :is(a, button):focus-visible { outline-offset: -2px !important; padding-inline: 8px; box-sizing: border-box; }
  html.theme-a .main-header.is-menu-open .a-nav { display: flex; }
  html.theme-a .main-header .a-nav a,
  html.theme-a .main-header .a-nav .a-nav-extra {
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 50px;
    margin: 0;
    padding: 0;
    border: 0;
    border-top: 1px solid #E3E8F0;
    border-radius: 0;
    background: none;
    color: var(--a-ink);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    text-align: start;
    text-decoration: none;
    white-space: normal;
    cursor: pointer;
  }
  html.theme-a .main-header .a-nav a { display: flex; }
  html.theme-a .main-header .a-nav a.a-nav-extra { display: none; }
  html.theme-a .main-header .a-nav a.is-current { color: var(--a-blue); }
  html.theme-a .main-header .a-nav > :first-child { border-top: 0; }
  html.theme-a .main-header .a-nav .a-nav-currency-code { color: var(--a-muted); font-weight: 600; }
}

/* Narrow tablets: Register (long in German or Russian) moves into the menu. */
@media (max-width: 900px) {
  html.theme-a #auth-links-logged-out .solid-btn { display: none !important; }
  html.theme-a .main-header .a-nav .a-nav-register:not([hidden]) { display: flex; }
}

/* Phones: the panel is as wide as the screen, and the currency choice (not in
   the row there) is in it. */
@media (max-width: 760px) {
  html.theme-a .main-header .header-content { gap: 8px; }
  html.theme-a .main-header .a-nav {
    padding-inline: 14px;
    max-height: calc(100vh - 64px);
    border-inline: 0;
    border-radius: 0;
  }
  html.theme-a .main-header .a-nav .a-nav-currency { display: flex; }
}

/* Small phones: the language box shows the flag and arrow only, the account
   button its icon only. */
@media (max-width: 480px) {
  html.theme-a .main-header .quick-lang.language-picker { padding-inline: 10px 8px; gap: 6px; }
  html.theme-a .main-header .language-picker-label,
  html.theme-a .main-header .user-menu-button #welcome-message-username {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}

@media (max-width: 400px) {
  html.theme-a .main-header .header-content { padding: 0 12px !important; gap: 6px; }
  html.theme-a .main-header .header-controls { gap: 6px !important; }
  html.theme-a .a-logo { font-size: 20px; gap: 6px; }
  html.theme-a .a-logo svg { width: 20px; height: 20px; }
  html.theme-a #auth-links-logged-out .auth-link { padding: 0 10px; }
  html.theme-a .a-menu-toggle { width: 36px; height: 36px; }
}

/* Very narrow phones: Sign In moves into the menu as well. */
@media (max-width: 359px) {
  html.theme-a #auth-links-logged-out .ghost-btn { display: none !important; }
  html.theme-a .main-header .a-nav .a-nav-signin:not([hidden]) { display: flex; }
}

/* Right-to-left: the "Trip N ready" badge belongs over the price column,
   which sits on the left in Arabic. */
html.theme-a[dir="rtl"] .budget-trip-ready { right: auto; left: 14px; }

/* ---------- Flight list, trip cards, way back from the checkout (audit 2026-11-17) ---------- */

/* The flight list keeps a usable width. styles.css forced "list | 260-300px
   weather card" between 981 and 1180px, which squeezed the flight cards to
   about 380px: the price sat on the arrival date and "View deal" on the
   return time. Up to 1280px the weather card now drops under the list. */
@media (max-width: 1280px) {
  html.theme-a body.page-results .flight-results-board--with-weather,
  html.theme-a .flight-results-board--with-weather { grid-template-columns: minmax(0, 1fr) !important; }
  html.theme-a body.page-results .flight-results-weather-rail,
  html.theme-a .flight-results-weather-rail { position: static !important; width: 100% !important; max-width: none !important; }
}

/* The route under the times wraps instead of being cut ("...TUN)" in Arabic,
   "Houari Boumediene Airport (ALG) -> Tunis Carth..." in English). */
html.theme-a body.page-results .flight-offer-card.rich-offer .itinerary-sub-line { align-items: start; }
html.theme-a body.page-results .flight-offer-card.rich-offer .itinerary-sub-line > span:first-child {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* A budget trip whose fare sold out: its stay stays with the next flight. */
html.theme-a .flight-list-stay-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #BFE0CD;
  border-radius: 6px;
  background: var(--a-ok-bg);
  color: var(--a-ok);
  font-size: 0.88rem;
  line-height: 1.4;
}
html.theme-a .flight-list-stay-note .material-icons-outlined { flex: none; font-size: 18px; line-height: 1.25; }
html.theme-a .flight-list-stay-note strong { font-weight: 700; overflow-wrap: anywhere; }

/* Phones and tablets: the filters wait behind this button (search.js
   ensureFlightFiltersToggle), so the first flight is on the first screen. */
html.theme-a .flight-filters-toggle { display: none; }
@media (max-width: 980px) {
  html.theme-a body.page-results .flight-filters-toggle {
    order: -1;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--a-line-strong);
    border-radius: 6px;
    background: #fff;
    color: var(--a-ink);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: start;
    cursor: pointer;
  }
  html.theme-a .flight-filters-toggle .material-icons-outlined { font-size: 20px; color: var(--a-blue); }
  html.theme-a .flight-filters-toggle .flight-filters-toggle-arrow { margin-inline-start: auto; color: var(--a-muted); transition: transform 160ms ease; }
  html.theme-a .flight-filters-toggle[aria-expanded="true"] .flight-filters-toggle-arrow { transform: rotate(180deg); }
  html.theme-a .flight-filters-toggle:focus-visible { outline: 2px solid var(--a-blue); outline-offset: 2px; }
  html.theme-a body.page-results #filter-sidebar:not(.is-open-on-phone) { display: none !important; }
  html.theme-a #filter-sidebar.hidden ~ .flight-filters-toggle,
  html.theme-a #filter-sidebar[hidden] ~ .flight-filters-toggle { display: none !important; }
}

/* The way back from a budget, shared-trip or custom-trip checkout: a link in
   the page, lined up with the header (budget-search.js
   injectBackToTripsButton). It was a pill fixed to the bottom-left corner. */
html.theme-a .checkout-back-bar {
  box-sizing: border-box;
  max-width: 1240px;
  margin: 16px auto -14px;
  padding: 0 24px;
}
/* Only beside the flight list and the checkout steps: not on the search form
   the same page shows after "New search". */
html.theme-a body:not(.page-results):not(.page-review) .checkout-back-bar { display: none; }
html.theme-a .checkout-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px 0 10px;
  border: 1px solid var(--a-line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--a-blue-dark);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
html.theme-a[dir="rtl"] .checkout-back-link { padding: 0 10px 0 14px; }
html.theme-a .checkout-back-link:hover { border-color: var(--a-blue); color: var(--a-blue); }
html.theme-a .checkout-back-link:focus-visible { outline: 2px solid var(--a-blue); outline-offset: 2px; }
html.theme-a .checkout-back-link .material-icons-outlined { font-size: 18px; line-height: 1; }
/* The arrow points to where "back" is: right on a right-to-left page. */
html.theme-a[dir="rtl"] .checkout-back-link .material-icons-outlined,
html.theme-a[dir="rtl"] .budget-custom-trip-cta-arrow { transform: scaleX(-1); }
html.theme-a[dir="rtl"] .budget-custom-trip-cta:hover .budget-custom-trip-cta-arrow,
html.theme-a[dir="rtl"] .budget-custom-trip-cta:focus-visible .budget-custom-trip-cta-arrow { transform: scaleX(-1) translateX(3px); }
@media (max-width: 760px) {
  html.theme-a .checkout-back-bar { margin: 12px auto 0; padding: 0 14px; }
}

/* Right-to-left details of the flight flow. */
/* "12+" (not "+12") beside Adults, in both passenger pickers. */
html.theme-a[dir="rtl"] .budget-pax-row small,
html.theme-a[dir="rtl"] .passenger-type label small { direction: ltr; unicode-bidi: isolate; }
/* Trip card: "Algiers (ALG) to Tunis (TUN)" wraps instead of losing its start. */
html.theme-a[dir="rtl"] .budget-flight-route em { overflow: visible; text-overflow: clip; white-space: normal; }
/* Checkout steps: styles.css still pins their text to the left for Arabic
   (from when Arabic pages were laid out left to right), which left the review
   kicker and heading, and the "Algiers (ALG) to Tunis (TUN)" line, on the
   wrong edge of a right-to-left page. */
html.theme-a[dir="rtl"] body.page-review :where(#checkout-review-step, #passenger-details-container, #suggested-hotels-container, #payment-details-container) { text-align: right; }
/* Review legs: departure on the right edge, arrival on the left (stacked on
   narrow screens, where both sit on the right). */
html.theme-a[dir="rtl"] .flight-review-timepoint--arrival { text-align: left; }
@media (max-width: 920px) {
  html.theme-a[dir="rtl"] .flight-review-timepoint--arrival { text-align: right; }
}

/* Shared trip: a live stay says how it is paid (not the amber "Estimate only"). */
html.theme-a .shared-trip-hotel .shared-trip-hotel-scope--live { color: var(--a-ok); }

/* By Destination passenger picker: one age per child, and the form's own
   message next to the Explore button. */
html.theme-a .widget-passenger-dropdown .widget-child-ages { border-bottom: 0; padding: 0; }
html.theme-a .widget-passenger-dropdown .budget-child-age,
html.theme-a .search-popover .budget-child-age,
html.theme-a .popover-child-ages .budget-child-age {
  display: grid;
  gap: 3px;
  margin: 0;
  color: var(--a-ink);
  font-size: 0.78rem;
  font-weight: 600;
}
html.theme-a .widget-passenger-dropdown .budget-child-age,
html.theme-a .popover-child-ages .budget-child-age { min-width: 0; }
html.theme-a .widget-passenger-dropdown .budget-child-age select,
html.theme-a .popover-child-ages .budget-child-age select { box-sizing: border-box; min-width: 0; }
html.theme-a .budget-child-age select[aria-invalid="true"] { border-color: #b42318; box-shadow: 0 0 0 1px #b42318; }
html.theme-a .popover-child-ages { padding: 0 0 8px; }
html.theme-a .budget-child-ages .budget-child-ages__hint { text-align: start; }
html.theme-a .flight-search-widget .widget-search-feedback {
  max-width: none;
  margin: 10px 0 0;
  font-size: 0.9rem !important;
  line-height: 1.4;
  text-align: start;
}

/* Payment errors without an icon (e.g. the flight + stay price check): the
   panel's grid keeps a 24px icon column, which squeezed the message to one
   word per line. A lone message spans the whole panel. */
html.theme-a .payment-error-panel > p:only-child { grid-column: 1 / -1; }

/* ---------- Company details (UK company website disclosure) ---------- */
.footer-legal { margin: 28px 0 0; font-size: 0.82rem; line-height: 1.65; overflow-wrap: anywhere; }
.footer-legal p { margin: 0; }
.footer-legal .footer-legal-name { font-weight: 700; letter-spacing: 0.04em; margin-bottom: 2px; }
html.theme-a .site-footer .footer-legal { color: #C9D4E6 !important; }
html.theme-a .site-footer .footer-legal strong { color: #ffffff !important; }
html.theme-a .site-footer.site-footer--legal { padding-top: 8px !important; margin-top: 48px !important; }
html.theme-a .site-footer.site-footer--legal .footer-shell { padding-inline: 16px; }

/* ---------- Calendar, right-to-left (Arabic) ---------- */
/* flatpickr lays its calendar out left-to-right whatever the page direction.
   Arabic: days run right to left, the arrows swap sides and point the other
   way, and the two ends of a date range swap their rounded corners. */
html[dir="rtl"] .flatpickr-calendar { direction: rtl; }
html[dir="rtl"] .flatpickr-months .flatpickr-prev-month.flatpickr-prev-month { left: auto; right: 0; transform: scaleX(-1); }
html[dir="rtl"] .flatpickr-months .flatpickr-next-month.flatpickr-next-month { right: auto; left: 0; transform: scaleX(-1); }
html[dir="rtl"] .flatpickr-current-month .numInputWrapper,
html[dir="rtl"] .flatpickr-current-month input.cur-year { direction: ltr; }
html[dir="rtl"] .flatpickr-weekday { font-size: 0.72rem; letter-spacing: 0; }
html[dir="rtl"] .flatpickr-calendar .flatpickr-day.startRange:not(.endRange) { border-radius: 0 9999px 9999px 0 !important; }
html[dir="rtl"] .flatpickr-calendar .flatpickr-day.endRange:not(.startRange) { border-radius: 9999px 0 0 9999px !important; }
