/* p1-20260915e — homepage quote paths, quote-page mobile overlap */
/* Homepage: one empty quote path (header) + one official sample */

html.zoryra-p1-home body .site-header-actions a.btn.site-header-upload,
html.zoryra-p1-quote body .site-header-actions a.btn.site-header-upload,
html body:has(.quote-board) .site-header-actions a.btn.site-header-upload,
html.zoryra-p1-home body a.site-header-upload,
html.zoryra-p1-quote body a.site-header-upload,
html.zoryra-p1-home body .promo-trust-cta,
html.zoryra-p1-quote body .promo-trust-cta,
html body:has(.quote-board) .promo-trust-bar a.promo-trust-cta,
html.zoryra-p1-home .primary-ctas.is-hero > a.btn-primary[href*="/quote"],
html.zoryra-p1-home .quote-hero-teaser-cta,
html.zoryra-p1-home .chat-rail-quote,
html.zoryra-p1-home .float-quote-mobile-btn,
html.zoryra-p1-home a.proof-cta[href*="/quote"],
html.zoryra-p1-home .factory-gallery-cta a[href*="/quote"],
html.zoryra-p1-home .site-footer-cta-row > a.btn-primary[href*="/quote"],
html.zoryra-p1-home main a.btn-primary[href*="/quote"]:not(.quote-hero-teaser-sample):not(.site-header-quote),
html.zoryra-p1-home body a.home-market-pillar-link[href*="/quote"] {
  display: none !important;
}

html.zoryra-p1-home .quote-hero-teaser-actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0.65rem !important;
}

html.zoryra-p1-home .quote-hero-teaser-sample {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 2.85rem !important;
  padding: 0.55rem 1.15rem !important;
  border-radius: 0.7rem !important;
  background: #0f172a !important;
  color: #fff !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  text-decoration: none !important;
  border: 0 !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18) !important;
}

html.zoryra-p1-home .quote-hero-teaser-drop {
  cursor: pointer;
}

/* Quote + home: hide the AI Quote clone on the rail / bottom dock */
html.zoryra-p1-home body .chat-rail-quote,
html.zoryra-p1-quote body .chat-rail-quote,
html.zoryra-p1-home body .live-chat .chat-rail-quote,
html.zoryra-p1-quote body .live-chat .chat-rail-quote,
html.zoryra-p1-quote body .float-quote-mobile,
html.zoryra-p1-home body .float-quote-mobile-btn,
html.zoryra-p1-quote body .float-quote-mobile-btn {
  display: none !important;
}

html.zoryra-cad-units-status,
#zoryra-cad-units-status {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  color: #1d4ed8;
  font-weight: 650;
}

.zoryra-cad-recalc {
  font: inherit;
  font-weight: 750 !important;
  font-size: 0.8rem !important;
  padding: 0.28rem 0.65rem !important;
  border-radius: 0.55rem !important;
  cursor: pointer;
  background: #fff !important;
  color: #0f172a !important;
  border: 1px dashed #64748b !important;
}

/* Quote workspace: cookie + rails must not cover Preview or 5d+5d split */
html.zoryra-p1-quote .quote-actions,
html.zoryra-p1-quote .quote-days-split,
html.zoryra-p1-quote .zoryra-follow-cta,
html.zoryra-on-quote .quote-actions,
html.zoryra-on-quote .quote-days-split {
  position: relative !important;
  z-index: 90 !important;
}

@media (max-width: 900px) {
  html.zoryra-p1-quote body .cookie-banner,
  html.zoryra-p1-quote body:has(.quote-board) .cookie-banner,
  html.zoryra-p1-quote.zoryra-on-quote body .cookie-banner,
  html.zoryra-p1-quote body:has(.quote-board.is-workspace) .cookie-banner,
  html[lang].zoryra-p1-quote body .cookie-banner,
  html.is-app-webview.zoryra-p1-quote body .cookie-banner {
    position: fixed !important;
    top: 8px !important;
    bottom: auto !important;
    right: 8px !important;
    left: auto !important;
    width: 10.25rem !important;
    max-width: 10.25rem !important;
    max-height: 5.8rem !important;
    overflow: hidden !important;
    padding: 0.4rem 0.5rem !important;
    z-index: 22 !important;
    transform: none !important;
    margin: 0 !important;
  }

  html.zoryra-p1-quote body .cookie-banner p,
  html.zoryra-p1-quote body:has(.quote-board) .cookie-banner p {
    -webkit-line-clamp: 2 !important;
    font-size: 0.68rem !important;
    line-height: 1.25 !important;
  }

  html.zoryra-p1-quote .quote-board,
  html.zoryra-p1-quote .quote-board.is-workspace,
  html.zoryra-p1-quote .quote-filled,
  html.zoryra-p1-quote .quote-stage {
    padding-right: 0.35rem !important;
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  html.zoryra-p1-quote .quote-actions,
  html.zoryra-p1-quote .quote-days-split,
  html.zoryra-p1-quote .zoryra-follow-cta {
    padding-right: 0.25rem !important;
    margin-bottom: 0.85rem !important;
    z-index: 90 !important;
  }

  html.zoryra-p1-quote .live-chat-rail,
  html.zoryra-p1-quote .chat-rail {
    z-index: 20 !important;
  }

  html.zoryra-p1-quote body {
    padding-bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px)) !important;
  }
}


