/* Oobit affiliate conversion layer — mobile-first above-the-fold overrides.
   Loaded after the original Webflow CSS so it wins on specificity. */

/* --- 1. Compress the hero so headline + card + CTA fit on screen 1 --- */
.oobit-af .section-card-main .flex-vert-center-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.oobit-af .card-header-wrap { order: 1; }
.oobit-af .card-lottie-wrap { order: 2; position: relative; cursor: pointer; }
.oobit-af #oobit-cta-wrap { order: 3; width: 100%; }
.oobit-af .section-card-main .hero-store-wrap { display: none !important; }

.oobit-af .hero-h1-card {
  font-size: 34px;
  line-height: 1.05;
  margin: 0;
}
.oobit-af .hero-sub-h1-card {
  font-size: 15px;
  line-height: 1.5;
  max-width: 420px;
  margin: 10px auto 0;
}
.oobit-af .card-lottie-wrap { display: none !important; }

.oobit-hero-visual {
  order: 2;
  position: relative;
  display: block;
  width: 100%;
  max-width: 250px;
  margin: 14px auto 0;
  cursor: pointer;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(11, 16, 32, 0.18);
  transition: transform 0.25s ease;
}
.oobit-hero-visual:hover { transform: translateY(-3px); }
.oobit-hero-img {
  display: block;
  width: 100%;
  height: 30vh;
  max-height: 250px;
  object-fit: cover;
}
.oobit-af .section-card-main { padding-top: 70px !important; padding-bottom: 10px !important; }
.oobit-af .section-card-main .w-container,
.oobit-af .section-card-main .container {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
.oobit-af .section-card-main .flex-vert-center-copy {
  padding-top: 0 !important;
  margin-top: 0 !important;
  min-height: 0 !important;
}

@media (min-width: 768px) {
  .oobit-af .hero-h1-card { font-size: 56px; }
  .oobit-hero-visual { max-width: 300px; }
  .oobit-hero-img { height: 340px; max-height: 340px; }
}

/* store badges are re-shown once moved below the fold */
.oobit-badges .hero-store-wrap {
  display: flex !important;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

/* --- 2. Primary CTA (neutral, ad-compliant copy) --- */
#oobit-cta-wrap {
  width: 100%;
  max-width: 460px;
  margin: 18px auto 0;
  text-align: center;
}
.oobit-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 17px 28px;
  border-radius: 999px;
  background: #1f4fff;
  color: #fff !important;
  font: 600 17px/1 Inter, Poppins, sans-serif;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(31, 79, 255, 0.32);
  transition: transform 0.18s ease, background-color 0.18s ease;
}
.oobit-cta:hover { background: #1740d9; transform: translateY(-2px); }
.oobit-cta--ghost {
  background: #fff;
  color: #1f4fff !important;
  border: 1.5px solid #1f4fff;
  box-shadow: none;
  margin-top: 10px;
}
.oobit-cta--ghost:hover { background: #f2f5ff; }
#oobit-cta-sub {
  margin: 10px 0 0;
  font: 400 11.5px/1.5 Inter, sans-serif;
  color: rgba(11, 16, 32, 0.5);
}
#oobit-cta-sub a { color: #1f4fff; text-decoration: none; }

/* --- 3. Tap hint on the hero card (captures instinctive thumb taps) --- */
.oobit-tap-hint {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(11, 16, 32, 0.86);
  color: #fff;
  font: 600 11px/1 Inter, sans-serif;
  letter-spacing: 0.02em;
  white-space: nowrap;
  animation: oobit-pulse 2.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes oobit-pulse {
  0%, 100% { opacity: 0.85; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.04); }
}

/* --- 4. Below-the-fold trust band (badges + networks) --- */
.oobit-band { padding: 26px 20px; text-align: center; }
.oobit-band--tight { padding-bottom: 4px; }
.oobit-band h3 {
  margin: 0 0 14px;
  font: 600 13px/1.4 Inter, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(11, 16, 32, 0.4);
}
.oobit-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
}
.oobit-networks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}
.oobit-networks span {
  padding: 7px 14px;
  border: 1px solid rgba(11, 16, 32, 0.12);
  border-radius: 999px;
  font: 500 12px/1 Inter, sans-serif;
  color: rgba(11, 16, 32, 0.55);
}

