/**
 * Alpaca Booked — Booking Widget styles
 *
 * All selectors prefixed `.ab-` and scoped within `.ab-widget-root` or `.ab-overlay`
 * to minimise theme conflicts. No inline styles in the JS for anything meaningful;
 * design lives here.
 *
 * Design tokens (locked):
 *   --ab-color-ink: #1c1c1c       primary text + brand
 *   --ab-color-mute: #6b6b6b      secondary text
 *   --ab-color-quiet: #8a8a8a     tertiary text / labels
 *   --ab-color-disabled: #c4c4c0  inactive
 *   --ab-color-line: rgba(0,0,0,0.15)
 *   --ab-color-line-soft: rgba(0,0,0,0.08)
 *   --ab-color-bg-soft: #f7f7f5
 *   --ab-color-bg-softer: #fafaf8
 *   --ab-color-disabled-bg: #d8d2c4
 *   --ab-radius-tile: 10px
 *   --ab-radius-modal: 16px
 *   --ab-radius-pill: 999px
 *   --ab-font: system-fallback Inter
 */

/* Token block. Custom properties live on .ab-widget-root only — they
 * inherit naturally through the React tree and the overlay, so we
 * mustn't re-declare them on .ab-overlay (that would shadow the
 * inline accent injection PHP puts on .ab-widget-root). */
.ab-widget-root {
	--ab-color-ink: #1c1c1c;
	--ab-color-mute: #6b6b6b;
	--ab-color-quiet: #8a8a8a;
	--ab-color-disabled: #c4c4c0;
	--ab-color-line: rgba(0, 0, 0, 0.15);
	--ab-color-line-soft: rgba(0, 0, 0, 0.08);
	--ab-color-bg-soft: #f7f7f5;
	--ab-color-bg-softer: #fafaf8;
	--ab-color-disabled-bg: #d8d2c4;
	/* Brand accent — PHP injects these inline on .ab-widget-root from
	   the venue's accent picker. Defaults are Alpaca brand orange so
	   any environment without venue-level injection still gets a brand
	   look (e.g. local dev outside a real page render). */
	--ab-color-accent: #FC8D28;
	--ab-color-on-accent: #1A2A38;
	--ab-color-accent-soft: #fff6ec;
	--ab-radius-tile: 10px;
	--ab-radius-modal: 16px;
	--ab-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Reset only what's necessary to defeat aggressive theme styles. */
.ab-widget-root,
.ab-widget-root *,
.ab-overlay,
.ab-overlay * {
	box-sizing: border-box;
	font-family: var(--ab-font);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Theme-defeat for anchors. WP themes commonly set
 *   .entry-content a { color: <theme-link-blue> }
 * which has higher specificity than our class rules. Forcing the
 * default colour to inherit from the parent means each anchor's
 * styled rule (e.g. .ab-utility) takes over cleanly. */
.ab-widget-root a,
.ab-overlay a {
	color: inherit;
}

/* Trigger button (inline, in-page). The floating CTA comes later. */
.ab-widget-root .ab-trigger {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 11px 18px;
	background: var(--ab-color-accent);
	color: var(--ab-color-on-accent);
	border: none;
	border-radius: var(--ab-radius-tile);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.01em;
	cursor: pointer;
	transition: filter 150ms ease;
	line-height: 1;
	box-shadow: none;
	text-shadow: none;
	outline: none;
}

.ab-widget-root .ab-trigger:hover {
	filter: brightness(0.92);
	box-shadow: none;
}

.ab-widget-root .ab-trigger:focus,
.ab-widget-root .ab-trigger:active {
	box-shadow: none;
	outline: none;
}

.ab-widget-root .ab-trigger:focus-visible {
	outline: 2px solid var(--ab-color-accent);
	outline-offset: 2px;
}

/* Overlay: dim the page, center the modal.
 * Accent vars inherit from .ab-widget-root via the DOM tree. */
.ab-overlay {
	position: fixed;
	inset: 0;
	background: rgba(28, 28, 28, 0.45);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	padding: 16px;
	animation: ab-fade-in 200ms ease-out;
}

@keyframes ab-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes ab-modal-in {
	from { opacity: 0; transform: translateY(8px) scale(0.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Modal panel. */
.ab-overlay .ab-modal {
	background: #ffffff;
	border-radius: var(--ab-radius-modal);
	width: 100%;
	max-width: 420px;
	min-height: 480px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 20px 22px 22px;
	color: var(--ab-color-ink);
	display: flex;
	flex-direction: column;
	animation: ab-modal-in 250ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Header row: identity + close button. */
.ab-modal__header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 20px;
}

.ab-identity {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ab-identity__logo-img,
.ab-identity__logo-fallback {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	flex-shrink: 0;
}

.ab-identity__logo-img {
	object-fit: cover;
}

.ab-identity__logo-fallback {
	background: var(--ab-color-ink);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: -0.02em;
}

.ab-identity__name {
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--ab-color-ink);
}

.ab-identity__city {
	font-size: 11px;
	color: var(--ab-color-quiet);
	margin-top: 2px;
}

.ab-close {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--ab-color-bg-soft);
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--ab-color-ink);
	flex-shrink: 0;
	transition: background-color 150ms ease;
	padding: 0;
}

.ab-close:hover {
	background: #ececeb;
}

.ab-close:focus-visible {
	outline: 2px solid var(--ab-color-ink);
	outline-offset: 1px;
}

/* ─── Centred form-screen header ──────────────────────────────────────
 *
 * Used by PickScreen / ConfirmScreen / EnquiryScreen — the task-doing
 * screens. The logo sits centred at the top, with the close button
 * floating top-right (and optionally a back arrow top-left). Replaces
 * the older small-logo-left "identity strip" treatment.
 *
 * The success screens (DoneScreen / EnquiryDoneScreen) have their own
 * centred-logo + tick treatment under .ab-success — don't share.
 */
.ab-modal__header.ab-modal__header--centered {
	position: relative;
	justify-content: center;
	align-items: center;
	min-height: 48px;
	margin-bottom: 10px;
}

.ab-form-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	max-width: 70%;
}

.ab-form-logo__img {
	max-height: 40px;
	max-width: 100%;
	width: auto;
	height: auto;
	display: block;
}

.ab-widget-root .ab-form-logo__fallback,
.ab-overlay .ab-form-logo__fallback {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 16px;
	font-weight: 600;
	color: var(--ab-color-ink);
	letter-spacing: 0.01em;
}

/* Close / back buttons positioned over the centred header so the logo
   sits visually centred regardless of which buttons are present. */
.ab-close.ab-close--floating,
.ab-back.ab-back--floating {
	position: absolute;
	top: 0;
}

.ab-close.ab-close--floating {
	right: 0;
}

.ab-back.ab-back--floating {
	left: 0;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--ab-color-bg-soft);
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--ab-color-ink);
	padding: 0;
	transition: background-color 150ms ease;
}

