/* current/assets/fta-i18n.css — THE LANGUAGE LAYER's styles (tools/lib/fta-i18n.php): the switcher, the legal courtesy label,
   and the right-to-left corrections for Arabic. Loaded on every page that shows the switcher; the [dir=rtl] rules only ever match
   an Arabic page. Logical properties first, overrides only where a template hard-codes a side. */

/* ── switcher ── */
.fta-lang { font-family: inherit; }
.fta-lang a { text-decoration: none; color: inherit; }
.fta-lang a:hover, .fta-lang a:focus-visible { text-decoration: underline; }
.fta-lang a.is-cur { font-weight: 800; }
/* header: a nav item — the header's own ink, the nav link's size/weight/case, no box; the menu opens only on press */
.fta-lang-h { position: relative; display: inline-flex; align-items: center; margin: 0; padding: 0; vertical-align: middle; }
.fta-lang-h > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 0; border: 0; background: none;
  color: var(--bb-header-ink, currentColor); font: inherit; font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .055em; white-space: nowrap; line-height: 1.2; }
.fta-lang-h > summary::-webkit-details-marker, .fta-lang-h > summary::marker { display: none; content: ''; }
.fta-lang-h > summary::after { content: ''; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; margin-inline-start: 2px; opacity: .8; }
.fta-lang-h > summary:hover, .fta-lang-h > summary:focus-visible { text-decoration: underline; outline: none; }
.fta-lang-h .fta-lang-g { font-size: 15px; line-height: 1; text-transform: none; }
.fta-lang-h:not([open]) > .fta-lang-menu { display: none !important; }
.fta-lang-h[open] > .fta-lang-menu { display: flex; }
.fta-lang-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 10px); z-index: 10050; min-width: 170px; flex-direction: column; padding: 6px; margin: 0;
  background: #fff; color: #1f2328; border: 1px solid rgba(0,0,0,.12); border-radius: 10px; box-shadow: 0 10px 28px rgba(0,0,0,.18);
  font: 600 14px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", "Noto Sans CJK SC", Arial, sans-serif; text-transform: none; letter-spacing: 0; }
