/* Order dialog (theme 1.4.0): options + live total, printed on display pages only while the shop is open. Uses the site tokens (site.css). */
html.order-open { overflow: hidden; }
.order-dialog { padding: 0; border: 0; background: transparent; color: var(--ink); width: min(520px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); overflow: visible; margin: auto; }
.order-dialog::backdrop { background: rgba(28, 25, 21, .66); }
.order-dialog__form { position: relative; display: block; max-height: calc(100dvh - 32px); overflow-y: auto; padding: 34px 34px 30px; background: var(--bone); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.order-dialog__form::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(167, 129, 63, .5); pointer-events: none; }
.order-dialog__form > * { position: relative; }
.order-dialog__close { position: absolute; top: 14px; right: 16px; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1.5px solid rgba(91, 59, 34, .45); border-radius: 50%; background: transparent; color: var(--walnut); font: 400 1.6rem/1 var(--ff-body); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.order-dialog__close:hover { background: var(--copper-dk); border-color: var(--copper-dk); color: var(--bone); }
.order-dialog__close:focus-visible, .order-field select:focus-visible, .order-dialog .btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.order-dialog__head { display: flex; align-items: center; gap: 18px; margin: 0 48px 24px 0; }
.order-dialog__pic { flex: none; width: 76px; height: 76px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 3px var(--bone), 0 0 0 4px var(--gold); }
.order-dialog__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.order-dialog__head .label { margin: 0 0 4px; }
.order-dialog__head h2 { margin: 0; font: 500 clamp(1.4rem, 3vw, 1.8rem)/1.15 var(--ff-display); }
.order-field { margin: 0 0 20px; }
.order-field label { display: block; margin-bottom: 6px; font: 600 .72rem/1.3 var(--ff-body); letter-spacing: .14em; text-transform: uppercase; color: var(--walnut); }
.order-field select { width: 100%; font: 400 1rem/1.4 var(--ff-body); padding: .8em 2.4em .8em 1em; border: 1.5px solid rgba(91, 59, 34, .45); border-radius: 4px; color: var(--ink); appearance: none; background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='7'><path d='M1 1l5 5 5-5' fill='none' stroke='%235b3b22' stroke-width='1.5'/></svg>") no-repeat right 1em center; }
.order-field select:focus { border-color: var(--copper); }
.order-help { margin: 8px 0 0; font-size: .88rem; line-height: 1.5; color: rgba(28, 25, 21, .72); }
.order-total { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 0 6px; padding-top: 16px; border-top: 1.5px solid var(--bronze); font: 600 .72rem/1.3 var(--ff-body); letter-spacing: .14em; text-transform: uppercase; color: var(--walnut); }
.order-total strong { font: 500 1.9rem/1.1 var(--ff-display); letter-spacing: 0; text-transform: none; color: var(--ink); }
.order-small { margin: 0 0 22px; font-size: .85rem; line-height: 1.5; color: rgba(28, 25, 21, .72); }
.order-dialog .btn { width: 100%; justify-content: center; cursor: pointer; }
@media (max-width: 640px) {
  /* full-width sheet from the bottom */
  .order-dialog { width: 100vw; max-height: 94dvh; margin: auto 0 0; }
  .order-dialog__form { max-height: 94dvh; padding: 28px 22px 24px; }
  .order-dialog__form::before { inset: 6px; }
  .order-dialog__pic { width: 62px; height: 62px; }
}
@media (prefers-reduced-motion: no-preference) {
  .order-dialog[open] .order-dialog__form { animation: order-in .28s var(--ease); }
  @keyframes order-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
