/*
 * Pastry order page (cakes and pastries, cart style). Loaded on that page only; uses the tokens from site.css.
 * Mobile first: one column, a sticky "continue" bar; from 960px the cart sits beside the catalogue.
 */

.order__inner { max-width: 1100px; }
.order__off,
.order__loading {
	margin: 0 0 1.2rem;
	padding: 1rem 1.2rem;
	background: var(--card);
	border-left: 4px solid var(--lime);
	border-radius: 0;
}
.order__off a { font-weight: 600; white-space: nowrap; }

/* ---------- Steps ---------- */
.order-steps { display: flex; gap: 6px; margin: 0 0 1.6rem; padding: 0; list-style: none; counter-reset: none; }
.order-steps__item { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 0; padding: 8px 10px; font: 600 1rem/1.1 var(--display); letter-spacing: 0.05em; text-transform: none; color: var(--profondo); background: var(--card); border: 1px solid var(--rule); border-radius: 0; }
.order-steps__n { display: inline-grid; flex: none; place-items: center; width: 26px; height: 26px; font-size: 0.95rem; color: #fff; background: var(--mineral); border-radius: 50%; }
.order-steps__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-steps__item.is-current { color: var(--ink); background: #fff; border-color: var(--botanico); box-shadow: 0 0 0 1px var(--botanico) inset; }
.order-steps__item.is-current .order-steps__n { background: var(--botanico); }
.order-steps__item.is-done .order-steps__n { background: var(--lime); color: var(--ink); }
@media (max-width: 560px) {
	.order-steps__item:not(.is-current) .order-steps__name { display: none; }
	.order-steps__item:not(.is-current) { flex: 0 0 auto; }
}

/* ---------- Layout ---------- */
.order-layout { display: grid; gap: 1.6rem; }
.order-title { margin: 0 0 1rem; font-size: clamp(1.7rem, 4.5vw, 2.4rem); }
.order-title:focus { outline: none; }
@media (min-width: 960px) {
	.order-layout.has-cart { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
	.order-cart { position: sticky; top: calc(var(--header-h) + 16px); }
	.order-bar { display: none !important; }
}

/* ---------- Catalogue ---------- */
.order-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.4rem; }
.order-chip { min-height: 44px; padding: 0.4em 1.1em; font: 600 1.05rem/1 var(--display); letter-spacing: 0.06em; text-transform: none; color: var(--ink); background: var(--card); border: 2px solid var(--rule); border-radius: 0; cursor: pointer; }
.order-chip.is-on { color: #fff; background: var(--botanico); border-color: var(--botanico); }
.order-section h3 { margin: 1.4rem 0 0.8rem; font-size: 1.7rem; }
.order-grid { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.order-card { display: flex; flex-direction: column; overflow: hidden; background: var(--card); border: 1px solid var(--rule); border-radius: 0; }
.order-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; } /* the product photos are square: shown whole, never cropped or stretched */
.order-card__body { display: flex; flex: 1; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.order-card h4 { margin: 0; font: 600 1.45rem/1.05 var(--display); letter-spacing: 0.02em; text-transform: uppercase; }
.order-card p { margin: 0; font-size: 0.98rem; line-height: 1.4; }
.order-card__price { font-weight: 600; color: var(--botanico); }
.order-card__price { margin-bottom: 10px; }
.order-card .button { margin-top: auto; align-self: flex-start; }

/* ---------- Cart ---------- */
.order-cart { padding: 18px 18px 20px; background: var(--card); border: 1px solid var(--rule); border-radius: 0; }
.order-cart h3 { margin: 0 0 0.6rem; font-size: 1.5rem; }
.order-lines { display: grid; gap: 0; margin: 0 0 0.8rem; padding: 0; list-style: none; }
.order-line { display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.order-line__text { flex: 1 1 60%; min-width: 0; }
.order-line__text strong { display: block; font-weight: 600; line-height: 1.3; }
.order-line__text small { display: block; margin-top: 2px; font-size: 0.88rem; line-height: 1.4; color: var(--profondo); }
.order-line__price { font-weight: 600; white-space: nowrap; }
.order-line__actions { flex: 1 0 100%; display: flex; gap: 14px; }
.order-link { padding: 4px 0; font: inherit; font-size: 0.9rem; color: var(--botanico); text-decoration: underline; background: none; border: 0; cursor: pointer; }
.order-total { display: flex; justify-content: space-between; align-items: baseline; margin: 0.6rem 0 0.2rem; font: 600 1.5rem/1 var(--display); letter-spacing: 0.04em; text-transform: none; }
.order-note { font-size: 0.92rem; margin: 0 0 1rem; }
.order-bar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 1.2rem calc(var(--gutter) * -1) -1rem; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 2px solid var(--botanico); box-shadow: 0 -6px 18px rgba(20, 40, 28, 0.12); }

/* ---------- Forms ---------- */
.order-form { display: grid; gap: 1.2rem; }
.order-fieldset { margin: 0; padding: 16px 18px 6px; background: var(--card); border: 1px solid var(--rule); border-radius: 0; }
.order-fieldset legend { padding: 0 8px; font: 600 1.3rem/1 var(--display); letter-spacing: 0.04em; text-transform: none; }
.order-fieldset legend small { font: 400 0.8rem var(--text); letter-spacing: 0; text-transform: none; color: var(--profondo); }
.order-field { display: grid; gap: 4px; margin: 0 0 14px; }
.order-field label { font-weight: 600; font-size: 0.98rem; }
.order-field input[type="text"],
.order-field input[type="tel"],
.order-field input[type="email"],
.order-field input[type="number"],
.order-field select,
.order-field textarea,
.order-row select {
	width: 100%;
	min-height: 48px;
	padding: 10px 12px;
	font: inherit;
	font-size: 1rem; /* 16px+ stops iOS zooming into the field */
	color: var(--ink);
	background: #fff;
	border: 2px solid var(--rule);
	border-radius: 0;
}
.order-field input:focus,
.order-field select:focus,
.order-field textarea:focus { border-color: var(--botanico); outline: 3px solid rgba(148, 183, 25, 0.4); outline-offset: 0; }
.order-row { display: grid; gap: 0 14px; }
@media (min-width: 640px) { .order-row { grid-template-columns: 1fr 1fr; } }
.order-consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.order-consent input { flex: none; width: 22px; height: 22px; margin-top: 3px; accent-color: var(--botanico); }
.order-error { color: #b3261e; font-size: 0.92rem; font-weight: 600; }
.order-error:empty { display: none; }
.order-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.order-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 0.4rem 0 0; }
.order-facts { margin: 1rem 0; display: grid; gap: 4px 16px; grid-template-columns: max-content 1fr; }
.order-facts dt { font: 600 1.1rem/1.4 var(--display); letter-spacing: 0.05em; text-transform: none; }
.order-facts dd { margin: 0; }

/* ---------- Configurator dialog ---------- */
.order-dialog { width: min(94vw, 600px); max-height: 92vh; padding: 0; color: var(--ink); background: var(--paper); border: 0; border-radius: 0; box-shadow: 0 18px 50px rgba(20, 40, 28, 0.4); }
.order-dialog::backdrop { background: rgba(20, 40, 28, 0.6); }
.order-config { display: block; padding: 20px 20px 0; }
.order-config h2 { margin: 0 0 0.3rem; font-size: 2rem; }
.order-config .order-fieldset { padding-bottom: 10px; margin-bottom: 14px; }
.order-choice { display: flex; gap: 10px; align-items: center; min-height: 44px; padding: 4px 0; cursor: pointer; }
.order-choice input { flex: none; width: 20px; height: 20px; accent-color: var(--botanico); }
.order-choice span { flex: 1; }
.order-choice b { font-weight: 600; white-space: nowrap; }
.order-flavor { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0; }
.order-pieces { margin: 6px 0 4px; font-weight: 600; }
.order-stepper { display: inline-flex; align-items: stretch; width: max-content; border: 2px solid var(--rule); border-radius: 0; overflow: hidden; background: #fff; }
.order-stepper button { width: 46px; font-size: 1.4rem; line-height: 1; color: var(--botanico); background: var(--card); border: 0; cursor: pointer; }
.order-stepper button:hover { background: var(--lime); color: var(--ink); }
.order-stepper input { width: 64px; min-height: 46px; padding: 0; font: 600 1.1rem var(--text); text-align: center; border: 0; border-inline: 2px solid var(--rule); border-radius: 0; -moz-appearance: textfield; }
.order-stepper input::-webkit-outer-spin-button,
.order-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.order-config__foot { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 -20px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--rule); }
.order-config__foot strong { font: 600 1.4rem var(--display); letter-spacing: 0.04em; text-transform: none; }
.order-config__foot .order-buttons { margin: 0; }
.order-allergens { font-size: 0.9rem; }

/* ---------- Done / status ---------- */
.order-done { max-width: 640px; }
.order-status { padding: 12px 16px; background: var(--card); border-left: 4px solid var(--mineral); border-radius: 0; }
.order-status--accettato,
.order-status--pronto,
.order-status--ritirato { border-left-color: var(--lime); }
.order-status--in_attesa { border-left-color: #d9531e; }
.order-status--rifiutato,
.order-status--annullato { border-left-color: #b3261e; }

@media (prefers-reduced-motion: no-preference) {
	.order-card { transition: box-shadow 0.15s, transform 0.15s; }
	.order-card:hover { box-shadow: 0 6px 18px rgba(20, 40, 28, 0.12); transform: translateY(-2px); }
}

/* Cake configurator extras, pick-up place, "this is not a confirmation" notice */
.order-config__img { display: block; width: calc(100% + 40px); max-width: none; margin: -20px -20px 14px; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; }
.order-cakenote { margin: 8px 0 0; font-size: 0.9rem; }
.order-place { align-items: flex-start; }
.order-place input { margin-top: 3px; }
.order-place small { display: block; font-size: 0.92rem; line-height: 1.35; }
.order-notice { margin: 18px 0; padding: 14px 16px; background: #fff8dc; border: 2px solid #e2c55a; border-radius: 0; }
.order-notice strong { display: block; margin-bottom: 2px; font: 600 1.2rem var(--display); letter-spacing: 0.04em; text-transform: none; }
.order-notice p { margin: 0; }
p.order-notice--photo { background: var(--card); border-color: var(--botanico); }

/* ---------- Shared tool for Bici Grill and Alpen Grill: neutral palette + co-branding strip ---------- */
.order--neutral {
	--botanico: #2d2d31;
	--lime: #e4dfd5;
	--mineral: #8b8b90;
	--profondo: #55555a;
	--ink: #1c1c1f;
	--paper: #f5f4f2;
	--card: #fbfaf9;
	--rule: #dedad4;
	background: var(--paper);
}
.order--neutral .button--book { color: #fff; background: var(--ink); border-color: var(--ink); }
.order--neutral .button--book:hover { color: #fff; background: #44444a; border-color: #44444a; }
.order--neutral .button--ghost-dark:hover { background: var(--ink); border-color: var(--ink); }
.order--neutral .order-steps__item.is-done .order-steps__n { background: var(--ink); color: #fff; }
.order--neutral .order-stepper button:hover { background: var(--lime); }
.order-brand { display: inline-flex; align-items: center; gap: 10px; line-height: 1; } /* sits in the site header on this page */
.order-brand__logo { display: block; width: auto; height: 36px; }
.order-brand__x { font: 500 1.4rem/1 var(--display); color: #55555a; }
.order-brand__logo--empty { display: inline-grid; place-items: center; height: 36px; padding: 0 10px; font: 600 1rem/1 var(--display); letter-spacing: 0.08em; text-transform: none; color: #55555a; border: 2px dashed #dedad4; border-radius: 0; }
@media (min-width: 720px) {
	.order-brand { gap: 14px; }
	.order-brand__logo { height: 44px; }
	.order-brand__logo--empty { height: 44px; padding: 0 16px; }
	.order-brand__x { font-size: 1.8rem; }
}

/* Photo upload in the cake dialog */
.order-photo input[type="file"] { width: 100%; padding: 8px; font: inherit; background: #fff; border: 2px dashed var(--rule); border-radius: 0; }
.order-photo__ok { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; font-weight: 600; word-break: break-all; }
.order-config__foot .button[disabled] { opacity: 0.55; cursor: progress; }

/* Price steps of a cake, live calculation, ritiro/consumo choice */
.order-card__price small { display: block; margin-top: 2px; font-weight: 500; font-size: 0.88rem; color: var(--profondo); }
.order-tiers { margin: 6px 0 4px; padding: 0; list-style: none; border: 1px solid var(--rule); border-radius: 0; overflow: hidden; }
.order-tiers li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; background: var(--card); }
.order-tiers li + li { border-top: 1px solid var(--rule); }
.order-tiers li.is-on { background: var(--lime); font-weight: 600; }
.order-tiers b { font-weight: 600; white-space: nowrap; }
.order-tiernote { margin: 0 0 10px; font-size: 0.9rem; }
.order-calc { min-height: 1.5em; margin: 8px 0 0; font-weight: 600; }

/* Close button of the product dialog (stays in the corner while the dialog scrolls) and the notice line */
.order-dialog__close { position: sticky; top: 10px; z-index: 3; display: grid; place-items: center; width: 40px; height: 40px; margin: 0 0 -40px auto; padding: 0; font: 400 1.9rem/1 var(--text); color: var(--ink); background: rgba(255, 255, 255, 0.94); border: 1px solid var(--rule); border-radius: 50%; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25); cursor: pointer; }
.order-dialog__close:hover,
.order-dialog__close:focus-visible { background: var(--lime); }
.order-config h2 { padding-right: 48px; }
.order-lead { margin: 2px 0 10px; font-size: 0.95rem; font-weight: 600; color: var(--profondo); }

/* Highlight label on the photo ("Best seller!") and allergens on the card */
.order-card__media { position: relative; }
.order-badge { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 4px 12px; font: 600 1rem/1.2 var(--display); letter-spacing: 0.05em; text-transform: none; border-radius: 0; box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3); }
.order-dialog__badge { margin: 0 0 6px; }
.order-dialog__badge .order-badge { position: static; display: inline-block; box-shadow: none; }
.order-card__allergens { margin-top: 2px; font-size: 0.86rem; line-height: 1.35; color: var(--profondo); }

/* Cloudflare Turnstile: invisible, takes room only when a challenge is shown */
.order-captcha { margin: 10px 0; }
.order-captcha:empty { margin: 0; }


/* ---------- Mobile comfort ---------- */
.order-app button,
.order-app select,
.order-app summary { touch-action: manipulation; }
.order-link { min-height: 44px; padding: 10px 0; }
.order-facts dd { overflow-wrap: anywhere; }
.order-fieldset legend { float: left; width: 100%; margin: 0 0 8px; padding: 0 0 2px; } /* a long legend wraps inside the box instead of crossing its border */
.order-fieldset legend + * { clear: both; }
html:has(dialog.order-dialog[open]) { overflow: hidden; } /* the page behind the dialog does not scroll */
.order-dialog { max-height: 92vh; max-height: 92dvh; overscroll-behavior: contain; }
@keyframes order-bar-pulse { 0% { background: var(--lime); } 100% { background: #fff; } }
@media (prefers-reduced-motion: no-preference) { .order-bar.is-added { animation: order-bar-pulse 0.9s ease-out; } }
@media (hover: none) { .order-card:hover { transform: none; box-shadow: none; } }

@media (max-width: 560px) {
	/* The catalogue starts higher: smaller logos, intro and steps */
	.order .section-head .lead { font-size: 1rem; line-height: 1.5; }
	.order-steps { margin-bottom: 1rem; }
	.order-title--dup { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* the step bar already says it; stays for screen readers and focus */

	/* Category chips stay under the header while scrolling the list */
	.order-filter { position: sticky; top: calc(var(--header-h, 64px) - 1px); z-index: 4; flex-wrap: nowrap; gap: 8px; margin: 0 calc(var(--gutter) * -1) 0.8rem; padding: 8px var(--gutter); overflow-x: auto; background: var(--paper); border-bottom: 1px solid var(--rule); }
	.order-chip { flex: none; }
	.order-filter { scrollbar-width: none; }
	.order-filter::-webkit-scrollbar { display: none; }
	.order-section h3 { margin: 1rem 0 0.6rem; font-size: 1.45rem; }

	/* Compact product rows: small photo on the left, text and button on the right */
	.order-grid { grid-template-columns: 1fr; gap: 10px; }
	.order-card { display: grid; grid-template-columns: 128px minmax(0, 1fr); }
	.order-card__media { grid-row: 1; align-self: start; background: #fff; }
	.order-card img { height: auto; aspect-ratio: 1; }
	.order-card__body { grid-column: 2; gap: 3px; padding: 10px 12px 12px; }
	.order-card h4 { font-size: 1.25rem; }
	.order-card p.muted { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.92rem; }
	.order-card__price { margin-bottom: 6px; }
	.order-card .button { min-height: 44px; }
	.order-badge { top: 6px; left: 6px; padding: 2px 8px; font-size: 0.78rem; }

	/* Product dialog as a bottom sheet */
	.order-dialog { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 0; }
	.order-config { padding: 16px 16px 0; }
	.order-config__foot { margin: 0 -16px; padding-inline: 16px; }
	.order-config__img { width: calc(100% + 32px); margin: -16px -16px 12px; }
	.order-config__foot { flex-wrap: nowrap; gap: 12px; }
	.order-config__foot strong { flex: none; font-size: 1.25rem; }
	.order-config__foot .order-buttons { flex: 1; }
	.order-config__foot .order-buttons .button { flex: 1; min-height: 48px; padding-inline: 0.8em; }
	.order-config__foot [data-act="dialog-cancel"] { display: none; } /* the close button in the corner does the same */
}


/* ---------- Pick-up: day cards and time chips ---------- */
.order-label { font-weight: 600; font-size: 0.98rem; }
.order-days-wrap { position: relative; }
.order-days { position: relative; display: flex; gap: 8px; padding: 6px 2px 12px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.order-day { flex: none; scroll-snap-align: center; cursor: pointer; }
.order-day input,
.order-time input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.order-day__box { display: grid; justify-items: center; align-content: center; gap: 1px; width: 66px; min-height: 80px; padding: 8px 4px; text-transform: none; background: #fff; border: 2px solid var(--rule); border-radius: 0; transition: transform 0.15s, background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s; }
.order-day__box small { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; color: var(--profondo); }
.order-day__box b { font: 600 1.7rem/1.05 var(--display); }
.order-day__box em { font-style: normal; font-size: 0.62rem; letter-spacing: 0.04em; color: #b3261e; }
.order-day input:checked + .order-day__box { color: #fff; background: var(--botanico); border-color: var(--botanico); box-shadow: 0 4px 12px rgba(20, 20, 24, 0.25); transform: translateY(-2px); }
.order-day input:checked + .order-day__box small { color: rgba(255, 255, 255, 0.82); }
.order-day.is-full { cursor: not-allowed; }
.order-day.is-full .order-day__box { opacity: 0.5; background: var(--card); }
.order-day input:focus-visible + .order-day__box,
.order-time input:focus-visible + span { outline: 3px solid rgba(148, 183, 25, 0.55); outline-offset: 2px; }
.order-days__nav { position: absolute; top: 50%; left: -8px; z-index: 2; width: 36px; height: 36px; margin-top: -24px; padding: 0 0 3px; font-size: 1.5rem; line-height: 1; color: var(--ink); background: #fff; border: 1px solid var(--rule); border-radius: 50%; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); cursor: pointer; }
.order-days__nav--next { left: auto; right: -8px; }
@media (hover: none) { .order-days__nav { display: none; } }
.order-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.order-times__hint { grid-column: 1 / -1; margin: 0; }
.order-time { cursor: pointer; }
.order-time span { display: grid; place-items: center; min-height: 46px; font: 600 1.05rem var(--text); background: #fff; border: 2px solid var(--rule); border-radius: 0; transition: transform 0.12s, background-color 0.15s, color 0.15s, border-color 0.15s; }
.order-time input:checked + span { color: #fff; background: var(--botanico); border-color: var(--botanico); }

/* ---------- Feedback: toast, skeletons, errors, success tick ---------- */
.order-toast { position: fixed; left: 50%; width: max-content; bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 20; max-width: calc(100vw - 32px); padding: 11px 20px; font-weight: 600; text-align: center; color: #fff; background: var(--ink); border-radius: 0; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); transform: translateX(-50%); transition: opacity 0.3s; }
.order-toast.is-out { opacity: 0; }
@media (min-width: 960px) { .order-toast { bottom: 28px; } }
.order-skel { display: grid; gap: 10px; margin: 12px 0; }
.order-skel i { display: block; height: 84px; background: #ece9e4; border-radius: 0; }
.order-skel--days { display: flex; }
.order-skel--days i { flex: none; width: 66px; height: 80px; border-radius: 0; }
.order-error.is-shown { display: block; }
.order-fieldset:has(.order-error.is-shown) { border-color: #b3261e; }
.order-done__tick svg { display: block; width: 64px; height: 64px; margin: 0 0 0.7rem; }
.order-done__tick circle,
.order-done__tick path { fill: none; stroke: var(--botanico); stroke-linecap: round; stroke-linejoin: round; }
.order-done__tick circle { --len: 151; stroke-width: 3; stroke-dasharray: 151; }
.order-done__tick path { --len: 40; stroke-width: 4; stroke-dasharray: 40; }
.order-app [data-act="send"][disabled]::before { content: ""; display: inline-block; width: 1em; height: 1em; margin-right: 0.6em; vertical-align: -0.12em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; }

/* ---------- Soft motion (off when the device asks for less) ---------- */
@media (prefers-reduced-motion: no-preference) {
	.order-app .button,
	.order-chip,
	.order-stepper button { transition: transform 0.12s ease, background-color 0.15s, color 0.15s, box-shadow 0.15s; }
	.order-app .button:active,
	.order-chip:active,
	.order-stepper button:active,
	.order-day:active .order-day__box,
	.order-time:active span { transform: scale(0.96); }
	.order-steps__n { transition: background-color 0.25s, transform 0.25s; }
	.order-steps__item.is-current .order-steps__n { transform: scale(1.08); }

	@keyframes order-in-fwd { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
	@keyframes order-in-back { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
	.order-view.is-enter .order-layout,
	.order-view.is-enter .order-done { animation: order-in-fwd 0.32s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
	.order-view.is-enter[data-dir="back"] .order-layout { animation-name: order-in-back; }

	@keyframes order-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
	.order-grid.is-anim .order-card { animation: order-rise 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; animation-delay: calc(var(--i, 0) * 45ms); }
	@keyframes order-pop { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: none; } }
	.order-time { animation: order-pop 0.22s ease-out backwards; animation-delay: calc(var(--i, 0) * 14ms); }

	@keyframes order-toast-in { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }
	.order-toast { animation: order-toast-in 0.25s ease-out; }
	@keyframes order-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
	.order-skel i { background: linear-gradient(90deg, #ece9e4 30%, #f7f5f2 50%, #ece9e4 70%); background-size: 200% 100%; animation: order-shimmer 1.3s linear infinite; }
	@keyframes order-err { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
	.order-error.is-shown { animation: order-err 0.25s ease-out; }
	@keyframes order-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
	.is-shake { animation: order-shake 0.35s ease-in-out; }
	@keyframes order-draw { from { stroke-dashoffset: var(--len); } }
	.order-done__tick circle { animation: order-draw 0.6s ease-out backwards; }
	.order-done__tick path { animation: order-draw 0.35s 0.45s ease-out backwards; }
	@keyframes order-spin { to { transform: rotate(360deg); } }
	.order-app [data-act="send"][disabled]::before { animation: order-spin 0.7s linear infinite; }

	@keyframes order-sheet-in { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
	@keyframes order-fade { from { opacity: 0; } to { opacity: 1; } }
	.order-dialog[open] { animation: order-sheet-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
	.order-dialog[open]::backdrop { animation: order-fade 0.22s ease-out; }
}

/* Let the day strip scroll inside its box instead of widening the page (grid items and fieldsets default to min-content) */
.order-layout > *,
.order-form,
.order-fieldset,
.order-field { min-width: 0; }
.order-field { grid-template-columns: minmax(0, 1fr); }

/* Prices and totals line up digit by digit */
.order-total,
.order-line__price,
.order-calc,
.order-tiers b,
.order-card__price,
.order-config__foot strong,
.order-bar { font-variant-numeric: tabular-nums; }

/* Categories: each one is a clear block with a heavy rule, a big title and room around it */
.order-section { scroll-margin-top: calc(var(--header-h) + 72px); }
.order-section + .order-section { margin-top: 56px; }
.order-section > h3 { margin: 0 0 18px; padding-top: 14px; border-top: 4px solid var(--ink); font-size: clamp(2rem, 6.5vw, 2.6rem); line-height: 1; }
@media (max-width: 560px) { .order-section + .order-section { margin-top: 44px; } }