/* --- 4b. sticky thumb-zone CTA for in-app browsers (TikTok / IG webviews) --- */
.oobit-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(11, 16, 32, 0.08);
  transform: translateY(130%);
  transition: transform 0.26s ease;
}
.oobit-sticky.is-visible { transform: translateY(0); }
.oobit-sticky .oobit-cta { padding: 15px 24px; font-size: 16px; }
.oobit-sticky p {
  margin: 6px 0 0;
  text-align: center;
  font: 400 10.5px/1.4 Inter, sans-serif;
  color: rgba(11, 16, 32, 0.45);
}
@media (min-width: 768px) { .oobit-sticky { display: none; } }
@media (max-width: 767px) { .download-float { display: none !important; } }


/* --- 5. Secondary CTA band --- */
.oobit-secondary {
  margin: 0 20px 40px;
  padding: 28px 22px;
  background: #f6f7fb;
  border-radius: 28px;
  text-align: center;
}
.oobit-secondary h3 { margin: 0; font: 700 22px/1.25 Poppins, sans-serif; }
.oobit-secondary p {
  margin: 10px 0 18px;
  font: 400 14px/1.6 Inter, sans-serif;
  color: rgba(11, 16, 32, 0.55);
}
.oobit-secondary .oobit-cta { max-width: 380px; margin: 0 auto; }

/* --- 6. Compliant corporate footer --- */
.oobit-legal {
  border-top: 1px solid rgba(11, 16, 32, 0.08);
  padding: 30px 20px 10px;
  font-family: Inter, sans-serif;
}
.oobit-legal .inner { max-width: 900px; margin: 0 auto; }
.oobit-legal h4 {
  margin: 0 0 8px;
  font: 600 10px/1 Inter, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(11, 16, 32, 0.35);
}
.oobit-legal p {
  margin: 0 0 10px;
  font-size: 11px;
  line-height: 1.65;
  color: rgba(11, 16, 32, 0.45);
}
.oobit-legal strong { color: rgba(11, 16, 32, 0.62); }
.oobit-legal .cols { display: grid; gap: 18px; }
@media (min-width: 720px) { .oobit-legal .cols { grid-template-columns: 0.9fr 1.2fr 1.6fr; } }
.oobit-legal a { color: rgba(11, 16, 32, 0.55); text-decoration: underline; }

/* --- 7. scaling fixes (mobile + desktop) --- */

/* the original nav is transparent + fixed, so content scrolled under the logo */
.oobit-af .navbar,
.oobit-af .navbar-2 {
  background-color: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(11, 16, 32, 0.07);
}

