.qp-preview-wrap {
  container: quote-preview / inline-size;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}
.qp-sheet {
  --qp-accent: #1864d8;
  --qp-tint: #edf4ff;
  --qp-ink: #152d50;
  --qp-muted: #65748a;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 30px 34px 24px;
  color: var(--qp-ink);
  background: #fff;
  border: 1px solid #e4eaf1;
  border-radius: 3px;
  box-shadow: 0 8px 32px rgb(21 45 80 / 6%);
  font: 13px/1.5 Arial, Helvetica, sans-serif;
  text-align: left;
}
.qp-sheet *, .qp-sheet *::before, .qp-sheet *::after { box-sizing: border-box; }
.qp-sheet.qp-accent-green { --qp-accent: #128365; --qp-tint: #edf8f3; --qp-ink: #183c34; }
.qp-sheet.qp-accent-orange { --qp-accent: #c65a15; --qp-tint: #fff4e9; --qp-ink: #453022; }
.qp-sheet.qp-accent-purple { --qp-accent: #7652bd; --qp-tint: #f4effc; --qp-ink: #32244b; }
.qp-sheet.qp-font-classic { font-family: Georgia, "Times New Roman", serif; }
.qp-sheet .qp-header {
  position: static;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 0 0 22px;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #e4eaf1;
  box-shadow: none;
}
.qp-sheet .qp-brand { display: block; flex: 0 0 auto; }
.qp-sheet .qp-wordmark { font: 800 32px/1 Arial, Helvetica, sans-serif; letter-spacing: -1.5px; }
.qp-sheet .qp-brand-on { color: var(--qp-accent); }
.qp-sheet .qp-brand-tagline { display: block; margin-top: 8px; color: var(--qp-muted); font: 700 7px/1.3 Arial, sans-serif; letter-spacing: 1.35px; }
.qp-sheet .qp-dealer { display: grid; gap: 4px; max-width: 58%; margin-top: 2px; text-align: right; overflow-wrap: anywhere; }
.qp-sheet .qp-dealer strong { font-size: 12px; }
.qp-sheet .qp-dealer span { font-size: 10px; color: var(--qp-muted); }
.qp-sheet .qp-document-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 19px 0 11px; font-size: 9px; color: var(--qp-muted); }
.qp-sheet .qp-document-meta > span:last-child { text-align: right; }
.qp-sheet .qp-eyebrow { color: var(--qp-accent); font-size: 9px; font-weight: 700; letter-spacing: 1.1px; }
.qp-sheet .qp-title h2 { margin: 0; color: var(--qp-ink); font-family: inherit; font-size: 25px; font-weight: 700; line-height: 1.3; letter-spacing: -.5px; overflow-wrap: anywhere; }
.qp-sheet .qp-title p { margin: 5px 0 0; color: var(--qp-muted); font-size: 11px; }
.qp-sheet .qp-hero { position: relative; display: grid; place-items: center; height: 172px; margin: 9px 0 16px; padding: 3px 24px 11px; }
.qp-sheet .qp-vehicle-image { display: block; width: 100%; height: 100%; max-height: 161px; object-fit: contain; }
.qp-sheet .qp-hero figcaption { position: absolute; right: 0; bottom: 0; color: #8794a7; font-size: 8px; }
.qp-sheet .qp-price { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0; padding: 17px 20px; border-radius: 8px; background: var(--qp-accent); color: #fff; }
.qp-sheet .qp-price-main { min-width: 0; }
.qp-sheet .qp-price-main > span { display: block; font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.qp-sheet .qp-price-main > strong { display: block; margin-top: 4px; font-size: 29px; font-weight: 700; line-height: 1.3; white-space: nowrap; font-variant-numeric: tabular-nums; }
.qp-sheet .qp-price-terms { display: grid; flex: 0 1 225px; gap: 6px; min-width: 0; }
.qp-sheet .qp-price-terms .qp-detail { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 9px; padding: 0; border: 0; font-size: 9px; }
.qp-sheet .qp-price-terms .qp-detail-label { color: #fff; opacity: .88; }
.qp-sheet .qp-price-terms .qp-detail-value { color: #fff; white-space: nowrap; }
.qp-sheet .qp-fee-section { margin-top: 19px; }
.qp-sheet .qp-section-heading { margin: 0 0 11px; color: var(--qp-ink); font-family: inherit; font-size: 10px; font-weight: 700; line-height: 1.5; letter-spacing: .55px; }
.qp-sheet .qp-fee-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 23px; }
.qp-sheet .qp-fee-grid .qp-detail { display: flex; align-items: baseline; justify-content: space-between; gap: 7px; padding: 10px 0; border-bottom: 1px solid #e4eaf1; font-size: 10px; }
.qp-sheet .qp-detail-label { color: var(--qp-muted); overflow-wrap: anywhere; }
.qp-sheet .qp-detail-value { color: var(--qp-ink); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.qp-sheet .qp-total { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding: 19px 20px; border-radius: 8px; color: #fff; background: var(--qp-ink); }
.qp-sheet .qp-total-label { display: grid; gap: 4px; }
.qp-sheet .qp-total-label strong { font-size: 10px; font-weight: 700; letter-spacing: .4px; }
.qp-sheet .qp-total-label span { color: #dce4ed; font-size: 9px; }
.qp-sheet .qp-total-value { font-size: 28px; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.qp-sheet .qp-finance { margin-top: 20px; }
.qp-sheet .qp-finance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; padding: 13px 14px; border-radius: 7px; background: var(--qp-tint); }
.qp-sheet .qp-finance-grid .qp-detail { display: grid; gap: 4px; padding: 0; border: 0; }
.qp-sheet .qp-finance-grid .qp-detail-label { font-size: 9px; }
.qp-sheet .qp-finance-grid .qp-detail-value { color: var(--qp-accent); font-size: 17px; }
.qp-sheet .qp-finance-caption { margin: 9px 0 3px; color: var(--qp-ink); font-size: 9px; }
.qp-sheet .qp-small { margin: 4px 0 0; color: var(--qp-muted); font-size: 8px; line-height: 1.65; }
.qp-sheet .qp-gifts { margin-top: 20px; }
.qp-sheet .qp-gift-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 23px; margin: 0; padding: 0; list-style: none; }
.qp-sheet .qp-gift-list li { position: relative; margin: 0; padding-left: 17px; color: var(--qp-ink); font-size: 10px; overflow-wrap: anywhere; }
.qp-sheet .qp-gift-list li::before { position: absolute; top: 0; left: 0; color: var(--qp-accent); content: '✓'; font-weight: 700; }
.qp-sheet .qp-footer { display: block; width: 100%; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid #e4eaf1; background: transparent; color: var(--qp-muted); font-size: 9px; }
.qp-sheet .qp-contact { display: grid; gap: 3px; margin-bottom: 12px; overflow-wrap: anywhere; }
.qp-sheet .qp-contact-label { color: var(--qp-muted); font-size: 8px; font-weight: 700; letter-spacing: .6px; }
.qp-sheet .qp-contact strong { color: var(--qp-ink); font-size: 14px; font-weight: 700; }
.qp-sheet .qp-contact > span:last-child { font-size: 10px; }
.qp-sheet .qp-validity { margin: 0 0 6px; color: var(--qp-ink); font-size: 9px; font-weight: 700; }
.qp-sheet .qp-note { margin: 0; color: var(--qp-muted); font-size: 8px; line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }
.qp-sheet .qp-footer-brand { display: block; margin-top: 17px; text-align: center; color: var(--qp-accent); font-size: 9px; font-weight: 700; }
.qp-sheet.qp-style-compact .qp-hero { height: 135px; }
.qp-sheet.qp-style-compact .qp-vehicle-image { max-height: 125px; }
.qp-sheet.qp-style-compact .qp-fee-grid .qp-detail { padding: 8px 0; }
.qp-empty { display: grid; place-content: center; min-height: 360px; padding: 32px; border: 1px dashed #cdd7e5; border-radius: 10px; background: #fff; color: #52657e; text-align: center; }
.qp-empty strong { color: #152d50; }
.qp-empty p { margin: 8px 0 0; font-size: 13px; }

@container quote-preview (max-width: 600px) {
  .qp-sheet { padding: 24px; }
  .qp-sheet .qp-title h2 { font-size: 23px; }
  .qp-sheet .qp-price-main > strong { font-size: 25px; }
  .qp-sheet .qp-price-terms { flex-basis: 190px; }
  .qp-sheet .qp-price-terms .qp-detail { display: grid; justify-content: end; text-align: right; gap: 0; font-size: 8px; }
  .qp-sheet .qp-fee-grid { column-gap: 16px; }
  .qp-sheet .qp-fee-grid .qp-detail { flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 0; font-size: 9px; }
  .qp-sheet .qp-total-value { font-size: 25px; }
  .qp-sheet .qp-finance-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .qp-sheet .qp-finance-grid .qp-detail-value { font-size: 14px; }
}
@container quote-preview (max-width: 440px) {
  .qp-sheet { padding: 20px 17px; }
  .qp-sheet .qp-header { gap: 16px; padding-bottom: 18px; }
  .qp-sheet .qp-wordmark { font-size: 27px; }
  .qp-sheet .qp-brand-tagline { font-size: 6px; letter-spacing: .8px; }
  .qp-sheet .qp-dealer strong { font-size: 10px; }
  .qp-sheet .qp-dealer span { font-size: 8px; }
  .qp-sheet .qp-document-meta { margin-top: 15px; gap: 8px; font-size: 8px; }
  .qp-sheet .qp-eyebrow { font-size: 8px; letter-spacing: .5px; }
  .qp-sheet .qp-title h2 { font-size: 20px; }
  .qp-sheet .qp-title p { font-size: 10px; }
  .qp-sheet .qp-hero { height: 139px; padding: 0 3px 9px; }
  .qp-sheet .qp-vehicle-image { max-height: 128px; }
  .qp-sheet .qp-price { gap: 12px; padding: 14px; }
  .qp-sheet .qp-price-main > span { font-size: 7px; letter-spacing: .6px; }
  .qp-sheet .qp-price-main > strong { font-size: 21px; }
  .qp-sheet .qp-price-terms { flex-basis: 135px; }
  .qp-sheet .qp-price-terms .qp-detail { font-size: 7px; }
  .qp-sheet .qp-total { gap: 10px; padding: 15px 13px; }
  .qp-sheet .qp-total-label strong { font-size: 8px; }
  .qp-sheet .qp-total-label span { font-size: 7px; }
  .qp-sheet .qp-total-value { font-size: 21px; }
  .qp-sheet .qp-finance-grid { grid-template-columns: 1fr; padding: 10px 13px; gap: 9px; }
  .qp-sheet .qp-finance-grid .qp-detail { display: flex; justify-content: space-between; align-items: baseline; gap: 9px; }
  .qp-sheet .qp-finance-grid .qp-detail-value { font-size: 14px; }
  .qp-sheet .qp-gift-list { column-gap: 14px; }
  .qp-sheet .qp-gift-list li { font-size: 9px; padding-left: 14px; }
}
@container quote-preview (max-width: 340px) {
  .qp-sheet { padding: 16px 12px; }
  .qp-sheet .qp-price { display: grid; }
  .qp-sheet .qp-price-terms { display: flex; flex-wrap: wrap; justify-content: space-between; }
  .qp-sheet .qp-price-terms .qp-detail { text-align: left; }
  .qp-sheet .qp-total { align-items: flex-start; flex-direction: column; }
}
@media print {
  .qp-preview-wrap { max-width: none; width: 100%; container-type: normal; }
  .qp-sheet { width: 100%; padding: 10mm; border: 0; border-radius: 0; box-shadow: none; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .qp-sheet .qp-header, .qp-sheet .qp-title, .qp-sheet .qp-price, .qp-sheet .qp-total, .qp-sheet .qp-finance, .qp-sheet .qp-gifts, .qp-sheet .qp-footer { break-inside: avoid; }
  .qp-sheet .qp-detail, .qp-sheet .qp-gift-list li { break-inside: avoid; }
}
