/* Arvo mobile-fix — PetCerts surgical overrides (no Vite) */
@media (max-width: 991px) {
  /* Tap targets in dark topbar */
  .header .topbar a.topbar-text-link,
  .header .topbar .login a {
    min-height: 44px;
    padding: 8px 6px;
    display: inline-flex;
    align-items: center;
  }
  .header .topbar .btn-get-started {
    min-height: 44px;
    padding: 10px 14px !important;
  }
  .header .topbar .cus-social-nav { display: none !important; }

  /* Leave room above Hybrid Reply / chat widget on money path forms */
  body { padding-bottom: 72px; }
  .portal-card, .medical-portal-bg, form { position: relative; z-index: 1; }

  /* Prevent forgot-password clip next to chat bubble */
  .forgot-link {
    white-space: nowrap !important;
    position: relative;
    z-index: 2;
    padding-right: 8px;
  }
}
@media (max-width: 575px) {
  .header .navbar-brand img {
    height: 40px !important;
  }
}

/* Register / pricing / esa money-path clearance */
@media (max-width: 991px) {
  .header.is-sticky, .header.default { max-width: 100vw; }
  main, .container { max-width: 100%; overflow-x: clip; }
  /* Hybrid Reply chat launcher should not cover primary CTAs permanently */
  #hr-widget-root, .hr-widget, [id*="hybridreply"] { z-index: 1040; }
  section .btn, .btn-primary, .btn-get-started, a.btn {
    min-height: 44px;
  }
}
@media (max-width: 575px) {
  .topbar .d-block.d-md-flex { gap: 4px; }
  h1, .display-4, .display-5, .display-6 { overflow-wrap: anywhere; }
}


/* P0 money-ui HR clearance — keep chat; clear CTAs (bak-money-ui-20260915084246) */
@media (max-width: 768px) {
  body.pc-money-ui {
    padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)) !important;
  }
  /* Primary money CTAs stay tappable above chat chrome */
  body.pc-money-ui .cta-area,
  body.pc-money-ui .btn-gold,
  body.pc-money-ui a.btn.btn-primary,
  body.pc-money-ui .pricing-card .btn,
  body.pc-money-ui [class*="esa"] .btn,
  body.pc-money-ui section .btn.btn-xl {
    position: relative;
    z-index: 5;
  }
  /* Sticky / bottom Pay on money paths sits above HR launcher zone */
  body.pc-money-ui .payment-checkout-pane button.btn-primary.btn-lg,
  body.pc-money-ui #sc-native-pay,
  body.pc-money-ui #qc-native-pay {
    bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
  }
}


/* P0 money-ui footer clear — keep HR; clear #pc-seo-equity-footer CTAs */
@media (max-width: 768px) {
  body.pc-money-ui #pc-seo-equity-footer {
    padding-bottom: calc(130px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body.pc-money-ui #pc-seo-equity {
    padding-bottom: 8px;
  }
}