/* Webflow image boxes with hard-coded heights overflow their card on small screens */
.oobit-af .div-block-184,
.oobit-af .div-block-184-copy {
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
.oobit-af .image-160,
.oobit-af .image-217 {
  width: 100% !important;
  height: auto !important;
  max-height: 300px !important;
  object-fit: contain !important;
}

/* keep the sticky CTA from covering the last block of content */
@media (max-width: 767px) {
  .oobit-af { padding-bottom: 96px; }
  .oobit-af .spend-card-img-fallback { max-height: 260px !important; object-fit: cover !important; }
  .oobit-af .heading-what,
  .oobit-af .heading-why,
  .oobit-af .heading-how-card,
  .oobit-af .heading-spend,
  .oobit-af .heading-cashback-compare,
  .oobit-af .heading-66 { font-size: 26px !important; line-height: 1.2 !important; }
  .oobit-af .card-spend-header,
  .oobit-af .reasons-card-header { font-size: 19px !important; line-height: 1.25 !important; }
}

/* desktop: the compressed hero left a tall empty band under the CTA */
@media (min-width: 768px) {
  .oobit-af .section-card-main {
    padding-top: 40px !important;
    padding-bottom: 24px !important;
    margin-bottom: 16px !important;
    min-height: 0 !important;
    height: auto !important;
  }
  .oobit-af .section-card-main .container,
  .oobit-af .section-card-main .w-container {
    height: auto !important;
    min-height: 0 !important;
  }
  .oobit-af .section-card-main .flex-vert-center-copy {
    min-height: 0 !important;
    height: auto !important;
  }
  .oobit-af .hero-sub-h1-card { max-width: 620px; margin-left: auto; margin-right: auto; }
}

/* short viewports (iPhone SE / older Androids): keep the CTA + note fully visible */
@media (max-width: 767px) and (max-height: 700px) {
  .oobit-af .hero-h1-card { font-size: 29px !important; }
  .oobit-af .hero-sub-h1-card { font-size: 13.5px !important; margin-top: 6px !important; }
  .oobit-hero-visual { max-width: 200px; margin-top: 8px; }
  .oobit-hero-img { height: 22vh; max-height: 160px; }
  #oobit-cta-wrap { margin-top: 12px; }
  .oobit-cta { padding: 14px 24px; font-size: 16px; }
  .oobit-af .section-card-main { padding-top: 66px !important; }
}

/* defensive: never allow a horizontal scrollbar if Webflow assets change */
html, body { overflow-x: hidden; }

/* --- 8. vertical rhythm: the original page uses desktop-first 88-120px section
       padding which reads as dead space on phones and on a compressed hero --- */
.oobit-af .section-card-main { margin-top: 0 !important; }

@media (max-width: 767px) {
  .oobit-af .section-card,
  .oobit-af .section-reason,
  .oobit-af .section-card-spend,
  .oobit-af .section-card-content-blocks,
  .oobit-af .section-card-competitors-compare,
  .oobit-af .section-visa-card,
  .oobit-af .section-feedbacks-card,
  .oobit-af .section-card-faq {
    padding-top: 36px !important;
    padding-bottom: 36px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
  .oobit-af .section-slider {
    padding-top: 0 !important;
    padding-bottom: 12px !important;
    margin-bottom: 0 !important;
  }
  .oobit-af .oobit-band { padding-top: 16px !important; padding-bottom: 16px !important; }
  .oobit-af .oobit-band--tight { padding-bottom: 2px !important; }
  .oobit-af .oobit-secondary { margin-bottom: 24px !important; }

}

@media (min-width: 768px) {
  .oobit-af .section-card,
  .oobit-af .section-reason,
  .oobit-af .section-card-spend,
  .oobit-af .section-card-content-blocks,
  .oobit-af .section-card-competitors-compare,
  .oobit-af .section-visa-card,
  .oobit-af .section-feedbacks-card,
  .oobit-af .section-card-faq {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
  .oobit-af .section-slider { padding-bottom: 24px !important; margin-bottom: 0 !important; }
  .oobit-af .oobit-band { padding-top: 18px !important; padding-bottom: 18px !important; }
}

/* the Webflow .container is hard-coded to height:900px sitewide, which leaves
   500-600px of dead air in every section once content is compressed */
.oobit-af .container,
.oobit-af .w-layout-blockcontainer.container {
  height: auto !important;
  min-height: 0 !important;
}

/* reason cards have a fixed height with justify-content:space-between, leaving
   ~80px of dead air per card once mobile text reflows */
@media (max-width: 767px) {
  .oobit-af .reason-card-1-alt,
  .oobit-af .reason-card-2-alt {
    height: auto !important;
    min-height: 0 !important;
    padding-top: 24px !important;
    gap: 20px;
  }
  .oobit-af .reason-card-2-alt { padding-bottom: 24px !important; }
  .oobit-af .reason-cards-alt { gap: 12px !important; }
}

/* keep reason cards content-driven on tablet/desktop too */
@media (min-width: 768px) {
  .oobit-af .reason-card-1-alt,
  .oobit-af .reason-card-2-alt {
    height: auto !important;
    min-height: 0 !important;
    gap: 24px;
  }
}

/* --- 9. brand statement block --- */
.oobit-manifesto-title {
  font: 700 26px/1.15 Poppins, Inter, sans-serif !important;
  letter-spacing: -0.02em;
  margin: 0 !important;
}
.oobit-manifesto {
  margin: 0 20px 8px;
  padding: 26px 22px;
  text-align: center;
  border-top: 1px solid rgba(11, 16, 32, 0.08);
  border-bottom: 1px solid rgba(11, 16, 32, 0.08);
}
.oobit-manifesto p {
  margin: 12px auto 0;
  max-width: 420px;
  font: 400 14px/1.65 Inter, sans-serif;
  color: rgba(11, 16, 32, 0.55);
}
@media (min-width: 768px) {
  .oobit-manifesto-title { font-size: 34px !important; }
}

/* --- 10. testimonial accordion: collapsed cards hard-cut their quote mid-line
       on mobile, which reads as broken/overlapping text. Clamp it cleanly. --- */
@media (max-width: 767px) {
  .oobit-af .oobit-social-proof__card:not(.is-active) { height: 146px !important; }
  .oobit-af .oobit-social-proof__card:not(.is-active) .oobit-social-proof__content { height: 138px !important; }
  .oobit-af .oobit-social-proof__card:not(.is-active) .oobit-social-proof__content > div:first-child {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .oobit-af .oobit-social-proof__bottom { background: #fff; }
}

/* --- 11. Apple Pay / Google Pay marks, top-right of the hero visual --- */
.oobit-pay-badge {
  position: absolute;
  top: 7px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.oobit-pay-mark {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  opacity: 0.94;
  filter: drop-shadow(0 1px 2.5px rgba(0, 0, 0, 0.5));
}
.oobit-pay-mark svg { display: block; height: 13px; width: 13px; }
.oobit-pay-mark b {
  font: 500 11.5px/1 -apple-system, "SF Pro Text", "Helvetica Neue", Inter, sans-serif;
  color: #fff;
  letter-spacing: -0.015em;
}
@media (min-width: 768px) {
  .oobit-pay-badge { top: 10px; right: 11px; gap: 10px; }
  .oobit-pay-mark svg { height: 15px; width: 15px; }
  .oobit-pay-mark b { font-size: 13px; }
}

/* soft top scrim so the pay marks read as part of the photo, not a sticker */
.oobit-hero-visual::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 64px;
  background: linear-gradient(to bottom, rgba(11, 16, 32, 0.42), rgba(11, 16, 32, 0));
  pointer-events: none;
  z-index: 1;
}
.oobit-pay-badge { z-index: 2; }

/* ==========================================================
   Localisation layer: market disclaimer + QA market switcher
   ========================================================== */
.oobit-legal__market {
  margin: 0 0 18px !important;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(31, 79, 255, 0.05);
  border: 1px solid rgba(31, 79, 255, 0.18);
  color: rgba(11, 16, 32, 0.72) !important;
  font-size: 12.5px;
  line-height: 1.65;
}

.oobit-qa {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(11, 16, 32, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(11, 16, 32, 0.35);
  font: 500 11px/1 Inter, sans-serif;
  color: #fff;
}
.oobit-qa label {
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.65;
  white-space: nowrap;
}
.oobit-qa select {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 6px 9px;
  font: 500 12px Inter, sans-serif;
  max-width: 190px;
  cursor: pointer;
}
.oobit-qa select option { color: #0b1020; }
@media (max-width: 767px) {
  .oobit-qa { bottom: 88px; left: 8px; padding: 6px 8px; }
  .oobit-qa select { max-width: 130px; font-size: 11px; }
}

/* CJK / Thai copy needs a little more line height to stay legible */
html[lang="th"] body,
html[lang="ko"] body,
html[lang="zh-HK"] body { line-height: 1.75; }
html[lang="th"] .hero-h1-card,
html[lang="ko"] .hero-h1-card,
html[lang="zh-HK"] .hero-h1-card { letter-spacing: 0; }
html[lang="th"] .oobit-manifesto-title,
html[lang="ko"] .oobit-manifesto-title,
html[lang="zh-HK"] .oobit-manifesto-title { letter-spacing: 0; }


/* --- 9. the two in-page Webflow CTAs must read as bold as the primary CTA --- */
.oobit-af .cta-card-alt,
.oobit-af .cta-card-alt *,
.oobit-af .cta-copy,
.oobit-af .cta-copy *,
.oobit-af .cta-how-card,
.oobit-af .cta-how-card * {
  font-family: Inter, Poppins, sans-serif !important;
  font-weight: 600 !important;
}

/* --- 10. affiliate strip at the very bottom (localised by conversion.js) --- */
.oobit-strip {
  max-width: 1200px;
  margin: 30px auto 0;
  padding: 16px 20px 22px;
  border-top: 1px solid rgba(11, 16, 32, 0.06);
  text-align: center;
  font-family: Inter, sans-serif;
}
.oobit-strip__label {
  margin: 0 0 6px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(11, 16, 32, 0.42);
}
.oobit-strip__body,
.oobit-strip__advice {
  margin: 0 0 5px;
  font-size: 11px;
  line-height: 1.55;
  color: rgba(11, 16, 32, 0.45);
}
.oobit-strip__advice strong { color: rgba(11, 16, 32, 0.6); }
.oobit-strip__links { margin: 8px 0 0; font-size: 10px; }
.oobit-strip__links a { color: rgba(11, 16, 32, 0.5); text-decoration: none; margin: 0 5px; }
.oobit-strip__links a:hover { color: #1f4fff; }
.oobit-strip__links span { color: rgba(11, 16, 32, 0.2); }
html[dir="rtl"] .oobit-strip { text-align: center; }


/* --- 11. exit offer: last-chance cashback bottom sheet --- */
.oobit-exit {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9998;
  pointer-events: none;
  visibility: hidden;
}
.oobit-exit.is-open { pointer-events: auto; visibility: visible; }
.oobit-exit__mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 16, 32, 0.55);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.oobit-exit.is-open .oobit-exit__mask { opacity: 1; }
.oobit-exit__sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 26px 22px 26px;
  border-radius: 26px 26px 0 0;
  background: #fff;
  box-shadow: 0 -20px 50px rgba(11, 16, 32, 0.28);
  text-align: center;
  font-family: Inter, sans-serif;
  transform: translateY(110%);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}
.oobit-exit.is-open .oobit-exit__sheet { transform: translateY(0); }
.oobit-exit__close {
  position: absolute;
  top: 14px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(11, 16, 32, 0.06);
  color: rgba(11, 16, 32, 0.55);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.oobit-exit__close:hover { background: rgba(11, 16, 32, 0.12); color: #0b1020; }
.oobit-exit__eyebrow {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  color: #0b1020;
}
.oobit-exit__body {
  margin: 0 auto 18px;
  max-width: 380px;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(11, 16, 32, 0.6);
}
.oobit-exit__body a { color: #1f4fff; text-decoration: none; }
.oobit-exit__cta .oobit-cta { width: 100%; }
html[dir="rtl"] .oobit-exit__close { right: auto; left: 16px; }

@media (min-width: 768px) {
  .oobit-exit__sheet {
    top: 50%;
    bottom: auto;
    left: 50%;
    right: auto;
    margin: 0;
    border-radius: 26px;
    opacity: 0;
    transform: translate(-50%, calc(-50% + 22px)) scale(0.97);
  }
  .oobit-exit.is-open .oobit-exit__sheet { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