.ab-back.ab-back--floating:hover {
	background: #ececeb;
}

.ab-back.ab-back--floating:focus-visible {
	outline: 2px solid var(--ab-color-ink);
	outline-offset: 1px;
}

/* ─── Address footer ─────────────────────────────────────────────────
 *
 * Small muted line below the primary CTA on each task-doing modal.
 * Reassures the diner about which physical venue they're booking
 * without crowding the form header above. Hidden if the venue has
 * no address.
 */
.ab-form-address {
	text-align: center;
	font-size: 11.5px;
	color: var(--ab-color-quiet);
	margin-top: 12px;
	line-height: 1.5;
}

/* Defensive heading reset. WordPress themes commonly style h1-h6 with
 * larger sizes via specific selectors like .entry-content h2 — those
 * beat our single-class rules and our heading bloats inside the modal.
 * Forcing inherit on the bare tag inside our scopes neutralises the
 * theme so our class rules below win cleanly. */
.ab-widget-root h1, .ab-widget-root h2, .ab-widget-root h3,
.ab-widget-root h4, .ab-widget-root h5, .ab-widget-root h6,
.ab-overlay h1, .ab-overlay h2, .ab-overlay h3,
.ab-overlay h4, .ab-overlay h5, .ab-overlay h6 {
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	margin: 0;
	padding: 0;
	color: inherit;
}