/* p1-20260915n — reserve AI pill slot so header buttons do not hop */
.zoryra-m-ai-quote,
#zoryra-m-ai-quote {
  display: none !important;
}
.zoryra-m-ai-wrap {
  display: none !important;
}

@media (max-width: 900px) {
  /* First paint: keep the navy trust bar tall enough for the pill. */
  .promo-trust-bar {
    position: relative !important;
    padding-top: 3.05rem !important;
    box-sizing: border-box !important;
  }
  body:has(.quote-board) .promo-trust-bar,
  html.zoryra-p1-quote .promo-trust-bar,
  body:has(.auth-card) .promo-trust-bar,
  html.zoryra-no-ai .promo-trust-bar {
    padding-top: 0 !important;
  }

  html.zoryra-m-ai .promo-trust-bar {
    overflow: visible !important;
  }
  html.zoryra-m-ai .zoryra-m-ai-wrap,
  html.zoryra-m-ai #zoryra-m-ai-wrap {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0.38rem 0.5rem 0.32rem !important;
    background: linear-gradient(90deg, #0f1c2e 0%, #1a334d 55%, #243d52 100%) !important;
  }
  html.zoryra-m-ai a.zoryra-m-ai-quote,
  html.zoryra-m-ai #zoryra-m-ai-quote {
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: auto !important;
    max-width: none !important;
    margin: 0.38rem 0.5rem 0.32rem !important;
    padding: 0.45rem 0.9rem !important;
    min-height: 2.35rem !important;
    background: #e8b84a !important;
    color: #1a1408 !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    text-decoration: none !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    text-align: center !important;
    z-index: 2 !important;
  }
  /* Sit in the reserved padding, do not add a second row of height. */
  html.zoryra-m-ai .promo-trust-bar > #zoryra-m-ai-quote,
  html.zoryra-m-ai .promo-trust-bar > a.zoryra-m-ai-quote {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0.38rem 0.5rem 0.32rem !important;
  }
  html.zoryra-m-ai .zoryra-m-ai-wrap a.zoryra-m-ai-quote,
  html.zoryra-m-ai #zoryra-m-ai-wrap #zoryra-m-ai-quote {
    margin: 0 !important;
    position: static !important;
  }
  html.zoryra-m-ai a.zoryra-m-ai-quote:hover,
  html.zoryra-m-ai a.zoryra-m-ai-quote:active,
  html.zoryra-m-ai #zoryra-m-ai-quote:hover,
  html.zoryra-m-ai #zoryra-m-ai-quote:active {
    background: #f0c45a !important;
    color: #1a1408 !important;
    filter: brightness(1.06) !important;
  }
}


/* p1-20260915h — roomier mobile homepage cookie card */
@media (max-width: 900px) {
  html.zoryra-p1-home body .cookie-banner,
  html.zoryra-p1-home body .cookie-banner.cookie-banner--hygiene {
    width: min(19.75rem, calc(100vw - 1rem)) !important;
    max-width: min(19.75rem, calc(100vw - 1rem)) !important;
    max-height: none !important;
    padding: 0.95rem 1.05rem !important;
    gap: 0.7rem !important;
    overflow: visible !important;
    border-radius: 1rem !important;
  }
  html.zoryra-p1-home body .cookie-banner p {
    display: block !important;
    -webkit-line-clamp: unset !important;
    overflow: visible !important;
    font-size: 0.95rem !important;
    line-height: 1.45 !important;
    font-weight: 500 !important;
  }
  html.zoryra-p1-home body .cookie-banner-actions {
    display: flex !important;
    gap: 0.45rem !important;
    width: 100% !important;
  }
  html.zoryra-p1-home body .cookie-banner-actions .btn {
    flex: 1 1 0 !important;
    min-height: 2.8rem !important;
    padding: 0.5rem 0.7rem !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    border-radius: 0.85rem !important;
  }
}
