.q-booking { max-width: 680px; }
/* Tablets (the page's columns stacked): the cards beside the form – opening hours, good to know, contact – two
   side by side instead of three across the whole width; the last one fills the row. */
@media (min-width: 600px) and (max-width: 781.98px) {
	.wp-block-columns:has(.q-booking) > .wp-block-column:not(:has(.q-booking)) { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
	.wp-block-columns:has(.q-booking) > .wp-block-column:not(:has(.q-booking)) > * { margin: 0 !important; height: 100%; box-sizing: border-box; }
	.wp-block-columns:has(.q-booking) > .wp-block-column:not(:has(.q-booking)) > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.q-done { padding: 12px 0; text-align: center; }
.q-done__icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 50%; background: var(--q-accent); color: #fff; font-size: 1.8rem; }
.q-done h2 { margin: .2em 0; font-family: var(--q-font-display); }
.q-eyebrow { margin: 0; color: var(--q-accent-dark); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.q-status__title { margin: .2em 0 .4em; font-family: var(--q-font-display); font-size: clamp(1.4rem, 3.5vw, 2rem); line-height: 1.15; }
.q-pill { display: inline-block; padding: .3em .9em; border-radius: 999px; background: var(--q-cream); font-weight: 700; font-size: .85rem; }
.q-pill--confirmed { background: color-mix(in srgb, var(--wp--preset--color--brass) 17%, white); color: #2f5a1f; }
.q-pill--cancelled, .q-pill--declined { background: color-mix(in srgb, var(--wp--preset--color--accent-light) 12%, white); color: var(--q-bad); }

/* Date strip (shared look with the order checkout). */
.q-booking .q-when legend { font-weight: 600; }
.q-booking .q-dates-wrap { display: flex; gap: 8px; align-items: stretch; min-width: 0; }
.q-booking .q-dates { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: thin; min-width: 0; flex: 1; }
.q-booking .q-daychip, .q-booking .q-datepick {
	position: relative; flex: none; display: grid; justify-items: center; align-content: center; gap: 1px;
	width: 62px; min-height: 76px; border-radius: 16px; cursor: pointer; scroll-snap-align: start;
	background: var(--q-glass, #fff); border: 1px solid rgb(255 255 255 / 80%); box-shadow: var(--q-glass-edge, none), var(--q-glass-depth, 0 2px 8px rgb(0 0 0 / 8%));
	transition: transform .2s var(--q-spring, ease), background .2s, color .2s, opacity .2s;
}
.q-booking .q-daychip:hover { transform: translateY(-2px); }
.q-booking .q-daychip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.q-daychip__dow { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--q-muted); }
.q-daychip__num { font-family: var(--q-font-display); font-size: 1.45rem; font-weight: 600; line-height: 1.1; }
.q-daychip__mon { font-size: .72rem; color: var(--q-muted); }
.q-booking .q-daychip:has(input:checked) { background: var(--q-glass-tint, var(--q-accent)); color: #fff; border-color: rgb(255 255 255 / 30%); box-shadow: 0 0 0 1px rgb(120 50 20 / 40%), inset 0 1px 0 rgb(255 255 255 / 45%), 0 10px 22px -10px rgb(181 86 47 / 70%); }
.q-booking .q-daychip:has(input:checked) span { color: #fff; }
.q-booking .q-daychip:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--q-accent) 55%, transparent); outline-offset: 2px; }
/* Closed / unavailable days: greyed and not selectable. */
.q-booking .q-daychip.is-closed { cursor: not-allowed; opacity: .45; background: repeating-linear-gradient(135deg, transparent 0 6px, rgb(0 0 0 / 4%) 6px 12px), var(--q-bg, #f6f0e6); box-shadow: none; border-color: var(--q-line); }
.q-booking .q-daychip.is-closed:hover { transform: none; }
.q-booking .q-daychip.is-closed input { cursor: not-allowed; }
.q-booking .q-daychip.is-closed .q-daychip__num { text-decoration: line-through; text-decoration-thickness: 1.5px; }
/* Today after the online cut-off: still open for walk-ins – tap to see why. */
.q-booking .q-daychip.is-walkin { background: var(--q-bg, #f6f0e6); box-shadow: none; border: 1px dashed color-mix(in srgb, var(--q-accent) 45%, var(--q-line)); }
.q-booking .q-daychip.is-walkin .q-daychip__mon { color: var(--q-accent-dark); font-weight: 700; }
/* The whole restaurant booked for a private event: "Private" on a day it fills (not crossed out – it isn't closed),
   a dot on a day it only partly takes. */
.q-booking .q-daychip.is-private { opacity: .8; background: color-mix(in srgb, var(--q-accent) 7%, var(--q-bg, #f6f0e6)); }
.q-booking .q-daychip.is-private .q-daychip__num { text-decoration: none; }
.q-booking .q-daychip.is-private .q-daychip__mon { color: var(--q-accent-dark); font-weight: 700; }
.q-booking .q-daychip.has-private::after { content: ""; position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--q-accent); box-shadow: 0 0 0 2px var(--q-surface, #fff); }
.q-booking .q-daychip { position: relative; }
.q-booking .q-datepick { font-size: .7rem; font-weight: 700; color: var(--q-accent-dark); text-align: center; overflow: hidden; }
.q-booking .q-datepick input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }

/* Times: every seating within trading hours; unavailable ones greyed out. */
.q-times { display: grid; gap: 10px; min-height: 48px; }
.q-times__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.q-times .q-chip { justify-content: center; }
.q-times .q-chip.is-off { cursor: not-allowed; opacity: .42; background: var(--q-bg, #f6f0e6); box-shadow: none; border-style: dashed; }
.q-times .q-chip.is-off span { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.q-times .q-chip.is-off input { cursor: not-allowed; }
.q-times__legend { display: flex; align-items: center; gap: 6px; margin: 2px 0 0; }
.q-legend { display: inline-block; width: 12px; height: 12px; border-radius: 4px; border: 1px dashed var(--q-muted); opacity: .6; margin-left: 8px; }
.q-legend:first-child { margin-left: 0; }
.q-legend--on { border: 1px solid var(--q-line); background: var(--q-surface, #fff); opacity: 1; }
legend [data-q-hours] { font-weight: 400; }

/* Deposit for bigger groups (Reservations\Deposits): shown once the party is big enough. */
.q-deposit { display: grid; gap: .5em; margin: 4px 0 2px; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--q-accent) 40%, transparent); border-left: 5px solid var(--q-accent); border-radius: var(--q-radius-sm, 10px); background: color-mix(in srgb, var(--q-accent) 9%, var(--q-surface, #fff)); animation: q-deposit-in .35s ease both; }
.q-deposit[hidden] { display: none; }
@keyframes q-deposit-in { from { opacity: 0; transform: translateY(-4px); } }
.q-deposit p { margin: 0; }
.q-deposit__head { display: flex; align-items: center; gap: .6em; font-weight: 700; }
.q-deposit__head strong { color: var(--q-accent-dark, #93421f); font-size: 1.1em; }
.q-deposit__icon { display: grid; place-items: center; flex: none; width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--q-accent); color: #fff; font-weight: 800; }
.q-deposit__rules { font-size: .92rem; line-height: 1.5; }
.q-deposit__note { font-size: .88rem; font-weight: 600; color: var(--q-muted); }
.q-deposit__pay { display: flex; flex-wrap: wrap; gap: 8px; }
.q-deposit__state { display: inline-block; margin: 0 0 10px; padding: .3em .8em; border-radius: 99px; font-weight: 700; font-size: .9rem; background: var(--q-cream); }
.q-deposit__state--paid, .q-deposit__state--used { background: #e7f5ea; color: #1e6b3d; }
.q-deposit__state--due { background: #fff4d6; color: #7a5a00; }
@media (prefers-reduced-motion: reduce) { .q-deposit { animation: none; } }

/* The deposit: a choice of how to pay (2026-11-08) – option cards, the chosen one with a green tick. Paying happens on
   "Pay … & book", so these must not look like buttons that pay. */
.q-depay { margin: 6px 0 0; padding: 0; border: 0; min-width: 0; }
.q-depay__title { margin: 0 0 8px; padding: 0; font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--q-muted); }
.q-depay__opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.q-depay__opt { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 44px 12px 12px; border: 1.5px solid var(--q-line, #e8dcc6); border-radius: 14px; background: var(--q-surface, #fff); cursor: pointer; transition: border-color .2s, box-shadow .2s, background .2s, transform .2s; }
.q-depay__opt:hover { border-color: color-mix(in srgb, #1f9d55 45%, var(--q-line, #e8dcc6)); transform: translateY(-1px); }
.q-depay__radio { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.q-depay__mark { display: grid; place-items: center; flex: none; }
.q-depay__mark svg { display: block; border-radius: 5px; box-shadow: 0 3px 8px -4px rgb(0 0 0 / 35%); }
.q-depay__text { display: grid; gap: 1px; min-width: 0; }
.q-depay__text strong { font-size: .98rem; color: var(--q-text, #2a211c); }
.q-depay__text small { font-size: .8rem; line-height: 1.3; color: var(--q-muted); }
/* The tick: an empty ring until chosen, then a filled green circle with a white tick. */
.q-depay__tick { position: absolute; top: 50%; right: 12px; display: grid; place-items: center; width: 24px; height: 24px; margin-top: -12px; border: 2px solid var(--q-line, #d9ccb4); border-radius: 50%; background: #fff; color: transparent; transition: background .2s, border-color .2s, color .2s, transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.q-depay__opt:has(.q-depay__radio:checked) { border-color: #1f9d55; background: color-mix(in srgb, #1f9d55 6%, var(--q-surface, #fff)); box-shadow: 0 0 0 3px color-mix(in srgb, #1f9d55 16%, transparent), 0 10px 22px -16px rgb(31 157 85 / 70%); }
.q-depay__opt:has(.q-depay__radio:checked) .q-depay__tick { border-color: #1f9d55; background: #1f9d55; color: #fff; transform: scale(1.08); }
.q-depay__opt:has(.q-depay__radio:focus-visible) { outline: 3px solid color-mix(in srgb, var(--q-accent) 55%, transparent); outline-offset: 2px; }
.q-depay__note { display: flex; align-items: flex-start; gap: 6px; margin: 10px 0 0 !important; font-size: .82rem; color: var(--q-muted); }
.q-depay__note svg { flex: none; margin-top: 2px; color: #1f9d55; }
@media (prefers-reduced-motion: reduce) { .q-depay__opt, .q-depay__tick { transition: none; } .q-depay__opt:hover { transform: none; } }