/* Heading. Scoped under .ab-overlay so the rule has enough specificity
 * to win against any remaining theme styles. */
.ab-widget-root .ab-heading,
.ab-overlay .ab-heading {
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -0.01em;
	margin: 0 0 10px;
	color: var(--ab-color-ink);
}

/* Live summary line. */
.ab-summary {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--ab-color-mute);
	min-height: 18px;
	margin-bottom: 18px;
}

.ab-summary__icon {
	display: inline-flex;
	color: var(--ab-color-ink);
	line-height: 0;
}

.ab-summary strong {
	color: var(--ab-color-ink);
	font-weight: 500;
}

.ab-summary__pending {
	font-style: italic;
	color: var(--ab-color-disabled);
	font-weight: 400;
}

/* Section (labelled group of controls). */
.ab-section {
	margin-bottom: 10px;
}

.ab-section__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 6px;
}

.ab-section__label {
	font-size: 11px;
	color: var(--ab-color-quiet);
	letter-spacing: 0.02em;
}

.ab-section__action {
	background: none;
	border: none;
	font-size: 11px;
	color: var(--ab-color-quiet);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 0;
	transition: color 150ms ease;
	text-decoration: none;
}

.ab-section__action:hover:not([disabled]) {
	color: var(--ab-color-ink);
}

.ab-section__action[disabled] {
	color: var(--ab-color-disabled);
	cursor: not-allowed;
}

/* Party-size tile row. */
/* Party-size tiles. Two grid configurations depending on whether the
   row is collapsed (1-6 + 7+) or expanded to show all options. Each
   layout fills its row width evenly so there are no awkward gaps. */
.ab-tiles {
	display: grid;
	gap: 6px;
}

.ab-tiles--collapsed {
	grid-template-columns: repeat(7, 1fr);
}

.ab-tiles--expanded {
	grid-template-columns: repeat(6, 1fr);
}

.ab-tile {
	height: 44px;
	border-radius: var(--ab-radius-tile);
	border: 0.5px solid var(--ab-color-line);
	background: #ffffff;
	color: var(--ab-color-ink);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	cursor: pointer;
	transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
	padding: 0;
	min-width: 0;
}

.ab-tile:hover {
	border-color: var(--ab-color-ink);
}

.ab-tile--selected {
	background: var(--ab-color-ink);
	color: #ffffff;
	border-color: var(--ab-color-ink);
	font-weight: 500;
}

.ab-tile--muted {
	color: var(--ab-color-mute);
	font-size: 14px;
}

.ab-tile:focus-visible {
	outline: 2px solid var(--ab-color-ink);
	outline-offset: 1px;
}

/* Date strip. Fills modal width evenly across visible days. */
.ab-date-strip {
	display: flex;
	gap: 6px;
}

