.checkout-copy,.order-edit { display:block; background:transparent; border:0; color:#3e3934; text-decoration:underline; text-underline-offset:4px; min-height:40px; padding:4px 0; cursor:pointer; }
.order-dialog { margin:auto; padding:0; width:min(1100px,96vw); max-width:100%; max-height:95dvh; border:1px solid #d9d5cf; border-radius:16px; color:#211d19; background:#fff; overflow:auto; overscroll-behavior:contain; }
.order-dialog::backdrop { background:rgba(17,15,13,.64); }
.order-head { display:flex; align-items:center; justify-content:space-between; background:#171615; color:white; padding:10px clamp(18px,4vw,38px); }
.order-brand { font:500 23px "Cormorant Garamond",Georgia,serif; }
.order-close { min-width:44px; min-height:44px; border:0; background:none; color:white; font-size:26px; }
.order-content { padding:clamp(18px,4vw,38px); }
.order-content h2 { margin:0 0 24px; font:500 clamp(36px,5vw,58px)/1 "Cormorant Garamond",Georgia,serif; letter-spacing:-.04em; }
.order-layout { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(0,1fr); gap:clamp(20px,3vw,42px); }
#deliveryForm { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
#deliveryForm[hidden],.order-preview[hidden] {display:none;}
.order-wide { grid-column:1/-1; }
#deliveryForm label { display:grid; gap:5px; align-content:start; font-size:14px; font-weight:600; }
#deliveryForm input,#deliveryForm select,#deliveryForm textarea { width:100%; min-width:0; min-height:52px; color:#211d19; border:1px solid #b9b2aa; border-radius:6px; padding:9px 11px; font:400 16px/1.35 "DM Sans",sans-serif; background:#fff; }
#deliveryForm textarea { resize:vertical; }
.order-summary { background:#f7f6f3; padding:20px; border-radius:8px; align-self:start; }
.order-layout h3 { font:600 26px/1.1 "Cormorant Garamond",Georgia,serif; margin:0 0 16px; }
.order-summary ul { list-style:none; padding:0; margin:0; }
.order-summary li { display:grid; grid-template-columns:34px minmax(0,1fr) auto; align-items:center; gap:8px; padding:10px 0; border-bottom:1px solid #dcd8d2; font-size:13px; }
.order-summary img { width:34px; height:48px; object-fit:contain; }
.order-summary small { display:block; color:#504b45; }
.order-total { display:flex; justify-content:space-between; gap:10px; margin:16px 0 8px; }
.order-summary p,.order-preview p { font:400 14px/1.55 "DM Sans",sans-serif; margin:12px 0; }
.order-address { white-space:pre-line; overflow-wrap:anywhere; }
.order-dialog :focus-visible { outline:2px solid #8e603d; outline-offset:3px; }
@media(max-width:660px) {
 .order-layout { display:flex; flex-direction:column; }
 .order-summary { width:100%; }
 .order-layout:has(.order-preview:not([hidden])) .order-summary { order:-1; }
}
@media(max-width:420px) { #deliveryForm { grid-template-columns:minmax(0,1fr); } }
@media(prefers-reduced-motion:no-preference) {
 .order-dialog[open],.order-preview:not([hidden]) { animation:order-arrive .32s ease-out; }
 @keyframes order-arrive { from { opacity:0; transform:translateY(8px); } }
}
.order-breakdown { margin:16px 0 0; color:#514a43; font-size:13px; }
.order-breakdown div { display:flex; justify-content:space-between; gap:12px; padding:3px 0; }
.order-breakdown dd { margin:0; font-variant-numeric:tabular-nums; }
.order-total { align-items:baseline; background:#211e1a; color:white; padding:12px 14px; border-radius:5px; }
.order-total strong { font:600 24px/1.1 "Cormorant Garamond",Georgia,serif; }
@media(prefers-reduced-motion:no-preference) {
 .order-layout:has(.order-preview:not([hidden])) .order-breakdown,
 .order-layout:has(.order-preview:not([hidden])) .order-total { animation:order-arrive .45s ease-out backwards; }
 .order-layout:has(.order-preview:not([hidden])) .order-total { animation-delay:.12s; }
}

#deliveryForm [aria-invalid="true"] { border-color:#9e392e; }
.delivery-error { margin:auto; width:min(420px,90vw); padding:28px; border:1px solid #ded7cf; border-radius:14px; background:#fff; color:#211d19; }
.delivery-error::backdrop { background:#15131080; }
.delivery-error h3 { margin:0; font:600 28px/1.1 "Cormorant Garamond",Georgia,serif; }
.delivery-error p { margin:12px 0 20px; line-height:1.5; }
@media(max-width:660px) { .order-dialog { width:100%; max-height:100dvh; border-radius:8px; } }

.order-remove { display:inline-flex; align-items:center; min-height:36px; margin-block:4px; border:1px solid #b8aaa1; border-radius:6px; padding:5px 12px; background:white; color:#52392e; font:600 13px/1.4 "DM Sans",sans-serif; cursor:pointer; }
.order-summary .order-remove { display:flex; width:fit-content; }

.order-courier { display:inline-block; margin-inline-end:.3em; }
@media (prefers-reduced-motion:no-preference) {
  .order-preview:not([hidden]) .order-courier { animation:courier-arrives .65s ease-out both; }
  @keyframes courier-arrives {
    from { opacity:0; transform:translateX(.8em); }
    to { opacity:1; transform:translateX(0); }
  }
}
