.checkout-page{--cream:#fff;--paper:#f5f5f5;--ink:#252525;--muted:#626262;--line:#dedede;--wine:#65313e;--sans:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#fff;color:var(--ink);font-family:var(--sans);font-size:14px;line-height:1.45}
.checkout-page [hidden]{display:none!important}
.checkout-page h1,.checkout-page h2,.checkout-page h3{font-family:inherit;font-weight:600;line-height:1.3;letter-spacing:0}
.checkout-main{width:calc(100% - 32px);max-width:960px;margin:0 auto;padding:18px 0 28px}
.checkout-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.checkout-header h1{font-size:22px}
.checkout-header p{font-size:12px;color:var(--muted);margin-top:2px}
.checkout-header-actions{display:flex;align-items:center;gap:12px}
.checkout-header-actions>a{display:inline-flex;align-items:center;min-height:44px;font-size:12px;text-decoration:underline;text-underline-offset:3px}
.checkout-header-actions .checkout-button{font-size:12px;padding-inline:12px}
.checkout-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr);gap:24px;align-items:start}
.checkout-register,.checkout-basket{min-width:0}
.checkout-barcode label{display:block;font-size:12px;font-weight:600;margin-bottom:4px}
.checkout-barcode-row{display:flex;align-items:center;gap:8px}
.checkout-barcode output{display:block;flex:1;min-width:0;min-height:23px;font-size:16px;line-height:1.4;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;user-select:text}
.checkout-barcode output:empty::before{content:"Not scanned yet";color:var(--muted);font-size:13px}
.checkout-button{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:9px 15px;border:1px solid #bcbcbc;border-radius:4px;font:inherit;font-size:14px;line-height:1.4;font-weight:600;cursor:pointer}
.checkout-primary{background:var(--wine);border-color:var(--wine);color:#fff}
.checkout-primary:hover{background:#512733}
.checkout-secondary{background:#fff;color:var(--ink)}
.checkout-secondary:hover{background:var(--paper)}
.checkout-button:focus-visible,.checkout-choice:focus-visible,.checkout-remove:focus-visible{outline:2px solid var(--wine);outline-offset:3px}
.checkout-button:disabled{cursor:default;opacity:.45}
.checkout-barcode-row .checkout-button{flex:none}
.checkout-register .scanner-panel{max-width:none;margin-top:14px;padding:12px;border-color:var(--line);border-radius:4px;background:#fff;scroll-margin-top:12px}
.checkout-page .scanner-heading{gap:12px;margin-bottom:8px}
.checkout-page .scanner-heading h2{font-size:16px;color:var(--ink)}
.checkout-page .scanner-status{font-size:13px;line-height:1.45;margin-top:10px}
.checkout-page .scanner-privacy{font-size:11px;line-height:1.4;margin-top:8px}
.checkout-page .scanner-retry{margin-top:8px;border-color:#bcbcbc;border-radius:4px}
.checkout-status{font-size:13px;line-height:1.5;color:var(--wine);margin:12px 0;overflow-wrap:anywhere}
.checkout-status:empty{margin:0}
.checkout-candidate{margin-top:14px;padding:13px;border:1px solid var(--line);border-radius:4px;scroll-margin-top:12px}
.checkout-candidate:focus{outline:none}
.checkout-section-heading{margin-bottom:10px}
.checkout-section-heading h2{font-size:14px}
.checkout-placeholder{font-size:13px;line-height:1.5;color:var(--muted)}
.checkout-product{display:grid;grid-template-columns:minmax(0,1fr);gap:5px;min-width:0}
.checkout-product:has(>.checkout-product-photo){grid-template-columns:72px minmax(0,1fr);column-gap:12px}
.checkout-product:has(>.checkout-product-photo)>:not(.checkout-product-photo){grid-column:2}
.checkout-product-photo{grid-column:1;grid-row:1/span 4;max-width:72px;width:72px;height:96px;object-fit:contain}
.checkout-product-photo img{width:100%;height:100%;object-fit:contain}
.checkout-product-name{font-size:16px;overflow-wrap:anywhere}
.checkout-product-meta{font-size:12px;line-height:1.45;color:var(--muted);overflow-wrap:anywhere}
.checkout-source{font-size:11px;color:var(--muted)}
.checkout-price{font-size:23px;font-weight:600;line-height:1.3;font-variant-numeric:tabular-nums}
.checkout-unpriced{font-size:12px;line-height:1.45;color:var(--muted)}
.checkout-tax-choice{display:flex;align-items:center;gap:8px;min-height:44px;font-size:12px;line-height:1.4;color:var(--muted);margin-top:3px}
.checkout-tax-choice input{width:17px;height:17px;margin:0;accent-color:var(--wine);flex:none}
.checkout-tax-choice input:focus-visible{outline:2px solid var(--wine);outline-offset:3px}
.checkout-choices{display:grid;gap:8px;margin-top:10px}
.checkout-choice{appearance:none;display:block;width:100%;padding:10px 12px;border:1px solid #bcbcbc;border-radius:4px;background:#fff;font:inherit;text-align:left;color:var(--ink);cursor:pointer;overflow-wrap:anywhere}
.checkout-choice:hover{background:var(--paper);border-color:var(--wine)}
.checkout-choice .checkout-product-name{font-size:14px}
.checkout-choice .checkout-price{font-size:17px}
.checkout-scan-actions{display:grid;grid-template-columns:1fr 1.3fr;gap:8px;margin-top:10px}
.checkout-basket{padding:14px;border:1px solid var(--line);border-radius:4px;background:#fafafa}
.checkout-basket-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:12px}
.checkout-basket-heading h2{font-size:16px}
.checkout-count{font-size:12px;color:var(--muted);white-space:nowrap}
.checkout-items{list-style:none;padding:0;margin:0}
.checkout-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 12px;padding:10px 0;border-bottom:1px solid var(--line);min-width:0}
.checkout-line:first-child{padding-top:0}
.checkout-line-details{grid-row:1/span 2;min-width:0;overflow-wrap:anywhere}
.checkout-line-details h3,.checkout-line-details strong{display:block;font:600 13px/1.45 var(--sans)}
.checkout-line-details p{font-size:11px;color:var(--muted);line-height:1.4;margin-top:3px}
.checkout-line-price{font-size:14px;font-weight:600;line-height:1.5;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.checkout-remove{appearance:none;min-height:44px;padding:4px 0;border:0;background:transparent;color:var(--wine);font:inherit;font-size:12px;text-decoration:underline;text-underline-offset:3px;cursor:pointer;justify-self:start}
.checkout-line>.checkout-remove{grid-column:2;justify-self:end}
.checkout-totals{margin:15px 0;font-size:13px}
.checkout-totals>div{display:flex;align-items:baseline;justify-content:space-between;gap:14px;margin-top:8px}
.checkout-totals dt{color:var(--muted)}
.checkout-totals dt span{font-size:11px}
.checkout-totals dd{margin:0;font-variant-numeric:tabular-nums;white-space:nowrap}
.checkout-totals .checkout-total{border-top:1px solid var(--line);padding-top:10px;margin-top:11px;font-size:19px;font-weight:600}
.checkout-total dt{color:var(--ink)}
.checkout-finish{width:100%}
.checkout-notice{border:1px solid var(--line);padding:12px;font-size:13px;margin-bottom:15px}
.checkout-notice a{text-decoration:underline}
.checkout-receipt{max-width:620px;margin:0 auto;padding:20px;border:1px solid var(--line);border-radius:4px;background:#fff;scroll-margin-top:12px}
.checkout-receipt:focus{outline:none}
.checkout-receipt-heading{border-bottom:1px dashed #bcbcbc;padding-bottom:14px;margin-bottom:14px}
.checkout-receipt-heading h2{font-size:20px}
.checkout-receipt-heading p{font-size:11px;color:var(--muted);margin-top:4px}
.checkout-receipt-table{border-collapse:collapse;width:100%;font-size:13px;line-height:1.45;table-layout:fixed}
.checkout-receipt-table th{text-align:left;font-weight:600;font-size:11px;color:var(--muted);padding:0 0 8px;border-bottom:1px solid var(--line)}
.checkout-receipt-table td{padding:10px 7px 10px 0;vertical-align:top;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.checkout-receipt-table th:last-child,.checkout-receipt-table td:last-child{text-align:right;padding-right:0;width:80px;font-variant-numeric:tabular-nums}
.checkout-receipt-table th:nth-child(2),.checkout-receipt-table td:nth-child(2){width:35px;text-align:center}
.checkout-receipt-table small{display:block;color:var(--muted);font-size:10px}
.checkout-receipt-product{display:flex;align-items:flex-start;gap:8px;min-width:0}
.checkout-receipt-photo{flex:none;width:48px;height:64px;object-fit:contain}
.checkout-receipt-description{min-width:0;overflow-wrap:anywhere}
.checkout-receipt-totals{margin-top:15px;font-size:13px}
.checkout-receipt-totals>div{display:flex;justify-content:space-between;gap:15px;margin-top:8px}
.checkout-receipt-totals dt{color:var(--muted)}
.checkout-receipt-totals dd{margin:0;font-variant-numeric:tabular-nums;white-space:nowrap}
.checkout-receipt-totals .checkout-total{border-top:1px solid var(--line);padding-top:10px;margin-top:11px;font-size:20px;font-weight:600}
.checkout-receipt-note{font-size:11px;line-height:1.45;color:var(--muted);margin-top:12px;overflow-wrap:anywhere}
.checkout-receipt-note a{text-decoration:underline;text-underline-offset:3px}
.checkout-receipt-actions{display:flex;flex-wrap:wrap;gap:8px;border-top:1px dashed #bcbcbc;padding-top:15px;margin-top:18px}
.checkout-receipt-actions .checkout-button{flex:1;font-size:12px;white-space:nowrap;padding-inline:11px}

@media(max-width:700px){
  .checkout-main{width:calc(100% - 24px);padding-top:10px}
  .checkout-header{margin-bottom:14px}
  .checkout-header h1{font-size:20px}
  .checkout-layout{grid-template-columns:minmax(0,1fr);gap:16px}
  .checkout-basket{padding:12px}
  .checkout-receipt{padding:14px 12px}
  .checkout-receipt-actions{display:grid;grid-template-columns:1fr 1fr}
  .checkout-receipt-actions .checkout-primary{grid-column:1/-1}
}

@media print{
  @page{margin:14mm}
  html{scroll-behavior:auto}
  body.checkout-page{background:white;color:#111;font-size:11pt}
  .checkout-header,.checkout-receipt-actions,.checkout-page noscript,.checkout-page .skip-link,#checkout-workspace{display:none!important}
  #checkout-print-status{display:none!important}
  .checkout-main{width:100%;max-width:none;margin:0;padding:0}
  .checkout-receipt{width:100%;max-width:170mm;border:0;margin:0 auto;padding:0;background:white}
  .checkout-receipt-table{font-size:10pt}
  .checkout-receipt-table tr{break-inside:avoid}
  .checkout-receipt-table thead{display:table-header-group}
  .checkout-receipt-photo{width:12mm;height:16mm}
  .checkout-receipt-totals{break-inside:avoid}
  .checkout-receipt-note{color:#444;font-size:9pt}
  .checkout-receipt a{color:inherit;text-decoration:none}
}