.ab-date-tile {
	flex: 1 1 0;
	min-width: 0;
	height: 44px;
	padding: 0 2px;
	border-radius: var(--ab-radius-tile);
	border: 0.5px solid var(--ab-color-line);
	background: #ffffff;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1px;
	transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.ab-date-tile:hover {
	border-color: var(--ab-color-ink);
}

.ab-date-tile--selected {
	background: var(--ab-color-ink);
	color: #ffffff;
	border-color: var(--ab-color-ink);
}

.ab-date-tile__label {
	font-size: 8px;
	line-height: 1;
	color: var(--ab-color-quiet);
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.ab-date-tile--selected .ab-date-tile__label {
	color: rgba(255, 255, 255, 0.7);
}

.ab-date-tile__num {
	font-size: 15px;
	line-height: 1;
	font-weight: 500;
	color: var(--ab-color-ink);
}

.ab-date-tile--selected .ab-date-tile__num {
	color: #ffffff;
}

/* "Choose a different day" full-width button. Sits below the inline
   date strip as a secondary fallback for picking dates outside the
   visible week. Outlined (not filled) so it doesn't compete with the
   primary CTA at the bottom of the modal. */
.ab-pick-day {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 12px;
	margin-top: 8px;
	border: 0.5px solid var(--ab-color-line);
	border-radius: var(--ab-radius-tile);
	background: #ffffff;
	color: var(--ab-color-mute);
	font-size: 13px;
	font-family: var(--ab-font);
	cursor: pointer;
	transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease;
}

.ab-pick-day svg {
	color: var(--ab-color-ink); /* Icon stays strong even when button copy is muted */
	flex-shrink: 0;
}

.ab-pick-day:not([disabled]):hover {
	border-color: var(--ab-color-ink);
	color: var(--ab-color-ink);
	background: var(--ab-color-bg-softer);
}

.ab-pick-day[disabled] {
	cursor: not-allowed;
	opacity: 0.85;
}

.ab-pick-day__label {
	letter-spacing: 0.01em;
}

.ab-pick-day:focus-visible {
	outline: 2px solid var(--ab-color-ink);
	outline-offset: 1px;
}

.ab-date-tile:focus-visible {
	outline: 2px solid var(--ab-color-ink);
	outline-offset: 1px;
}

/* Time grid. 3 columns at all sizes for visual consistency and clean
   row-filling regardless of how many slots a venue offers. */
.ab-time-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 6px;
}

.ab-time-tile {
	height: 44px;
	padding: 0;
	border-radius: var(--ab-radius-tile);
	border: 0.5px solid var(--ab-color-line);
	background: #ffffff;
	color: var(--ab-color-ink);
	font-size: 15px;
	cursor: pointer;
	transition: background-color 150ms ease, border-color 150ms ease;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
}
}

.ab-time-tile:hover:not(:disabled) {
	border-color: var(--ab-color-ink);
}

.ab-time-tile--selected {
	background: var(--ab-color-ink);
	color: #ffffff;
	border-color: var(--ab-color-ink);
	font-weight: 500;
}

.ab-time-tile--unavailable {
	color: var(--ab-color-disabled);
	background: var(--ab-color-bg-softer);
	border-color: var(--ab-color-line-soft);
	text-decoration: line-through;
	cursor: not-allowed;
}

.ab-time-tile:focus-visible {
	outline: 2px solid var(--ab-color-ink);
	outline-offset: 1px;
}

.ab-time-empty {
	padding: 24px 0;
	text-align: center;
	font-size: 13px;
	color: var(--ab-color-quiet);
}

.ab-time-empty--error {
	color: #b04040;
}

/* Spacer pushes the CTA to the bottom of the modal. */
.ab-modal__spacer {
	flex-grow: 1;
	min-height: 12px;
}