.fta-lang-menu a { display: block; padding: 9px 12px; border-radius: 7px; color: #1f2328 !important; text-decoration: none !important; white-space: nowrap; text-align: start; }
.fta-lang-menu a:hover, .fta-lang-menu a:focus-visible { background: #f1f3f5; }
.fta-lang-menu a.is-cur { background: #eef4ff; }
/* the truck-site / concept header cell that holds it: switcher left of "My booking", one row */
/* (the theme decides WHETHER the cell shows — it hides it on phones — so display is never set here; only its direction) */
.bb-header-wrap .ts-mybooking-wrap:has(> .fta-lang-h) { flex-direction: row !important; align-items: center !important; gap: 20px; }
.bb-header-wrap .bb-contact-block:not(.ts-mybooking-wrap) > .fta-lang-h { margin-bottom: 4px; }
/* ONE switcher per page: a checkout identity strip swapped into a page that has a site header never shows its own (backstop to the server rule) */
body:has(.bb-header-wrap .fta-lang-h) .fta-cc-id .fta-lang-h, body:has(.bb-header-wrap .fta-lang-h) #book .fta-lang-f { display: none !important; }
.fta-cc-id > .fta-lang-h { margin-inline-start: 12px; }
.fta-cc-id .fta-lang-h > summary { color: inherit; border: 1px solid currentColor; border-radius: 999px; padding: 4px 10px; text-transform: none; letter-spacing: 0; font-weight: 700; }
/* phones: the header copy hides with the nav; the drawer carries the row */
@media (max-width: 1100px) { .bb-header-wrap .fta-lang-h { display: none !important; } }
.fta-lang-d { display: none; }
@media (max-width: 1100px) {
  .bb-mobile-drawer .fta-lang-d { display: block; padding: 16px 22px; color: var(--bb-panel-ink, inherit); border-bottom: 1px solid rgba(var(--bb-panel-ink-rgb, 255,255,255), .14); }
  .bb-mobile-drawer .fta-lang-d-l { display: block; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; color: var(--bb-panel-ink, inherit); opacity: .8; margin-bottom: 8px; }
  .bb-mobile-drawer .fta-lang-d-x { display: flex; flex-wrap: wrap; gap: 8px 18px; }
  .bb-mobile-drawer .fta-lang-d-x a { display: inline-block !important; padding: 4px 0 !important; margin: 0 !important; border: 0 !important; background: none !important; color: var(--bb-panel-ink, inherit) !important; font-size: 15px !important; font-weight: 700 !important; text-transform: none !important; letter-spacing: 0 !important; width: auto !important; }
  .bb-mobile-drawer .fta-lang-d-x a.is-cur { text-decoration: underline !important; text-underline-offset: 4px; }
}
/* the theme's CONTENT-AWARE FIT can switch a wide screen to the mobile bar (bb-fit-mobile: long nav words, e.g. Tagalog) — the drawer then carries the row there too */
.bb-header-wrap.bb-fit-mobile .fta-lang-h { display: none !important; }

  .bb-header-wrap.bb-fit-mobile .bb-mobile-drawer .fta-lang-d { display: block; padding: 16px 22px; color: var(--bb-panel-ink, inherit); border-bottom: 1px solid rgba(var(--bb-panel-ink-rgb, 255,255,255), .14); }
  .bb-header-wrap.bb-fit-mobile .bb-mobile-drawer .fta-lang-d-l { display: block; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; color: var(--bb-panel-ink, inherit); opacity: .8; margin-bottom: 8px; }
  .bb-header-wrap.bb-fit-mobile .bb-mobile-drawer .fta-lang-d-x { display: flex; flex-wrap: wrap; gap: 8px 18px; }
  .bb-header-wrap.bb-fit-mobile .bb-mobile-drawer .fta-lang-d-x a { display: inline-block !important; padding: 4px 0 !important; margin: 0 !important; border: 0 !important; background: none !important; color: var(--bb-panel-ink, inherit) !important; font-size: 15px !important; font-weight: 700 !important; text-transform: none !important; letter-spacing: 0 !important; width: auto !important; }
  .bb-header-wrap.bb-fit-mobile .bb-mobile-drawer .fta-lang-d-x a.is-cur { text-decoration: underline !important; text-underline-offset: 4px; }
/* a header with no drawer of its own still shows the drawer row nowhere and the header copy everywhere */
.fta-lang-f { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; justify-content: center; padding: 14px 12px; clear: both; width: 100%; box-sizing: border-box;
  font: 13px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", "Noto Sans CJK SC", Arial, sans-serif; }
.fta-lang-f a { opacity: .85; } .fta-lang-f a.is-cur { opacity: 1; }
.fta-lang-wrap { background: #f6f6f6; color: #333; border-top: 1px solid #e5e5e5; }

/* ── legal: courtesy translation label ── */
.fta-i18n-legal { margin: 0 0 16px; padding: 10px 14px; border: 1px solid #e9b94e; background: #fff8e6; color: #4a3b10; border-radius: 8px; font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", "Noto Sans CJK SC", Arial, sans-serif; }
.fta-i18n-legal a { color: inherit; text-decoration: underline; font-weight: 600; }
.fta-i18n-legal-en { display: block; margin-top: 4px; font-size: 12px; opacity: .8; }


/* ── right-to-left (Arabic) ── */
[dir="rtl"] body { text-align: right; }
[dir="rtl"] .fta-lang-f, [dir="rtl"] .fta-i18n-legal-en { direction: rtl; }
/* numbers, prices, phones, e-mails, times and dates read left-to-right inside Arabic text */
[dir="rtl"] input[type="tel"], [dir="rtl"] input[type="email"], [dir="rtl"] input[type="number"], [dir="rtl"] input[inputmode="numeric"], [dir="rtl"] input[name*="zip"], [dir="rtl"] a[href^="tel:"], [dir="rtl"] a[href^="mailto:"] { direction: ltr; text-align: right; unicode-bidi: plaintext; }
[dir="rtl"] input, [dir="rtl"] select, [dir="rtl"] textarea { text-align: right; }
/* templates that hard-code a side */
[dir="rtl"] [style*="text-align:left"], [dir="rtl"] [style*="text-align: left"] { text-align: right !important; }
[dir="rtl"] .float-left, [dir="rtl"] .alignleft { float: right; }
[dir="rtl"] .float-right, [dir="rtl"] .alignright { float: left; }
[dir="rtl"] ul, [dir="rtl"] ol { padding-inline-start: 1.5em; padding-left: 0; }
/* arrows and chevrons that point "forward" */
[dir="rtl"] .fta-arrow, [dir="rtl"] .arrow-right, [dir="rtl"] [data-dir-flip] { transform: scaleX(-1); }

/* ── the courtesy-translation note: one short line under the agreement checkbox / atop a legal document (David 11-10) ── */
.fta-i18n-legal-line { margin: 6px 0 0; font-size: 12px; line-height: 1.4; color: inherit; opacity: .78; }
.fta-i18n-legal-line a { color: inherit; text-decoration: underline; font-weight: 600; }
.fta-i18n-legal-line .fta-i18n-consent-tr { display: block; font-size: 13px; margin: 0 0 3px; }
.fta-i18n-help-line { margin: 4px 0 8px; font-size: 13px; line-height: 1.4; opacity: .78; }
