/* Paid-ad landing pages (flexcode-core inc/lp-ad.php, template inc/lp-ad-template.php). The sections are
   styled by live-scoped.css (the React site's Tailwind, scoped to .fc-tw); this file only covers what lives
   outside the scope or what the React app set on <html>/<body>. */
body.fc-lp-ad-body { margin: 0; padding: 0 !important; background: #fff; }
.fc-lp-ad-body #fc-live { overflow-x: clip; }
/* the template IS the page: no theme paddings around it */
.fc-lp-ad-body #fc-live > .min-h-screen { min-height: 100vh; }

/* Arabic pages: Sora for Latin, the self-hosted IBM Plex Sans Arabic for Arabic (same stack as React) */
html[dir="rtl"] .fc-lp-ad-body .fc-tw.fc-tw.fc-tw,
html[lang="ar"] .fc-tw.fc-tw.fc-tw { font-family: "Sora", "IBM Plex Sans Arabic", sans-serif; }
html[lang="ar"] .fc-tw.fc-tw.fc-tw :is(h1, h2, h3, h4, h5, h6, p, a, button, input, select, textarea, label, span, li) { font-family: inherit; }

/* Floating bubbles step aside for forms (FloatGuard, lp-ad.ts) - index.css of the React app */
.fc-float-left, .fc-float-right, .fc-lp-ad-body .fc-chat-launcher { transition: opacity .2s ease, transform .2s ease, background-color .15s; }
html[data-fc-hide-left] .fc-float-left,
html[data-fc-hide-right] .fc-float-right,
html[data-fc-hide-right] .fc-lp-ad-body .fc-chat-launcher { opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; }

/* chat launcher (fc-core chat.ts) at the React position: above the sticky CTA bar on phones */
.fc-lp-ad-body .fc-chat-launcher { right: 25px; bottom: calc(10px + var(--fc-chat-offset, 0px)); z-index: 40; box-shadow: 0 10px 15px -3px rgba(0,0,0,.2), 0 4px 6px -4px rgba(0,0,0,.2); }
@media (min-width: 1024px) { .fc-lp-ad-body .fc-chat-launcher { bottom: 10px; } }
html[dir="rtl"] .fc-lp-ad-body .fc-chat-launcher { right: 25px; left: auto; }

/* FAQ answers hidden with [hidden] (one open) */
.fc-lp-ad [data-lp-faq] [hidden], .fc-lp-ad [data-lp-langblock][hidden], .fc-lp-ad [data-lp-booking-wrap][hidden] { display: none !important; }

/* headings: the theme gives h1-h6 their own font; on the React pages they inherit Sora from <body> */
.fc-lp-ad :where(h1, h2, h3, h4, h5, h6) { font-family: inherit; line-height: inherit; }
/* (low specificity on purpose: beats the theme's bare h1-h6 rules, loses to the Tailwind classes .leading-[1.1], .font-bold ...) */
/* <body> line-height of the React site (1.625; live-scoped.css gives the scope root 1.5) */
.fc-tw.fc-tw.fc-tw.fc-lp-ad { line-height: 1.625; }
/* links: no underline unless the Tailwind classes say so (hover:underline), as on the React site */
.fc-lp-ad :where(a) { text-decoration: none; }
/* the theme underlines every link inside a paragraph of #fc-live (id rule); the React LPs do not */
#fc-live.fc-lp-ad p a:not(.btn) { text-decoration: none; }
#fc-live.fc-lp-ad p a.hover\:underline:hover { text-decoration: underline; }

/* cookie banner (fc-core consentBanner.ts) as the slim bar the React LPs had on phones: no title, small text,
   the two equal choice buttons side by side; same buttons, same choices */
@media (max-width: 767.98px) {
  .fc-lp-ad-body .fc-consent { padding: .7rem 0; }
  .fc-lp-ad-body .fc-consent__title { display: none; }
  .fc-lp-ad-body .fc-consent__text { flex-basis: 100%; font-size: .78rem; line-height: 1.4; }
  .fc-lp-ad-body .fc-consent__inner { gap: .6rem; }
  .fc-lp-ad-body .fc-consent__actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr auto; gap: .5rem; }
  .fc-lp-ad-body .fc-consent__actions .btn { padding: .45rem .6rem; font-size: .9rem; }
  .fc-lp-ad-body .fc-consent__actions .btn-primary { min-height: 38px; }
}
/* Tailwind class that is also a Bootstrap utility: renamed tw-pb-4 in the LP markup (tools/lp-migrate/ad/build.py) */
.fc-tw.fc-tw.fc-tw .tw-pb-4 { padding-bottom: calc(var(--spacing) * 4); }
