/*
 * Main quote picker quick-bar drawer.
 * Desktop only: mobile keeps the existing in-hero quote layout.
 */
.home-quote-quick-drawer {
  display: none;
}

@media (min-width: 761px) {
  html body:is(.home-page, .home-quote-enabled).home-quote-drawer-open {
    overflow: hidden !important;
  }

  html body:is(.home-page, .home-quote-enabled) .home-quote-quick-drawer {
    position: fixed !important;
    z-index: 999 !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }

  html body:is(.home-page, .home-quote-enabled) .home-quote-quick-drawer.is-open {
    pointer-events: auto !important;
    visibility: visible !important;
  }

  html body:is(.home-page, .home-quote-enabled) .home-quote-quick-drawer-backdrop {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: rgba(7, 28, 61, .32) !important;
    opacity: 0 !important;
    cursor: default !important;
    transition: opacity .24s ease !important;
  }

  html body:is(.home-page, .home-quote-enabled) .home-quote-quick-drawer.is-open .home-quote-quick-drawer-backdrop {
    opacity: 1 !important;
  }

  html body:is(.home-page, .home-quote-enabled) .home-quote-quick-drawer-panel {
    position: relative !important;
    z-index: 1 !important;
    width: min(1200px, calc(100vw - 40px)) !important;
    max-height: calc(100dvh - 80px) !important;
    margin: 0 !important;
    padding: 54px 20px 20px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    border: 1px solid #d8e3f0 !important;
    border-radius: 24px !important;
    background: #fff !important;
    box-shadow: 0 24px 64px rgba(7, 28, 61, .22) !important;
    opacity: 0 !important;
    transform: translate3d(0, 18px, 0) scale(.985) !important;
    transition:
      opacity .22s ease,
      transform .28s cubic-bezier(.22, .78, .24, 1) !important;
    will-change: transform;
  }

  html body:is(.home-page, .home-quote-enabled) .home-quote-quick-drawer.is-open .home-quote-quick-drawer-panel {
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) scale(1) !important;
  }

  html body:is(.home-page, .home-quote-enabled) .home-quote-quick-drawer-close,
  html body:is(.home-page, .home-quote-enabled) .home-quote-quick-drawer-close:hover,
  html body:is(.home-page, .home-quote-enabled) .home-quote-quick-drawer-close:focus,
  html body:is(.home-page, .home-quote-enabled) .home-quote-quick-drawer-close:focus-visible,
  html body:is(.home-page, .home-quote-enabled) .home-quote-quick-drawer-close:active {
    position: absolute !important;
    z-index: 8 !important;
    top: 10px !important;
    right: 14px !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    outline-offset: 2px !important;
    background: transparent !important;
    color: #17263b !important;
    box-shadow: none !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
    cursor: pointer !important;
  }

  html body:is(.home-page, .home-quote-enabled) .home-quote-quick-drawer-close::before,
  html body:is(.home-page, .home-quote-enabled) .home-quote-quick-drawer-close::after {
    content: "" !important;
    position: absolute !important;
    top: 19px !important;
    left: 11px !important;
    width: 18px !important;
    height: 2px !important;
    border-radius: 999px !important;
    background: currentColor !important;
  }

  html body:is(.home-page, .home-quote-enabled) .home-quote-quick-drawer-close::before {
    transform: rotate(45deg) !important;
  }

  html body:is(.home-page, .home-quote-enabled) .home-quote-quick-drawer-close::after {
    transform: rotate(-45deg) !important;
  }

  html body:is(.home-page, .home-quote-enabled) .home-quote-drawer-mount {
    width: 100% !important;
    min-width: 0 !important;
  }

  html body:is(.home-page, .home-quote-enabled) .home-quote-drawer-mount .home-quote-reference-panel {
    width: 100% !important;
    margin: 0 !important;
  }

  html body:is(.home-page, .home-quote-enabled).home-quote-drawer-open .sticky-bottom-nav:not(#sticky-nav-reference) [data-home-estimate-focus],
  html body:is(.home-page, .home-quote-enabled).home-quote-drawer-open .sticky-bottom-nav:not(#sticky-nav-reference) [data-home-estimate-focus]:hover,
  html body:is(.home-page, .home-quote-enabled).home-quote-drawer-open .sticky-bottom-nav:not(#sticky-nav-reference) [data-home-estimate-focus]:focus,
  html body:is(.home-page, .home-quote-enabled).home-quote-drawer-open .sticky-bottom-nav:not(#sticky-nav-reference) [data-home-estimate-focus]:active {
    color: #0084FF !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body:is(.home-page, .home-quote-enabled) .home-quote-quick-drawer-backdrop,
  html body:is(.home-page, .home-quote-enabled) .home-quote-quick-drawer-panel {
    transition-duration: .01ms !important;
  }
}
