#order-dialog.has-order-receipt {
  width: min(560px, calc(100% - 24px)); padding: 12px 18px 24px;
  background: transparent; border: 0; border-radius: 0; box-shadow: none;
  scrollbar-width: thin;
}
#order-dialog.has-order-receipt .order-form { display: none; }
.order-receipt { clear: both; position: relative; padding-top: 18px; color: #29251f; text-shadow: 0 1px #fff8; }
.order-receipt-slot {
  position: absolute; top: 0; left: -10px; right: -10px; height: 42px; border-radius: 10px;
  background: linear-gradient(#f4eee3, #c8bead); border: 1px solid #fff9;
  box-shadow: 0 5px 10px #0003;
}
.order-receipt-slot::after { content: ""; position: absolute; inset: 14px 6px 10px; background: #191713; border-radius: 4px; }
.order-receipt-feed { position: relative; overflow: hidden; padding-bottom: 14px; }
.order-receipt-sheet {
  isolation: isolate; position: relative; padding: 28px clamp(16px,5vw,36px) 32px; text-align: center;
  font-family: "Courier New", monospace; animation: receipt-print .8s cubic-bezier(.2,.7,.2,1) both;
}
.order-receipt-sheet::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("paper-grain.svg") repeat, #f4eee3; background-size: 170px;
  clip-path: polygon(0 0,100% 0,100% 99%,98% 100%,96% 99%,94% 100%,92% 99%,90% 100%,88% 99%,86% 100%,84% 99%,82% 100%,80% 99%,78% 100%,76% 99%,74% 100%,72% 99%,70% 100%,68% 99%,66% 100%,64% 99%,62% 100%,60% 99%,58% 100%,56% 99%,54% 100%,52% 99%,50% 100%,48% 99%,46% 100%,44% 99%,42% 100%,40% 99%,38% 100%,36% 99%,34% 100%,32% 99%,30% 100%,28% 99%,26% 100%,24% 99%,22% 100%,20% 99%,18% 100%,16% 99%,14% 100%,12% 99%,10% 100%,8% 99%,6% 100%,4% 99%,2% 100%,0 99%);
  box-shadow: inset 0 9px 12px -10px #30271c;
}
.order-receipt-logo { display: block; width: min(100%,280px); height: auto; margin: 0 auto; }
.order-receipt-tagline { margin: 5px 0 22px; font-size: 10px; letter-spacing: .15em; text-transform: uppercase; }
.order-receipt-reference { padding-top: 20px; border-top: 1px solid #786c5a55; overflow-wrap: anywhere; font-size: 15px; }
#order-dialog .order-receipt-title { margin: 20px 0 10px; font: 900 clamp(25px,7vw,38px)/1.05 "Barlow Condensed","Arial Narrow",sans-serif; text-transform: uppercase; }
.order-receipt-title:focus { outline: none; }
.order-receipt-stamp {
  display: inline-block; max-width: 100%; box-sizing: border-box; margin: 12px 0 16px; padding: 7px 12px;
  border: 3px solid #bd1118; border-radius: 5px; color: #bd1118;
  font: 900 clamp(23px,7vw,40px)/1.1 "Barlow Condensed","Arial Narrow",sans-serif;
  text-transform: uppercase; letter-spacing: .045em; transform: rotate(-7deg);
  animation: receipt-stamp .28s .8s ease-out both;
}
.order-receipt-message { font-size: 14px; line-height: 1.5; margin: 12px 0 24px; }
.order-receipt-details { text-align: left; border-block: 1px dashed #786c5a88; padding: 10px 0; font-size: 13px; }
.order-receipt-lines { list-style: none; margin: 0; padding: 0; }
.order-receipt-lines li { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; margin: 14px 0; line-height: 1.5; overflow-wrap: anywhere; }
.order-receipt-lines strong { white-space: nowrap; }
.order-receipt-total { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid #786c5a44; padding-top: 16px; font-size: 18px; }
.order-receipt-payment,.order-receipt-fee { line-height: 1.5; }
.order-receipt-update { color: #766b5c; font-size: 11px; line-height: 1.5; margin: 18px 0; }
.order-receipt-back { width: 100%; min-height: 48px; padding: 12px; border: 1px solid #bd1118; background: #bd1118; color: #fff8e8; font: 700 16px Georgia,serif; cursor: pointer; }
.order-receipt-help { display: block; padding: 16px 0; color: #493d2d; font-size: 12px; line-height: 1.5; }
.order-receipt-new { min-height: 44px; background: transparent; border: 0; padding: 10px; color: #493d2d; text-decoration: underline; font: inherit; font-size: 12px; cursor: pointer; }
.order-receipt-back:focus-visible,.order-receipt-help:focus-visible { outline: 3px solid #29251f; outline-offset: 3px; }
.order-receipt-signature { font: italic 22px Georgia,serif; margin: 16px 0 6px; }
@keyframes receipt-print { from { transform: translateY(-100%); } to { transform: translateY(0); } }
@keyframes receipt-stamp { from { opacity: 0; transform: rotate(-7deg) scale(1.15); } to { opacity: 1; transform: rotate(-7deg) scale(1); } }
@media(prefers-reduced-motion:reduce) { .order-receipt-sheet,.order-receipt-stamp { animation: none; } }
