.quote-checkout {
  padding: 70px 6%;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 8%;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.quote-form-heading h2 {
  font-size: 48px;
}
.quote-form-heading > p {
  max-width: 370px;
  color: var(--muted);
}
#quote-selection-summary {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
#quote-client-form {
  min-width: 0;
  display: grid;
  gap: 12px;
}
#quote-client-form label {
  display: grid;
  gap: 7px;
  font-size: 13px;
}
.quote-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
#quote-client-form input,
#quote-client-form textarea {
  width: 100%;
  min-width: 0;
  padding: 12px;
  background: var(--bg);
  border: 1px solid #c4b7a3;
  color: var(--ink);
  border-radius: 0;
  font: inherit;
  caret-color: var(--accent);
}
#quote-client-form textarea {
  min-height: 95px;
  max-height: 400px;
  resize: vertical;
}
#quote-client-form [aria-invalid='true'] {
  border-color: #7c352b;
}
.quote-field-error {
  color: #7c352b;
  font-size: 12px;
  line-height: 1.5;
  min-height: 18px;
  margin: 0;
}
.quote-help {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 75ch;
  margin: 4px 0 14px;
}
.quote-form-actions {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.quote-form-actions .button {
  min-height: 48px;
}
#generate-quote:disabled,
#quote-pdf-download:disabled {
  cursor: wait;
  background: var(--accent);
  transform: none;
}
.quote-preview {
  padding: 60px 6% 75px;
  background: var(--bg);
}
.quote-preview-toolbar {
  max-width: 1000px;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.quote-preview-toolbar h2 {
  font-size: 38px;
  margin: 0 0 12px;
}
.quote-preview-toolbar p {
  font-size: 12px;
  color: var(--muted);
  max-width: 400px;
  margin: 0;
  overflow-wrap: anywhere;
}
.quote-preview-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.quote-preview-actions .button {
  min-height: 48px;
}
#quote-download-error {
  max-width: 1000px;
  margin: 0 auto 10px;
}
.quote-document {
  max-width: 1000px;
  margin: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.quote-doc-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
  padding: 30px 34px;
  background: var(--bg);
  border-bottom: 2px solid var(--accent);
}
.quote-doc-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}
.quote-doc-brand img {
  width: 64px;
  height: 70px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.quote-doc-brand strong {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.quote-doc-brand span {
  display: block;
  font-size: 12px;
  color: var(--accent);
  margin-top: 3px;
}
.quote-reference {
  text-align: right;
}
.quote-reference h3 {
  font: 28px/1.1 var(--serif);
  margin: 0 0 10px;
  color: var(--accent);
}
.quote-reference > strong {
  font-size: 12px;
  font-weight: 500;
  display: block;
}
.quote-reference > span {
  font-size: 12px;
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.quote-doc-body {
  padding: 32px 34px;
}
.quote-doc-meta {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 35px;
  margin-bottom: 32px;
}
.quote-doc-body h4 {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 10px;
}
.quote-customer-name {
  font: 27px/1.15 var(--serif);
  margin: 0 0 14px;
}
.quote-doc-meta dl {
  margin: 0;
}
.quote-doc-meta dl > div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  padding: 3px 0;
  font-size: 12px;
}
.quote-doc-meta dt {
  color: var(--muted);
}
.quote-doc-meta dd {
  margin: 0;
}
.quote-doc-terms {
  background: var(--bg);
  padding: 15px !important;
  align-self: start;
}
.quote-doc-terms > div {
  grid-template-columns: 100px 1fr !important;
}
.quote-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.quote-table caption {
  text-align: left;
  font: 25px var(--serif);
  padding: 0 0 16px;
  color: var(--ink);
}
.quote-table th {
  font-weight: 500;
  background: var(--accent);
  color: var(--paper);
  font-size: 12px;
  padding: 11px 9px;
  text-align: right;
  white-space: nowrap;
}
.quote-table th:nth-child(-n + 2) {
  text-align: left;
}
.quote-table td {
  padding: 15px 9px;
  vertical-align: top;
  text-align: right;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.quote-table td:nth-child(-n + 2) {
  text-align: left;
}
.quote-table tbody tr:nth-child(even) {
  background: var(--bg);
}
.quote-table td:not(.quote-item-description) {
  white-space: nowrap;
}
.quote-item-description {
  min-width: 160px;
}
.quote-item-description strong {
  font-weight: 600;
  display: block;
  font-size: 13px;
  margin-bottom: 5px;
}
.quote-item-description span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}
.quote-doc-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  margin: 28px 0;
}
.quote-business-contact {
  font-size: 13px;
}
.quote-business-contact > a {
  display: block;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.quote-business-contact p {
  margin-bottom: 12px;
}
.quote-totals {
  margin: 0;
  padding: 18px 20px;
  background: var(--accent);
  color: var(--paper);
}
.quote-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid #ffffff30;
  font-size: 13px;
}
.quote-totals > div:last-child {
  font-size: 18px;
  border: 0;
  font-weight: 600;
  padding-top: 13px;
}
.quote-totals dd {
  margin: 0;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.quote-commercial {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.quote-commercial h4,
.quote-notes h4 {
  font: 25px/1.15 var(--serif);
  font-weight: 400;
}
.quote-commercial ul {
  padding-left: 18px;
  margin: 15px 0 25px;
  line-height: 1.7;
  color: var(--muted);
  font-size: 13px;
}
.quote-commercial li {
  margin: 6px 0;
}
.quote-notes p {
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.7;
}
.quote-thanks {
  font: 27px var(--serif);
  color: var(--accent);
  margin: 30px 0 0;
}
.quote-doc-footer {
  padding: 20px 34px !important;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.quote-doc-footer strong {
  font-weight: 500;
  color: var(--accent);
  font-size: 14px;
}
.quote-bottom-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  max-width: 1000px;
  margin: 25px auto 15px;
}
.quote-preview > .quote-help {
  max-width: 1000px;
  margin: 0 auto;
}
.quote-preview [tabindex='-1']:focus,
.quote-checkout [tabindex='-1']:focus {
  outline: 0;
}
@media (max-width: 1050px) {
  .quote-checkout {
    gap: 5%;
    grid-template-columns: 0.9fr 1.2fr;
  }
  .quote-form-row {
    grid-template-columns: 1fr;
  }
  .quote-preview-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .quote-doc-body {
    padding: 26px 24px;
  }
  .quote-doc-header {
    padding: 26px 24px;
  }
  .quote-doc-brand strong {
    font-size: 22px;
  }
  .quote-doc-meta {
    gap: 22px;
  }
  .quote-table th,
  .quote-table td {
    padding-inline: 7px;
  }
}
@media (max-width: 760px) {
  .quote-checkout {
    padding: 40px 6%;
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .quote-form-heading h2 {
    font-size: 40px;
    margin-bottom: 18px;
  }
  .quote-form-heading > p {
    font-size: 14px;
  }
  #quote-client-form input,
  #quote-client-form textarea {
    font-size: 16px;
  }
  .quote-form-actions {
    gap: 18px;
  }
  .quote-form-actions > .button {
    width: 100%;
    justify-content: center;
  }
  .quote-preview {
    padding: 40px 4% 55px;
  }
  .quote-preview-toolbar h2 {
    font-size: 35px;
  }
  .quote-preview-actions {
    width: 100%;
  }
  .quote-preview-actions .button {
    flex: 1;
    justify-content: center;
    padding-inline: 15px;
  }
  .quote-doc-header {
    grid-template-columns: 1fr;
    padding: 22px 20px;
    gap: 22px;
  }
  .quote-doc-brand {
    gap: 15px;
  }
  .quote-doc-brand img {
    width: 50px;
    height: 56px;
  }
  .quote-doc-brand strong {
    font-size: 25px;
  }
  .quote-reference {
    text-align: left;
  }
  .quote-reference h3 {
    font-size: 28px;
  }
  .quote-doc-body {
    padding: 22px 18px;
  }
  .quote-doc-meta {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 25px;
  }
  .quote-doc-meta dl > div {
    grid-template-columns: 75px 1fr;
  }
  .quote-doc-terms > div {
    grid-template-columns: 110px 1fr !important;
  }
  .quote-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .quote-table tbody {
    display: block;
  }
  .quote-table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--line);
    padding: 15px 0;
    gap: 12px;
  }
  .quote-table tbody tr:nth-child(even) {
    background: transparent;
  }
  .quote-table td {
    display: block;
    text-align: left;
    padding: 0;
    border: 0;
    white-space: normal !important;
    font-size: 13px;
  }
  .quote-table td:first-child {
    grid-column: 1/-1;
    font-size: 12px;
    color: var(--muted);
  }
  .quote-table td.quote-item-description {
    grid-column: 1/-1;
  }
  .quote-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    color: var(--accent);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 3px;
  }
  .quote-table td:first-child::before {
    display: inline;
    margin-right: 8px;
  }
  .quote-item-description strong {
    font-size: 14px;
  }
  .quote-doc-summary {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .quote-totals {
    padding: 15px 18px;
  }
  .quote-doc-footer {
    padding: 20px !important;
  }
  .quote-bottom-actions .button {
    flex: 1;
    justify-content: center;
  }
  .quote-commercial h4 {
    font-size: 26px;
  }
  .quote-thanks {
    font-size: 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .quote-checkout,
  .quote-preview {
    scroll-behavior: auto !important;
  }
}
@media print {
  body > .header,
  body > .skip,
  main > section:not(#quote-preview),
  main > .stock-guidance,
  body > footer,
  .quote-preview-toolbar,
  .quote-bottom-actions,
  .quote-preview > .quote-help,
  #quote-download-error,
  .toast {
    display: none !important;
  }
  #quote-preview {
    display: block !important;
    padding: 0;
    background: white;
  }
  .quote-document {
    border: 0;
    max-width: none;
  }
  .quote-table tr {
    break-inside: avoid;
  }
  .quote-doc-footer {
    break-inside: avoid;
  }
}
