/* Keep the modal anchored as search results, validation and autofill change. */
.brand-page #quick-quote {
  box-sizing: border-box;
  width: min(510px, 94vw);
  max-width: 94vw;
  height: min(680px, 86dvh);
  max-height: 86dvh;
  padding: 25px;
  overflow: hidden;
}
.brand-page #quick-quote[open] {
  display: flex;
  flex-direction: column;
}
.brand-page #quick-quote .quick-close {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 36px;
  height: 36px;
  padding: 0;
  float: none;
  z-index: 1;
}
.brand-page #quick-search-panel:not([hidden]) {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.brand-page #quick-search-panel > :not(#quick-search-results) {
  flex-shrink: 0;
}
.brand-page #quick-search-title,
.brand-page #quick-title {
  padding-right: 18px;
}
.brand-page #quick-search-status {
  min-height: 2.8em;
  line-height: 1.4;
  margin: 12px 0 8px;
}
.brand-page #quick-search-results {
  flex: 1;
  min-height: 0;
  max-height: none;
  margin: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.brand-page #quick-form,
.brand-page #quick-result {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-right: 5px;
}
@media (max-height: 500px) {
  .brand-page #quick-quote { padding: 16px; }
  .brand-page #quick-search-title { font-size: 20px; margin: 4px 0 8px; }
  .brand-page #quick-search-status { margin: 6px 0; }
}