/* Primary CTA button. */
.ab-overlay .ab-cta {
	background: var(--ab-color-accent);
	color: var(--ab-color-on-accent);
	border: none;
	padding: 12px;
	border-radius: var(--ab-radius-tile);
	text-align: center;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.01em;
	cursor: pointer;
	width: 100%;
	transition: filter 150ms ease, opacity 150ms ease;
	margin-top: 6px;
	box-shadow: none;
	text-shadow: none;
	outline: none;
	/* Inline-flex so a spinner + text sit centred together. Defaults
	   here cover the non-submitting state (just text); when submitting
	   the JS renders a spinner span as the first child and the gap
	   shows them spaced out. */
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.ab-overlay .ab-cta:hover {
	/* Darken the accent slightly on hover. Works across any user-set
	   accent without needing to compute a hover variant in PHP. */
	filter: brightness(0.92);
	box-shadow: none;
}

.ab-overlay .ab-cta:focus,
.ab-overlay .ab-cta:active {
	box-shadow: none;
	outline: none;
}

.ab-overlay .ab-cta--disabled {
	background: var(--ab-color-disabled-bg);
	color: var(--ab-color-mute);
	cursor: not-allowed;
	filter: none;
}

.ab-overlay .ab-cta:focus-visible {
	outline: 2px solid var(--ab-color-accent);
	outline-offset: 2px;
}

/* Inline spinner for the submitting state. Lives inside the CTA when
 * the user has clicked submit. Colour inherits from the CTA so it
 * automatically matches whatever accent foreground is in effect (navy
 * on yellow, cream on burgundy, etc.). 16px diameter, 2px stroke,
 * one-second rotation — restrained, no flash. */
.ab-cta__spinner {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid currentColor;
	border-top-color: transparent;
	border-radius: 50%;
	animation: ab-spin 800ms linear infinite;
	flex-shrink: 0;
}

@keyframes ab-spin {
	to { transform: rotate(360deg); }
}

/* Respect reduced-motion users: still indicate progress with a pulse
 * instead of a spin, so we're not implying instant work but also not
 * triggering vestibular issues. */
@media (prefers-reduced-motion: reduce) {
	.ab-cta__spinner,
	.ab-redirecting__spinner {
		animation: ab-pulse 1400ms ease-in-out infinite;
	}
	@keyframes ab-pulse {
		0%, 100% { opacity: 1; }
		50%      { opacity: 0.35; }
	}
}

/* ─── Redirecting screen ──────────────────────────────────────────────
 *
 * Shown for the moment between "POST returns 201" and "browser
 * actually navigates to the confirmation page". Without this the
 * user stares at a frozen-looking modal. With it, they see a
 * deliberate "we're done, taking you there" state — same logo at
 * the top for visual continuity, big centred spinner, gentle copy.
 */
.ab-overlay .ab-modal--centered {
	min-height: 320px;
	justify-content: center;
}

.ab-redirecting {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 18px;
	padding: 24px 16px;
	text-align: center;
}

.ab-redirecting__spinner {
	width: 36px;
	height: 36px;
	border: 3px solid var(--ab-color-line);
	border-top-color: var(--ab-color-accent);
	border-radius: 50%;
	animation: ab-spin 900ms linear infinite;
}

.ab-redirecting__message {
	font-size: 14px;
	color: var(--ab-color-mute);
	line-height: 1.5;
}

/* Mobile bottom-sheet variant. */
@media (max-width: 600px) {
	.ab-overlay {
		padding: 0;
		align-items: flex-end;
	}

	.ab-overlay .ab-modal {
		max-width: 100%;
		border-radius: 20px 20px 0 0;
		max-height: 92vh;
		min-height: auto;
		padding: 18px 18px 24px;
		animation: ab-sheet-in 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
	}

	.ab-widget-root .ab-heading,
	.ab-overlay .ab-heading {
		font-size: 17px;
	}
}

@keyframes ab-sheet-in {
	from { transform: translateY(100%); }
	to { transform: translateY(0); }
}

/* Reduced-motion users: skip the slide. */
@media (prefers-reduced-motion: reduce) {
	.ab-overlay,
	.ab-overlay .ab-modal {
		animation: none;
	}
}

/* Inline error placeholder (when block is misconfigured in the editor). */
.ab-widget-error {
	padding: 12px 16px;
	background: #fff3cd;
	border: 1px solid #ffeaa7;
	border-radius: 8px;
	color: #856404;
	font-size: 13px;
	font-family: var(--ab-font);
}

/* ─── Screen 2: Confirm ───────────────────────────────────────────────── */

.ab-overlay .ab-modal__header--end {
	justify-content: flex-end;
}

.ab-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--ab-color-ink);
	padding: 4px 0;
	font-size: 12px;
}

.ab-back:hover {
	opacity: 0.7;
}

.ab-back__label {
	color: var(--ab-color-mute);
}

.ab-back:focus-visible {
	outline: 2px solid var(--ab-color-ink);
	outline-offset: 2px;
}

.ab-summary-tile {
	background: var(--ab-color-bg-soft);
	border-radius: 10px;
	padding: 10px 12px;
	margin-bottom: 12px;
}

.ab-summary-tile__line {
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--ab-color-ink);
}

.ab-summary-tile__sub {
	font-size: 12px;
	color: var(--ab-color-mute);
	margin-top: 2px;
}

.ab-field {
	margin-bottom: 10px;
}

.ab-field__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 3px;
}

.ab-field__label {
	font-size: 11px;
	color: var(--ab-color-quiet);
	letter-spacing: 0.02em;
	display: block;
	margin-bottom: 3px;
	line-height: 1.4;
}

.ab-field__head .ab-field__label {
	margin-bottom: 0;
}

.ab-field__optional {
	font-size: 11px;
	color: var(--ab-color-quiet);
}

