.summary-sheet {
  color: #443022;
  background: #f6f0e3;
  padding: clamp(1.15rem, 4vw, 2.5rem);
  border: 1px solid #ddd2c0;
  font-family: Arial, sans-serif;
  font-size: .88rem;
  line-height: 1.5;
  text-align: start;
}
.summary-header { text-align: center; margin-block-end: 1.75rem; }
.summary-logo { position: relative; width: 190px; aspect-ratio: 495 / 175; overflow: hidden; margin-inline: auto; }
.summary-logo .summary-logo-image { position: absolute; width: 238.58585859%; height: auto; max-width: none; left: -69.6969697%; top: -294.28571429%; }
.summary-eyebrow { margin: 1.1rem 0 .5rem; font-size: .66rem; letter-spacing: .14em; }
.summary-title { font: italic 2rem/1.1 Georgia, serif; margin: .4rem 0 .85rem; color: #443022; }
.summary-sheet[dir="rtl"] .summary-title { font: 700 1.7rem/1.4 Arial, sans-serif; }
.summary-sheet[dir="rtl"] .summary-eyebrow { letter-spacing: 0; }
.summary-date { color: #705947; font-size: .72rem; }
.summary-table { border-collapse: collapse; width: 100%; table-layout: fixed; }
.summary-table th, .summary-table td { padding: .85rem .3rem; border-block-end: 1px solid #ddd2c0; vertical-align: top; text-align: start; }
.summary-table thead th { font-size: .68rem; font-weight: normal; color: #705947; border-block-start: 1px solid #cdbfaa; }
.summary-table th:first-child { width: 48%; padding-inline-start: 0; }
.summary-table th:nth-child(2) { width: 10%; }
.summary-table th:nth-child(3), .summary-table th:nth-child(4) { width: 21%; }
.summary-table .summary-number { text-align: end; }
.summary-product { font-weight: normal; overflow-wrap: anywhere; }
.summary-product-name { display: block; font-weight: 600; }
.summary-variant { display: block; font-size: .78rem; color: #705947; margin-block-start: .3rem; }
.summary-amount { white-space: nowrap; font-variant-numeric: tabular-nums; font-size: .78rem; }
.summary-total { display: flex; justify-content: space-between; gap: 1rem; font-weight: 700; margin-block-start: 1rem; padding: .9rem 1rem; background: #eae4d3; }
.summary-footer { text-align: center; font-size: .78rem; color: #705947; margin-block-start: 1.7rem; }
.summary-footer p { margin: .55rem 0; }
.summary-notice, .summary-next { color: #443022; font-weight: 600; }
.summary-tagline { padding-block-start: .75rem; font-size: .7rem; }
.summary-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
#print-summary { display: none; }
.export-dialog { box-sizing: border-box; width: min(620px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); border: 1px solid #c9bba3; border-radius: 1.1rem; padding: 2rem; color: #443022; background: #f6f0e3; box-shadow: 0 20px 90px #2e201a35; overflow-y: auto; }
.export-dialog::backdrop { background: #30231b80; backdrop-filter: blur(3px); }
.export-dialog h2 { padding-inline-end: 1.7rem; font: italic 1.9rem/1.2 Georgia, serif; margin: .5rem 0 1rem; }
.export-dialog[dir="rtl"] h2 { font: 700 1.5rem/1.4 Arial, sans-serif; }
.export-help { font: .9rem/1.65 Arial, sans-serif; color: #705947; }
.export-close { position: absolute; inset-inline-end: .65rem; inset-block-start: .65rem; width: 44px; height: 44px; padding: 0; background: transparent; color: #443022; border: 0; border-radius: 50%; font: 1.8rem Arial, sans-serif; cursor: pointer; }
.export-close:hover { background: #e8dfcd; }
.export-dialog :focus-visible { outline: 3px solid #737f49; outline-offset: 3px; }
.export-copy-text { box-sizing: border-box; width: 100%; min-height: 260px; max-height: 45dvh; border: 1px solid #b8a78d; border-radius: .5rem; padding: 1rem; background: #fffaf0; color: #443022; font: .87rem/1.65 Arial, sans-serif; resize: vertical; margin: .5rem 0 1rem; }
.export-button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: .75rem 1.2rem; color: #fffaf0; background: #493122; border: 1px solid #493122; border-radius: .3rem; text-decoration: none; font: 600 .86rem/1.3 Arial, sans-serif; cursor: pointer; }
.export-button:hover { background: #644632; color: #fffaf0; }
.export-image-page { margin: 1.5rem 0 0; }
.export-image-page img { display: block; width: 100%; height: auto; border: 1px solid #ddd2c0; }
.export-image-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; margin-block-start: .75rem; }
.pdf-preview { margin-block-start: 1.25rem; }
.export-open { font: .88rem Arial, sans-serif; color: #493122; text-underline-offset: .2em; }
@media (max-width: 440px) {
  .summary-sheet { padding: 1rem .8rem; }
  .summary-title { font-size: 1.65rem; }
  .summary-table th:first-child { width: 43%; }
  .summary-table th:nth-child(2) { width: 11%; }
  .summary-table th:nth-child(3), .summary-table th:nth-child(4) { width: 23%; }
  .summary-amount { font-size: .68rem; }
  .summary-product-name { font-size: .79rem; }
  .summary-variant { font-size: .71rem; }
  .export-dialog { padding: 1.4rem 1rem; }
}
@media print {
  @page { size: A4 portrait; margin: 14mm; }
  html, body { margin: 0 !important; padding: 0 !important; background: white !important; overflow: visible !important; height: auto !important; }
  body > :not(#print-summary) { display: none !important; }
  dialog, dialog::backdrop { display: none !important; }
  #print-summary { display: block !important; position: static !important; color: #30231b !important; width: 100% !important; }
  .summary-sheet { print-color-adjust: exact; -webkit-print-color-adjust: exact; border: 0; padding: 0; background: white; font-size: 10pt; }
  .summary-header { break-inside: avoid; margin-block-end: 7mm; }
  .summary-logo { width: 48mm; }
  .summary-title { font-size: 23pt; }
  .summary-date { font-size: 9pt; }
  .summary-table { width: 100%; }
  .summary-table thead { display: table-header-group; }
  .summary-table tr { break-inside: avoid; page-break-inside: avoid; }
  .summary-table th, .summary-table td { padding-block: 3mm; }
  .summary-table thead th { font-size: 9pt; }
  .summary-product-name { font-size: 10pt; }
  .summary-variant, .summary-amount { font-size: 9pt; }
  .summary-total { break-inside: avoid; page-break-inside: avoid; margin-block-start: 5mm; font-size: 12pt; }
  .summary-footer { break-inside: avoid; page-break-inside: avoid; font-size: 9pt; }
  .summary-tagline { font-size: 8pt; }
}
.summary-logo .summary-logo-image[src*="wordmark.svg"]{position:static;width:100%;height:100%;max-width:100%;object-fit:contain}.summary-fulfillment{margin-block:20px;overflow-wrap:anywhere}.summary-fulfillment p{margin-block:8px}
