/* Keep this text readable when panel themes supply their own hero overrides. */
@layer child-panel-contrast {
  body #root .panel-order-flow > header:not(.sponsored-panel-intro) {
    --paid-hero-background: #f3f6fb;
    --paid-hero-heading: #14243a;
    --paid-hero-text: #43556b;
    background: var(--paid-hero-background) !important;
    background-image: none !important;
  }

  html:is([data-fp-mode="dark"], [data-theme="dark"]) body #root .panel-order-flow > header:not(.sponsored-panel-intro) {
    --paid-hero-background: #202e40;
    --paid-hero-heading: #f2f6fd;
    --paid-hero-text: #c5d1e1;
  }

  body #root .panel-order-flow > header:not(.sponsored-panel-intro) > h1 {
    color: var(--paid-hero-heading) !important;
  }

  body #root .panel-order-flow > header:not(.sponsored-panel-intro) > :is(p, span) {
    color: var(--paid-hero-text) !important;
  }
}

body .sponsored-panel .sponsored-panel-free .sponsored-claim-restriction {
  margin: 0.75rem 0 0;
  color: var(--sponsored-muted, currentColor);
}

body:has(.fp-ann-reopen):has(.panel-order-flow) .panel-whatsapp-contact {
  bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
}

@media (max-width: 1199px) {
  body:has(.fp-ann-reopen):has(.panel-order-flow) .panel-whatsapp-contact {
    bottom: calc(140px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (max-width: 767px) {
  body:has(.fp-ann-reopen):has(.panel-order-flow) .panel-whatsapp-contact {
    bottom: calc(168px + env(safe-area-inset-bottom, 0px)) !important;
  }
}