.ab-input,
.ab-textarea {
	width: 100%;
	border: 0.5px solid var(--ab-color-line);
	border-radius: var(--ab-radius-tile);
	padding: 8px 12px;
	font-size: 14px;
	color: var(--ab-color-ink);
	background: #ffffff;
	font-family: var(--ab-font);
	transition: border-color 150ms ease;
}

.ab-input:focus,
.ab-textarea:focus {
	outline: none;
	border-color: var(--ab-color-ink);
	border-width: 1px;
}

.ab-input--error {
	border-color: #c8504e;
	border-width: 1px;
}

.ab-textarea {
	resize: vertical;
	min-height: 44px;
	font-family: var(--ab-font);
	line-height: 1.5;
}

.ab-textarea::placeholder,
.ab-input::placeholder {
	color: var(--ab-color-disabled);
}

/* Dietary toggle pills. */
.ab-diet-row {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ab-diet-toggle {
	padding: 7px 12px;
	border-radius: 999px;
	border: 0.5px solid var(--ab-color-line);
	background: #ffffff;
	color: var(--ab-color-ink);
	font-size: 12px;
	cursor: pointer;
	transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
	font-family: var(--ab-font);
}

.ab-diet-toggle:hover {
	border-color: var(--ab-color-ink);
}

.ab-diet-toggle--selected {
	background: var(--ab-color-ink);
	color: #ffffff;
	border-color: var(--ab-color-ink);
	font-weight: 500;
}

.ab-diet-toggle:focus-visible {
	outline: 2px solid var(--ab-color-ink);
	outline-offset: 1px;
}

/* Email confirmation note. */
.ab-confirm-note {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 6px 0;
	margin-bottom: 8px;
	font-size: 12px;
	color: var(--ab-color-mute);
	line-height: 1.5;
}

.ab-confirm-note__icon {
	display: inline-flex;
	color: var(--ab-color-mute);
	margin-top: 1px;
}

/* Submission error. */
.ab-error {
	padding: 10px 12px;
	background: #faecec;
	border: 0.5px solid #d8a8a8;
	border-radius: 8px;
	color: #8a2a2a;
	font-size: 12px;
	margin-bottom: 12px;
	line-height: 1.5;
}

/* ─── Screen 3: Done ──────────────────────────────────────────────────── */

.ab-success {
	text-align: center;
	padding: 8px 0 20px;
}

/* Centred logo block — sits above the tick, mirroring the layout of
 * the voucher and event confirmation pages so the booking widget's
 * success view reads as a sibling of those surfaces. */
.ab-success__logo {
	margin: 0 auto 14px;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 48px;
}

.ab-success__logo-img {
	max-height: 56px;
	max-width: 70%;
	width: auto;
	height: auto;
	display: block;
}

.ab-widget-root .ab-success__logo-fallback,
.ab-overlay .ab-success__logo-fallback {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--ab-color-bg-soft);
	color: var(--ab-color-ink);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 18px;
	font-weight: 600;
}

.ab-success__check {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--ab-color-accent);
	margin: 0 auto 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--ab-color-on-accent);
}

.ab-widget-root .ab-success__heading,
.ab-overlay .ab-success__heading {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 24px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.01em;
	margin-bottom: 6px;
	color: var(--ab-color-ink);
}

.ab-success__sub {
	font-size: 13px;
	color: var(--ab-color-mute);
	line-height: 1.6;
}

/* Receipt-style booking summary. */
.ab-receipt {
	background: var(--ab-color-bg-soft);
	border-radius: 12px;
	padding: 16px 18px;
	margin-bottom: 14px;
}

.ab-receipt__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 6px 0;
	font-size: 13px;
}

.ab-receipt__row + .ab-receipt__row {
	border-top: 0.5px solid var(--ab-color-line-soft);
}

.ab-receipt__key {
	color: var(--ab-color-quiet);
}

.ab-receipt__val {
	font-weight: 500;
	color: var(--ab-color-ink);
}

/* Reference code chip — small monospace pill matching the
   confirmation card on plugin-owned thank-you pages, so booking
   confirmations feel like a sibling of events / vouchers. */
