/* HERMES_BATCH1_20260906
   Cookie: compact bottom chip, both buttons visible, do not cover CTA.
   Mobile header: keep Menu + one RFQ + search; hide duplicate Cross Reference/RFQ row.
   Homepage hero: full-width centered copy (not left cluster).
*/

body .shr-cookie-banner,
body .shr-cookie-banner.rr-cookie-inline,
body [data-cookie-banner] {
  position: fixed !important;
  top: auto !important;
  left: auto !important;
  right: max(12px, env(safe-area-inset-right)) !important;
  bottom: max(12px, env(safe-area-inset-bottom)) !important;
  z-index: 1200 !important;
  width: min(420px, calc(100vw - 24px)) !important;
  max-width: calc(100vw - 24px) !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  gap: 8px !important;
  border-radius: 12px !important;
  display: none !important;
  flex-direction: column !important;
  align-items: stretch !important;
  box-sizing: border-box !important;
}

body .shr-cookie-banner.is-visible,
body .shr-cookie-banner.rr-cookie-inline.is-visible,
body [data-cookie-banner].is-visible {
  display: flex !important;
}

body.home:not(.shr-user-scrolled) .shr-cookie-banner,
body.home:not(.shr-user-scrolled) .shr-cookie-banner.rr-cookie-inline,
body.front-page:not(.shr-user-scrolled) .shr-cookie-banner {
  opacity: 0 !important;
  pointer-events: none !important;
}

body .shr-cookie-banner p {
  margin: 0 !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

body .shr-cookie-actions {
  display: flex !important;
  flex-direction: row !important;
  gap: 8px !important;
  width: 100% !important;
}

body .shr-cookie-actions .btn,
body .shr-cookie-banner .btn {
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 44px !important;
  white-space: nowrap !important;
}

@media (max-width: 900px) {
  body .header-action-note { display: none !important; }
  body .header-actions { display: none !important; }
  body .header-action-row .header-product-search { width: 100% !important; }
  body .mobile-rfq-quick { display: inline-flex !important; }
}

@media (min-width: 981px) {
  body.home .hero-inner,
  body.front-page .hero-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 22px !important;
    grid-template-columns: 1fr !important;
    max-width: 1180px !important;
    width: 100% !important;
  }
  body.home .hero h1,
  body.home .hero p.lead,
  body.home .hero-search,
  body.home .quickfind,
  body.home .hero-cta,
  body.home .hero-stats,
  body.home .hero-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    justify-content: center !important;
  }
  body.home .hero p.lead { max-width: 46em !important; }
  body.home .hero-search { max-width: 640px !important; }
  body.home .hero-card { max-width: 760px !important; }
}
