html.has-home-quote { overflow: hidden; }
#home-quote-dialog {
  position: fixed;
  inset: 0;
  width: min(58rem, calc(100% - 2rem));
  max-width: none;
  max-height: min(88vh, 54rem);
  max-height: min(88dvh, 54rem);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #494b50;
  border-radius: .8rem;
}
#home-quote-dialog:not([open]) { display: none; }
#home-quote-dialog[open] { display: flex; flex-direction: column; }
#home-quote-dialog::backdrop { background: rgb(0 0 0 / 78%); }
.home-quote-head {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid #393a3d;
}
#home-quote-title { margin: 0; font-family: var(--font-display, sans-serif); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; }
#home-quote-dialog .home-quote-close { padding: .5rem .8rem; border: 1px solid #777; border-radius: .4rem; color: #fff; min-height: 44px; }
.home-quote-scroll { min-height: 0; overflow: auto; overscroll-behavior: contain; }
#home-quote-dialog .quote-body { padding: 1rem clamp(1rem, 3vw, 2rem) 1.5rem; }
#home-quote-dialog .quote-panel { scroll-margin-top: .5rem; }
#home-quote-dialog .quote-services { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#home-quote-dialog.is-message .quote-panel { margin-top: 0; }
#home-quote-dialog.is-message .home-quote-details { display: none; }
#home-quote-dialog.is-message .quote-panel-head {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
#home-quote-dialog .home-quote-details { display: inline-block; min-height: 44px; margin-top: .45rem; padding: .6rem 0; color: #d7dcdf; text-decoration: underline; text-underline-offset: .2em; }
#home-quote-dialog :is(.home-quote-close, .home-quote-details):focus-visible,
a[data-home-quote]:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 760px) {
  #home-quote-dialog { width: calc(100% - 1rem); max-height: 94vh; max-height: 94dvh; }
  #home-quote-dialog .quote-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