.ab-receipt__ref {
	display: inline-block;
	padding: 2px 8px;
	background: #ffffff;
	border: 0.5px solid var(--ab-color-line);
	border-radius: 4px;
	font-family: 'SF Mono', Menlo, Consolas, monospace;
	font-size: 12px;
	color: var(--ab-color-ink);
	letter-spacing: 0.02em;
	font-weight: 500;
}

/* Calendar / Directions buttons. */
.ab-utility-row {
	display: flex;
	gap: 8px;
	margin-bottom: 14px;
}

.ab-widget-root .ab-utility,
.ab-overlay .ab-utility {
	flex: 1;
	border: 0.5px solid var(--ab-color-line);
	border-radius: var(--ab-radius-tile);
	padding: 11px;
	text-align: center;
	font-size: 13px;
	color: var(--ab-color-ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	text-decoration: none;
	transition: border-color 150ms ease, background-color 150ms ease;
	font-family: var(--ab-font);
	background: #ffffff;
}

.ab-widget-root .ab-utility:hover,
.ab-overlay .ab-utility:hover {
	border-color: var(--ab-color-ink);
	color: var(--ab-color-ink);
	text-decoration: none;
}

.ab-widget-root .ab-utility:focus-visible,
.ab-overlay .ab-utility:focus-visible {
	outline: 2px solid var(--ab-color-accent);
	outline-offset: 1px;
}

/* Footer note (modify/cancel hint + spam-folder fallback). */
.ab-footer-note {
	text-align: center;
	font-size: 12px;
	color: var(--ab-color-quiet);
	padding-top: 8px;
	line-height: 1.6;
}

.ab-footer-note__q {
	color: var(--ab-color-quiet);
}

.ab-footer-note__hint {
	color: var(--ab-color-mute);
	margin-top: 2px;
}

.ab-footer-note__help {
	margin-top: 12px;
	padding-top: 10px;
	border-top: 0.5px solid var(--ab-color-line-soft);
	font-size: 11.5px;
	color: var(--ab-color-quiet);
	line-height: 1.5;
}

.ab-widget-root .ab-footer-note__help a,
.ab-overlay .ab-footer-note__help a {
	color: var(--ab-color-ink);
	text-decoration: underline;
	text-decoration-style: dotted;
	text-decoration-color: var(--ab-color-accent);
	text-underline-offset: 3px;
}


/* ─── Overflow flow: large-group escape hatch ──────────────────────
 *
 * The "Larger group →" button on PickScreen below the party tiles.
 * Visually distinct — text link rather than a tile, so it doesn't
 * compete with the numbered party-size buttons.
 */

.ab-widget-root .ab-larger-group,
.ab-overlay .ab-larger-group {
	display: block;
	margin-top: 12px;
	background: transparent;
	border: 0;
	padding: 6px 0;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	color: #1A2A38;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	cursor: pointer;
	transition: color 120ms ease;
}

.ab-widget-root .ab-larger-group:hover,
.ab-overlay .ab-larger-group:hover,
.ab-widget-root .ab-larger-group:focus,
.ab-overlay .ab-larger-group:focus {
	color: var(--ab-color-accent);
	outline: none;
}

/* ─── Enquiry screen ──────────────────────────────────────────────── */

.ab-overlay .ab-intro {
	margin: 2px 0 14px;
	color: #6B7480;
	font-size: 13px;
	line-height: 1.5;
}

.ab-overlay .ab-bucket-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
	margin-top: 6px;
}

.ab-overlay .ab-bucket-tile {
	background: #fff;
	border: 1px solid #E5E7EA;
	border-radius: 8px;
	padding: 12px 14px;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	color: #1A2A38;
	cursor: pointer;
	text-align: center;
	transition: border-color 120ms ease, background-color 120ms ease;
}

.ab-overlay .ab-bucket-tile:hover {
	border-color: #C5CCD3;
}

.ab-overlay .ab-bucket-tile--selected {
	border-color: var(--ab-color-accent);
	background: var(--ab-color-accent-soft);
	color: #1d2327;
}

.ab-overlay .ab-bucket-tile:focus-visible {
	outline: 2px solid var(--ab-color-accent);
	outline-offset: 2px;
}
