/* Cross-page mobile/tablet consistency fixes. Keep desktop visuals intact. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

body {
  background: #fff8f5;
}

body *,
body *::before,
body *::after {
  box-sizing: border-box;
}

img,
video,
canvas,
iframe,
svg {
  max-width: 100%;
}

.urgency-bar,
.top,
.top-urgency-bar,
.funnel-urgency-bar {
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
}

#nav,
#tfs-nav,
.site-nav,
nav#nav {
  background: #fff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid rgba(10, 10, 10, 0.14) !important;
}

#nav.scrolled,
#tfs-nav.tfs-scrolled,
.site-nav.scrolled,
nav#nav.scrolled {
  background: #fff !important;
}

.nav-logo,
.tfs-nav-logo,
.site-brand,
.logo {
  position: absolute !important;
  left: 50% !important;
  right: auto !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  z-index: 2;
}

.nav-logo img,
.tfs-nav-logo img,
.site-brand img,
.logo img {
  display: block;
  width: auto;
  max-width: min(300px, 48vw);
  object-fit: contain;
}

.nav-hamburger,
.tfs-nav-hamburger {
  position: absolute !important;
  right: 28px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  min-width: 44px !important;
  min-height: 44px !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  z-index: 3;
}

.mobile-sticky-cta,
.tfs-mobile-sticky-cta,
.mobile-buy-bar,
.growth-bottom-bar,
.starter-bottom-bar,
.premium-bottom-bar,
.funnel-sticky-cta,
[class*="bottom-bar"],
[class*="sticky-cta"] {
  display: none !important;
}

a.funnel-sticky-cta,
.btn.funnel-sticky-cta,
.buy-trigger.funnel-sticky-cta,
.btn.btn-primary.buy-trigger.step4-buy-trigger.funnel-sticky-cta {
  display: none !important;
  visibility: hidden !important;
}

body:has(.mobile-buy-bar),
body.tfs-has-mobile-cta {
  padding-bottom: 0 !important;
}

#whatsapp-btn,
#tfs-whatsapp-btn,
.tfs-whatsapp-floating {
  position: fixed !important;
  right: 24px !important;
  bottom: 24px !important;
  z-index: 99990 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  max-width: calc(100vw - 48px);
  white-space: nowrap;
}

#whatsapp-btn svg,
#tfs-whatsapp-btn svg,
.tfs-whatsapp-floating svg {
  flex: 0 0 auto !important;
  margin: 0 !important;
}

#whatsapp-btn .wa-label,
#tfs-whatsapp-btn .tfs-wa-label,
.tfs-whatsapp-floating span {
  display: inline-block;
  margin-left: 2px;
  line-height: 1;
}

#vapi-widget,
.vapi-float,
.float-ai {
  position: fixed !important;
  left: 24px !important;
  right: auto !important;
  bottom: 24px !important;
  z-index: 99980 !important;
  min-width: 54px;
  min-height: 54px;
  max-width: calc(100vw - 112px);
}

.vapi-float vapi-widget,
#vapi-widget vapi-widget,
vapi-widget {
  min-width: 54px;
  min-height: 54px;
  max-width: calc(100vw - 112px);
}

.discount-banner {
  left: 50% !important;
  right: auto !important;
  bottom: 92px !important;
  width: min(100% - 32px, 1180px) !important;
  transform: translate(-50%, 140%) !important;
}

.discount-banner.visible {
  transform: translate(-50%, 0) !important;
}

.discount-banner-inner {
  width: 100%;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center !important;
  align-items: center !important;
  text-align: center;
}

.top,
.top-urgency-inner,
.urgency-inner,
.funnel-urgency-inner {
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  flex-wrap: wrap;
}

@media (max-width: 1100px) {
  #nav,
  #tfs-nav,
  .site-nav,
  nav#nav {
    background: #fff !important;
  }

  .nav-inner,
  .tfs-nav-inner,
  .site-nav-inner {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 96px !important;
    min-height: 96px !important;
    padding: 0 28px !important;
  }

  .nav-links,
  .links,
  .tfs-nav-links,
  .site-nav-links,
  .nav-actions,
  .actions.nav-actions,
  .tfs-nav-actions {
    display: none !important;
  }

  .nav-actions:has(.nav-hamburger),
  .actions.nav-actions:has(.nav-hamburger) {
    display: flex !important;
    position: static !important;
    width: auto !important;
    margin-left: auto !important;
  }

  .nav-hamburger,
  .tfs-nav-hamburger {
    display: flex !important;
  }

  .nav-logo img,
  .tfs-nav-logo img,
  .site-brand img,
  .logo img {
    height: 106px !important;
    max-width: min(300px, 48vw);
    padding: 14px 0 !important;
  }
}

@media (max-width: 820px) {
  html,
  body {
    overflow-x: hidden;
  }

  .wrap,
  .wrap-wide,
  .container,
  .inner,
  .shell {
    max-width: 100% !important;
  }

  .hero,
  section,
  .section,
  .marquee,
  .stats,
  .proof,
  .bonus,
  .price-grid,
  .features,
  .hero-grid,
  .checkout-grid,
  .footer-grid {
    max-width: 100vw !important;
    overflow-x: clip;
  }

  [style*="100vw"],
  .marquee-track,
  .t-track,
  .vrow,
  .video-track {
    max-width: 100vw;
  }

  .discount-banner {
    bottom: 92px !important;
    width: calc(100% - 28px) !important;
  }

  .discount-banner-inner {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 8px !important;
    padding: 12px !important;
  }

  .discount-countdown {
    justify-self: center;
  }

  .top,
  .top-urgency-bar {
    min-height: 64px;
    padding: 10px 14px !important;
  }

  .top-urgency-inner {
    flex-direction: column;
    gap: 8px !important;
  }

  .top-urgency-cta {
    width: auto !important;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-inner,
  .tfs-nav-inner,
  .site-nav-inner {
    height: 88px !important;
    min-height: 88px !important;
  }

  .nav-logo img,
  .tfs-nav-logo img,
  .site-brand img,
  .logo img {
    height: 98px !important;
    max-width: min(280px, 54vw);
    padding: 12px 0 !important;
  }
}

@media (max-width: 480px) {
  .nav-inner,
  .tfs-nav-inner,
  .site-nav-inner {
    height: 82px !important;
    min-height: 82px !important;
    padding: 0 20px !important;
  }

  .nav-logo img,
  .tfs-nav-logo img,
  .site-brand img,
  .logo img {
    height: 88px !important;
    max-width: min(250px, 56vw);
    padding: 10px 0 !important;
  }

  .nav-hamburger,
  .tfs-nav-hamburger {
    right: 20px !important;
  }

  #whatsapp-btn,
  #tfs-whatsapp-btn,
  .tfs-whatsapp-floating {
    right: 18px !important;
    bottom: 18px !important;
    width: 54px !important;
    min-width: 54px !important;
    height: 54px !important;
    padding: 0 !important;
  }

  #whatsapp-btn .wa-label,
  #tfs-whatsapp-btn .tfs-wa-label,
  .tfs-whatsapp-floating span {
    display: none !important;
  }

  #vapi-widget,
  .vapi-float,
  .float-ai {
    left: 14px !important;
    bottom: 18px !important;
    max-width: calc(100vw - 92px);
  }

  .discount-banner {
    bottom: 86px !important;
  }
}
