.customer-preview {
  position: fixed; inset: auto; top: var(--preview-top, 80px); left: var(--preview-left, 16px);
  width: min(384px, calc(100vw - 32px)); max-width: none; max-height: min(600px, calc(100dvh - var(--preview-top, 80px) - 16px));
  margin: 0; padding: 0; border: 0; border-radius: 14px; overflow: auto; overscroll-behavior: contain;
  background: var(--bg-surface, var(--dark)); color: var(--text-primary, var(--cream));
  box-shadow: var(--shadow-lg, 0 12px 40px var(--black)); font-family: var(--font-body, inherit); font-size: 15px; line-height: 1.45; font-weight: 400;
  text-align: start;
}
.customer-preview::backdrop { background: transparent; }
.customer-preview[open] { display: flex; flex-direction: column; }
.customer-preview-heading { display: flex; align-items: center; justify-content: space-between; padding-block: 12px; padding-inline: 20px 12px; gap: 12px; }
.customer-preview-heading h2 { font-family: inherit; font-size: 20px; font-weight: 600; line-height: 1.3; margin: 0; }
.customer-preview .customer-preview-close { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; flex-shrink: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }
.customer-preview-body { overflow-y: auto; min-height: 112px; }
.customer-preview .customer-preview-row { display: flex; align-items: center; width: 100%; min-height: 88px; gap: 14px; padding: 12px 20px; border: 0; border-radius: 0; border-top: 1px solid var(--border-subtle, var(--mid)); text-align: start; text-decoration: none; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.customer-preview .customer-preview-row:hover { background: var(--bg-elevated, var(--mid)); color: var(--accent, var(--gold)); }
.customer-preview .customer-preview-row:disabled { cursor: default; opacity: .65; }
.customer-preview-thumb { width: 64px; height: 64px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--bg-elevated, var(--mid)); color: var(--text-secondary, var(--warm-gray)); border-radius: 6px; overflow: hidden; }
.customer-preview-thumb img { width: 100%; height: 100%; object-fit: contain; background: white; }
.customer-preview-info { display: flex; flex: 1; flex-direction: column; min-width: 0; gap: 5px; }
.customer-preview-name { font-weight: 500; overflow-wrap: anywhere; }
.customer-preview-detail, .customer-preview-note { font-size: 13px; color: var(--text-secondary, var(--warm-gray)); }
.customer-preview-price { font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.customer-preview-status { margin: 0; padding: 24px 20px; color: var(--text-secondary, var(--warm-gray)); }
.customer-preview-status[hidden] { display: none; }
.customer-preview-footer { padding: 16px 20px 20px; border-top: 1px solid var(--border-subtle, var(--mid)); flex-shrink: 0; }
.customer-preview-total { display: flex; justify-content: space-between; gap: 16px; font-weight: 600; }
.customer-preview-note { margin: 8px 0 12px; }
.customer-preview .customer-preview-all, .customer-preview .customer-preview-checkout { display: flex; min-height: 44px; align-items: center; justify-content: center; font-family: inherit; font-size: 15px; font-weight: 500; line-height: 1.4; text-decoration: none; color: var(--accent, var(--gold)); border: 0; background: transparent; }
.customer-preview .customer-preview-checkout { margin-top: 8px; border-radius: 6px; background: var(--accent, var(--gold)); color: var(--text-on-solid, var(--black)); }
.customer-preview :is(a, button):focus-visible { outline: 2px solid var(--accent, var(--gold)); outline-offset: -3px; }
@media (max-width: 639px) {
  .customer-preview { top: auto; bottom: 0; left: 0; width: 100%; max-height: min(80dvh, 640px); border-radius: 18px 18px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .customer-preview::backdrop { background: var(--overlay, var(--black)); opacity: .55; }
}
