/* Local refinements use the storefront's existing type and blue. */
#quote {
  width: min(680px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 24px;
  border-radius: 16px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #aab4be transparent;
}
#quote .dialog-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -8px -8px 0 8px;
  border-radius: 8px;
}
#quote .dialog-close:hover { background: #f1f5f8; }
#quote .dialog-title {
  margin: 0 44px 8px 0;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -.02em;
}
#quote .quote-intro {
  margin: 0 0 16px;
  max-width: 60ch;
  color: #56616b;
  font-size: 14px;
  line-height: 1.5;
}
#quote .selected-product:not([hidden]) {
  margin: 0 0 16px;
  padding: 12px;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
#quote-form { clear: both; }
#quote .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px 16px;
  margin-bottom: 16px;
}
#quote label:not(.consent):not(.trap) {
  display: grid;
  gap: 6px;
  margin: 0;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}
#quote input:not([type=checkbox]):not([type=file]):not([type=hidden]),
#quote textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0;
  border: 1px solid #c4cdd5;
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  color: #242424;
  font: 400 16px/1.4 Manrope, Arial, sans-serif;
  caret-color: #0969bc;
}
#quote input:not([type=checkbox]):not([type=file]):not([type=hidden]) { height: 44px; min-height: 44px; }
#quote textarea { height: 80px; min-height: 80px; resize: vertical; }
#quote input::placeholder, #quote textarea::placeholder { color: #606b76; }
#quote small {
  margin: 0;
  color: #56616b;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}
#quote .quote-company {
  margin: 8px 0 12px;
  padding: 0;
}
#quote .quote-company summary {
  width: fit-content;
  min-height: 44px;
  padding-block: 8px;
  color: #075a9d;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}
#quote .quote-company summary span { color: #56616b; font-weight: 400; }
#quote .quote-company .form-grid { margin: 12px 0 0; }
#quote .quote-files { margin-bottom: 12px !important; }
#quote input[type=file] {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #56616b;
  font: 400 12px/1.5 Manrope, Arial, sans-serif;
}
#quote input[type=file]::file-selector-button {
  margin-right: 12px;
  padding: 9px 12px;
  min-height: 40px;
  border: 1px solid #c4cdd5;
  border-radius: 8px;
  background: #f5f7f9;
  color: #242424;
  font: 600 13px/1.4 Manrope, Arial, sans-serif;
  cursor: pointer;
}
#quote .consent {
  gap: 10px;
  margin: 0;
  color: #3d4853;
  font-size: 13px;
  line-height: 1.5;
}
#quote .consent input { width: 20px; height: 20px; margin: 0; }
#quote .quote-policy {
  margin: 6px 0 12px 30px;
  color: #56616b;
  font-size: 12px;
  line-height: 1.5;
}
#quote .quote-policy a { color: #075a9d; text-underline-offset: 3px; }
#quote #quote-status:empty { display: none; }
#quote #quote-status { margin: 12px 0; font-size: 14px; line-height: 1.5; }
#quote-form > button[type=submit] {
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 15px;
}
#quote :is(input, textarea, button, summary, a):focus-visible,
.privacy-choice :is(button, a):focus-visible,
.privacy-settings:focus-visible { outline: 3px solid #0969bc; outline-offset: 3px; }
#quote ::selection, .privacy-choice ::selection { background: #d9eafa; color: #17374f; }
.privacy-choice {
  position: fixed;
  inset: auto auto max(20px, env(safe-area-inset-bottom)) 20px;
  z-index: 1000;
  width: min(460px, calc(100% - 40px));
  max-height: calc(100dvh - 40px);
  overflow: auto;
  box-sizing: border-box;
  padding: 20px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: #242424;
  box-shadow: 0 6px 32px #152c4533;
  font: 400 14px/1.5 Manrope, Arial, sans-serif;
}
.privacy-choice[hidden] { display: none; }
.privacy-choice__copy strong { display: block; font-size: 16px; line-height: 1.4; }
.privacy-choice p { margin: 8px 0 0; }
.privacy-choice__copy > p { max-width: 60ch; color: #46525e; }
.privacy-choice .privacy-choice__links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; font-size: 13px; }
.privacy-choice a { color: #075a9d; text-decoration: underline; text-underline-offset: 3px; }
.privacy-choice__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.privacy-choice button {
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #0969bc;
  border-radius: 8px;
  background: #fff;
  color: #075a9d;
  font: 600 14px/1.45 Manrope, Arial, sans-serif;
  cursor: pointer;
}
.privacy-choice button:hover { background: #edf5fc; }
.privacy-choice button:active { background: #d9eafa; }
.privacy-choice button:disabled { opacity: .65; cursor: wait; }
.privacy-choice__status:empty { display: none; }
.privacy-choice__status { font-size: 13px; }
.privacy-settings {
  display: inline-block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
@media (max-width: 640px) {
  #quote { width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 20px; border-radius: 16px; }
  #quote .dialog-title { font-size: 24px; }
  #quote .quote-intro { margin-bottom: 16px; }
  #quote .form-grid { gap: 12px; }
  #quote .quote-company .form-grid { grid-template-columns: 1fr; }
  #quote .consent { font-size: 13px; }
  .privacy-choice { inset: auto 12px max(12px, env(safe-area-inset-bottom)); width: auto; max-height: calc(100dvh - 24px); padding: 16px; }
  .privacy-choice__actions { gap: 8px; }
}
@media (max-width: 359px) {
  #quote .form-grid { grid-template-columns: 1fr; }
  #quote .form-grid > label:has([name=quantity]) { max-width: none; }
  .privacy-choice__actions { grid-template-columns: 1fr; }
}
