.aa-quote-guidance, .aa-quote-draft {
  grid-column: 1 / -1;
  min-width: 0;
}
.aa-quote-guidance { margin: 0; font-size: .875rem; line-height: 1.5; }
.aa-quote-draft {
  margin-top: 8px;
  padding: 16px;
  border: 1px solid #b9dce9;
  background: #f3f9fb;
  color: #111315;
}
.aa-quote-draft[hidden] { display: none; }
.aa-quote-draft p { margin: 7px 0 10px; font-size: .875rem; line-height: 1.5; }
.aa-quote-draft textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 8rem;
  padding: 8px;
  resize: vertical;
  font: inherit;
}
.aa-quote-draft .aa-draft-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.aa-quote-draft .aa-draft-actions > :is(button, a) {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #111315;
  background: #111315;
  color: #fff !important;
  font: 700 .875rem Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.aa-quote-draft .aa-draft-status:empty { display: none; }

/* Keep product enquiry forms legible and aligned at normal browser zoom. */
.quote-form {
  align-items: start;
  gap: 16px;
  border-color: #b8cbd2;
}
.quote-form label {
  gap: 7px;
  color: #26343a;
  font-size: 12px;
  line-height: 1.35;
}
.quote-form input,
.quote-form select,
.quote-form textarea {
  min-height: 44px;
  border-color: #84969d;
  color: #111315;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}
.quote-form input::placeholder,
.quote-form textarea::placeholder {
  color: #66747a;
  opacity: 1;
}
.quote-form input:focus-visible,
.quote-form select:focus-visible,
.quote-form textarea:focus-visible {
  border-color: #007da8;
  outline: 3px solid rgba(0, 157, 221, .24);
  outline-offset: 1px;
}
.quote-form textarea { min-height: 88px; }
.quote-actions .btn:disabled {
  cursor: not-allowed;
  opacity: 1;
  border-color: #a9b7bc;
  background: #e3eaed;
  color: #46545a;
}
.quote-fine {
  color: #4d5b61;
  font-size: 11px;
  line-height: 1.5;
}
.quote-upload {
  color: #3f5057;
  font-size: 12px;
}

/* Category pages use three legacy form class names. Keep all of them equally
   readable and aligned at 100% browser zoom. */
:is(.aat-quote-form, .quote .form) {
  align-items: start !important;
  gap: 16px !important;
  color: #26343a !important;
}
:is(.aat-quote-form, .quote .form) > label {
  align-self: start !important;
  gap: 7px !important;
  color: #26343a !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}
:is(.aat-quote-form, .quote .form) > label > span,
:is(.aat-quote-form, .quote .form) legend {
  color: #26343a !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}
:is(.aat-quote-form, .quote .form) :is(input, select, textarea) {
  box-sizing: border-box !important;
  min-height: 44px !important;
  border-color: #84969d !important;
  background: #fff !important;
  color: #111315 !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
}
:is(.aat-quote-form, .quote .form) :is(input, textarea)::placeholder {
  color: #66747a !important;
  opacity: 1 !important;
}
:is(.aat-quote-form, .quote .form) :is(input, select, textarea):focus-visible {
  border-color: #007da8;
  outline: 3px solid rgba(0, 157, 221, .24);
  outline-offset: 1px;
}
:is(.aat-quote-form, .quote .form) textarea {
  min-height: 96px !important;
}
:is(.aat-quote-form, .quote .form) fieldset {
  align-self: stretch;
  gap: 9px;
}
:is(.aat-quote-form, .quote .form) fieldset label {
  color: #26343a !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}
:is(.aat-quote-form, .quote .form) fieldset input[type="checkbox"] {
  width: 18px !important;
  min-height: 18px !important;
}
:is(.aat-quote-form, .quote .form) :is(.aat-submit, .submit) {
  align-self: end;
  color: #26343a;
}
:is(.aat-quote-form, .quote .form) :is(.aat-submit, .submit) button {
  min-height: 44px !important;
  font-family: inherit !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
}
:is(.aat-quote-form, .quote .form) :is(.aat-submit, .submit) button:disabled {
  cursor: not-allowed;
  opacity: 1 !important;
  border-color: #a9b7bc !important;
  background: #e3eaed !important;
  color: #46545a !important;
}
:is(.aat-quote-form, .quote .form) :is(.aat-submit, .submit) small,
:is(.aat-quote-form, .quote .form) .aa-quote-guidance {
  color: #4d5b61 !important;
  font-size: 11px !important;
  line-height: 1.5 !important;
}

/* The apparel category template places its quote form on a dark purple panel.
   Keep headings, labels and guidance legible without changing the white input
   surfaces or the light-background forms used by the other product pages. */
.aat-quote-panel,
.aat-quote-panel .aat-quote-intro,
.aat-quote-panel .aat-quote-intro h2 {
  color: #fff !important;
}
.aat-quote-panel .aat-quote-intro p,
.aat-quote-panel .aat-quote-form,
.aat-quote-panel .aat-quote-form > label,
.aat-quote-panel .aat-quote-form > label > span,
.aat-quote-panel .aat-quote-form legend,
.aat-quote-panel .aat-quote-form .aat-submit {
  color: #f4f7fb !important;
}
.aat-quote-panel .aat-eyebrow {
  color: #8ce3ff !important;
}
.aat-quote-panel .aat-quote-form :is(.aat-submit small, .aa-quote-guidance) {
  color: #dce7ed !important;
}
.aat-quote-panel .aat-quote-form fieldset label {
  color: #26343a !important;
}

@media (max-width: 700px) {
  :is(.aat-quote-form, .quote .form) {
    grid-template-columns: 1fr !important;
  }
  :is(.aat-quote-form, .quote .form) > * {
    grid-column: 1 / -1;
  }
}
