/*
 * Lef Bookings – widget base styling.
 *
 * Every colour, font and radius comes from the theme (leflite CSS variables,
 * with neutral fallbacks for other themes). Sites restyle the widget by
 * overriding the --lbm-* tokens below in their child theme, never by
 * restyling components. Buttons reuse the theme's .btn + bg-* classes and the
 * party stepper reuses the theme's .quantity markup.
 */

.lbm {
	--lbm-primary: var(--primary, #2f6f4f);
	--lbm-primary-content: var(--primary-content, #fff);
	--lbm-secondary: var(--secondary, #23402f);
	--lbm-secondary-content: var(--secondary-content, #fff);
	--lbm-surface: var(--white, #fff);
	--lbm-text: var(--black, #1e1a16);
	--lbm-soft: var(--gray, #f4f1ec);
	--lbm-muted: color-mix(in srgb, var(--lbm-text) 64%, transparent);
	--lbm-faint: color-mix(in srgb, var(--lbm-text) 38%, transparent);
	--lbm-line: color-mix(in srgb, var(--lbm-text) 14%, transparent);
	--lbm-selected: var(--lbm-secondary);
	--lbm-selected-bg: color-mix(in srgb, var(--lbm-primary) 10%, var(--lbm-surface));
	--lbm-hover-bg: color-mix(in srgb, var(--lbm-primary) 16%, var(--lbm-surface));
	--lbm-ok: var(--succes, #3f7a36);
	--lbm-error: var(--error, #c0392b);
	--lbm-radius: var(--general-border-radius, 12px);
	--lbm-radius-lg: calc(var(--lbm-radius) * 1.6);
	--lbm-font: var(--body-font, inherit);
	--lbm-heading-font: var(--heading-font, inherit);
	--lbm-shadow: 0 24px 60px rgb(30 26 22 / 28%), 0 2px 8px rgb(30 26 22 / 12%);
	--lbm-panel-width: 400px; /* floating panel */
	--lbm-offset: 24px;
	--lbm-z-closed: 990;
	--lbm-z-open: 10000;

	font-family: var(--lbm-font);
	color: var(--lbm-text);
	font-size: 16px;
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
}

/* ------------------------------------------------------------------ */
/* Scoped resets: the theme styles `main button`, headings and forms.  */
/* :where() keeps them at (0,1,0) so component rules below win, while */
/* still beating the theme's `main button` (0,0,2).                    */
/* ------------------------------------------------------------------ */

.lbm *,
.lbm *::before,
.lbm *::after {
	box-sizing: border-box;
}

.lbm :where(button:not(.btn):not(.lbm-fab)) {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: inherit;
	text-transform: none;
	letter-spacing: normal;
	min-height: 0;
	box-shadow: none;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.lbm :where(button:not(.btn):not(.lbm-fab)):hover {
	background: none;
	color: inherit;
}

.lbm button,
.lbm a,
.lbm input,
.lbm label {
	-webkit-tap-highlight-color: transparent;
}

/* No ring after a mouse/touch click, but always for keyboard users. */
.lbm :focus:not(:focus-visible) {
	outline: none;
}

/* Keyboard focus in the text colour: brand colours can be too light (WCAG 2.4.11, 3:1). */
.lbm :focus-visible {
	outline: 2px solid var(--lbm-text);
	outline-offset: 2px;
}

.lbm .lbm-head :focus-visible {
	outline-color: var(--lbm-secondary-content);
}

.lbm a,
#main .lbm a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.lbm p {
	margin: 0;
	line-height: 1.5;
}

.lbm .lbm-h {
	margin: 0;
	font-family: var(--lbm-heading-font);
	font-size: 20px;
	line-height: 1.2;
	font-weight: 400;
	color: var(--lbm-text);
}

.lbm .lbm-h:focus {
	outline: none;
}

.lbm .lbm-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Theme buttons: keep the theme's look, only layout + touch size. */
.lbm .btn {
	margin: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	white-space: nowrap;
	cursor: pointer;
}

.lbm .btn[disabled],
.lbm .btn[aria-disabled="true"] {
	opacity: .45;
	cursor: not-allowed;
}

/* A really disabled button ignores clicks; aria-disabled stays clickable so
   the widget can say what is still missing. */
.lbm .btn[disabled] {
	pointer-events: none;
}

.lbm .btn svg {
	flex: none;
}

/* Fallback when the theme is not leflite (no .btn / bg-* rules). */
.lbm--no-theme .btn {
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	font-weight: 700;
	font-size: 16px;
}

.lbm--no-theme .bg-primary {
	background-color: var(--lbm-primary);
	color: var(--lbm-primary-content);
}

.lbm--no-theme .bg-secondary {
	background-color: var(--lbm-secondary);
	color: var(--lbm-secondary-content);
}

/* ------------------------------------------------------------------ */
/* Floating button                                                     */
/* ------------------------------------------------------------------ */

.lbm-launcher {
	position: fixed;
	right: var(--lbm-offset);
	bottom: calc(var(--lbm-offset) + var(--lbm-lift, 0px));
	z-index: var(--lbm-z-closed);
}

/* Spots (one button per spot; chosen per booking type) */
.lbm-launcher--bottom-left {
	right: auto;
	left: var(--lbm-offset);
}

.lbm-launcher--middle-right,
.lbm-launcher--middle-left {
	top: 50%;
	bottom: auto;
	transform: translateY(-50%);
}

.lbm-launcher--middle-left {
	right: auto;
	left: var(--lbm-offset);
}

.lbm-launcher.is-open {
	z-index: calc(var(--lbm-z-open) + 1);
}

.lbm .lbm-fab {
	display: flex;
	align-items: center;
	gap: 12px;
	height: 56px;
	padding: 0 22px 0 8px;
	border: 0;
	border-radius: 999px;
	font-size: 16px;
	font-weight: 700;
	box-shadow: 0 10px 28px rgb(30 26 22 / 30%);
	transition: transform .2s ease;
	cursor: pointer;
}

.lbm .lbm-fab:hover {
	transform: translateY(-2px);
}

/* Without leflite there are no bg-* classes: brand colours from the tokens. */
.lbm--no-theme .lbm-fab,
.lbm--no-theme .lbm-fab:hover {
	background-color: var(--lbm-secondary);
	color: var(--lbm-secondary-content);
}

.lbm--no-theme .lbm-fab__icon {
	background-color: var(--lbm-primary);
	color: var(--lbm-primary-content);
}

.lbm .lbm-fab__icon .icon {
	font-size: 18px;
	line-height: 1;
}

.lbm .lbm-fab__icon {
	width: 40px;
	height: 40px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lbm .lbm-fab__chev,
.lbm-launcher.is-open .lbm-fab__cal {
	display: none;
}

.lbm-launcher.is-open .lbm-fab__chev {
	display: block;
}

/* ------------------------------------------------------------------ */
/* Modal                                                               */
/* ------------------------------------------------------------------ */

html.lbm-lock,
html.lbm-lock body {
	overflow: hidden;
}

.lbm--modal {
	position: fixed;
	inset: 0;
	z-index: var(--lbm-z-open);
	pointer-events: none;
}

.lbm--modal .lbm-scrim {
	position: absolute;
	inset: 0;
	background: rgb(30 26 22 / 28%);
	opacity: 0;
	transition: opacity .25s ease;
}

.lbm--modal.is-open {
	pointer-events: auto;
}

.lbm--modal.is-open .lbm-scrim {
	opacity: 1;
}

.lbm--modal .lbm-panel {
	position: absolute;
	right: var(--lbm-offset);
	bottom: calc(var(--lbm-offset) + 72px + var(--lbm-lift, 0px));
	width: min(var(--lbm-panel-width), calc(100vw - 32px));
	max-height: min(680px, calc(100dvh - 128px));
	box-shadow: var(--lbm-shadow);
	transform-origin: bottom right;
	transform: translateY(16px) scale(.96);
	opacity: 0;
	transition: transform .32s cubic-bezier(.2, .8, .2, 1), opacity .22s ease;
}

.lbm--modal.is-open .lbm-panel {
	transform: none;
	opacity: 1;
}

.lbm--modal[data-from$="-left"] .lbm-panel {
	right: auto;
	left: var(--lbm-offset);
	transform-origin: bottom left;
}

/* Phones and low screens: full-screen sheet. */
@media (max-width: 600px), (max-height: 640px) {
	.lbm--modal .lbm-panel,
	.lbm--modal[data-from] .lbm-panel {
		inset: 0;
		width: 100%;
		max-height: none;
		height: 100dvh;
		border-radius: 0;
		transform: translateY(24px);
	}

	/* As specific as the rule above, so it must come after it. */
	.lbm--modal.is-open .lbm-panel,
	.lbm--modal.is-open[data-from] .lbm-panel {
		transform: none;
	}

	.lbm-launcher.is-open {
		display: none;
	}

	.lbm--modal .lbm-close {
		display: flex;
	}

	.lbm .lbm-progress__step {
		min-height: 44px;
		justify-content: center;
	}
}

/* ------------------------------------------------------------------ */
/* Panel                                                               */
/* ------------------------------------------------------------------ */

.lbm .lbm-panel {
	display: flex;
	flex-direction: column;
	background: var(--lbm-surface);
	border-radius: var(--lbm-radius-lg);
	overflow: hidden;
}

.lbm--inline {
	width: 100%;
	max-width: var(--lbm-inline-max, 720px);
	margin-inline: auto;
}

.lbm--inline .lbm-panel {
	position: relative;
	box-shadow: 0 0 0 1px var(--lbm-line);
	min-height: 520px;
}

.lbm .lbm-head {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 18px 20px 16px;
	background-color: var(--lbm-secondary);
	color: var(--lbm-secondary-content);
}

.lbm .lbm-head__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.lbm .lbm-head__brand {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.lbm .lbm-logo {
	display: block;
	flex: none;
	height: 40px;
	width: 52px;
	background: center / contain no-repeat;
}

/* Opt-in (child theme): tint the logo in the primary colour. */
.lbm--logo-mask .lbm-logo {
	background: var(--lbm-primary);
	-webkit-mask: var(--lbm-logo) center / contain no-repeat;
	mask: var(--lbm-logo) center / contain no-repeat;
}

.lbm .lbm-head__titles {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.lbm .lbm-title {
	margin: 0;
	font-family: var(--lbm-heading-font);
	font-size: 19px;
	line-height: 1.15;
	font-weight: 400;
	color: inherit;
}

.lbm .lbm-sub {
	font-size: 13px;
	opacity: .8;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.lbm .lbm-close {
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: color-mix(in srgb, var(--lbm-secondary-content) 12%, transparent);
	color: var(--lbm-secondary-content);
}

.lbm .lbm-close:hover {
	background: color-mix(in srgb, var(--lbm-secondary-content) 22%, transparent);
	color: var(--lbm-secondary-content);
}

/* Progress */
.lbm .lbm-progress {
	display: grid;
	grid-template-columns: repeat(var(--lbm-steps, 4), minmax(0, 1fr));
	gap: 6px;
}

.lbm .lbm-progress__step {
	display: flex;
	flex-direction: column;
	gap: 6px;
	text-align: left;
	min-width: 0;
	cursor: default;
}

.lbm .lbm-progress__step[data-go] {
	cursor: pointer;
}

.lbm .lbm-progress__bar {
	height: 4px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--lbm-secondary-content) 22%, transparent);
}

.lbm .lbm-progress__label {
	font-size: 12px;
	font-weight: 600;
	color: color-mix(in srgb, var(--lbm-secondary-content) 55%, transparent);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.lbm .lbm-progress__step.is-done .lbm-progress__bar {
	background: var(--lbm-primary);
}

.lbm .lbm-progress__step.is-done .lbm-progress__label,
.lbm .lbm-progress__step.is-current .lbm-progress__label {
	color: var(--lbm-secondary-content);
}

.lbm .lbm-progress__step.is-current .lbm-progress__bar {
	background: var(--lbm-secondary-content);
}

/* Phones: no room for every choice under the bars; only the current step is named. */
@media (max-width: 600px) {
	.lbm .lbm-progress__step {
		overflow: hidden;
	}

	.lbm .lbm-progress__step:not(.is-current) .lbm-progress__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
}

/* A phone number never breaks over two lines. */
.lbm a[href^="tel:"] {
	white-space: nowrap;
}

/* Body */
.lbm .lbm-body {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 16px 20px 20px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.lbm .lbm-step {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.lbm .lbm-intro {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.lbm .lbm-note {
	font-size: 14px;
	color: var(--lbm-muted);
}

.lbm .lbm-note--small {
	font-size: 13px;
}

.lbm .lbm-alert {
	padding: 10px 12px;
	border-radius: var(--lbm-radius);
	background: color-mix(in srgb, var(--lbm-error) 10%, var(--lbm-surface));
	color: var(--lbm-text);
	font-size: 14px;
	border-left: 3px solid var(--lbm-error);
}

.lbm .lbm-alert--info {
	background: var(--lbm-soft);
	border-left-color: var(--lbm-primary);
}

/* Footer */
.lbm .lbm-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 20px 16px;
	border-top: 1px solid var(--lbm-line);
	background: var(--lbm-surface);
}

.lbm .lbm-foot[hidden] {
	display: none;
}

.lbm .lbm-total {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
}

.lbm .lbm-total__amount {
	font-family: var(--lbm-heading-font);
	font-size: 22px;
	line-height: 1.1;
}

.lbm .lbm-total__sub {
	font-size: 12px;
	color: var(--lbm-muted);
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ------------------------------------------------------------------ */
/* Options (offers, staff, slots, sessions)                            */
/* ------------------------------------------------------------------ */

.lbm .lbm-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.lbm .lbm-option {
	display: flex;
	gap: 14px;
	align-items: center;
	width: 100%;
	padding: 12px;
	border: 1.5px solid var(--lbm-line);
	border-radius: var(--lbm-radius);
	background: var(--lbm-surface);
	text-align: left;
	color: var(--lbm-text);
}

/* An option that opens another page ("Open tasting"): the same card, no link look. */
.lbm a.lbm-option,
#main .lbm a.lbm-option {
	color: var(--lbm-text);
	text-decoration: none;
}

.lbm .lbm-option__go {
	flex: none;
	color: var(--lbm-muted);
}

.lbm .lbm-option:hover {
	border-color: var(--lbm-primary);
	background: var(--lbm-surface);
}

.lbm .lbm-option[aria-pressed="true"] {
	border-color: var(--lbm-selected);
	background: var(--lbm-selected-bg);
}

.lbm .lbm-option[aria-disabled="true"] {
	cursor: default;
	color: var(--lbm-faint);
	border-color: var(--lbm-line);
}

.lbm .lbm-option__img {
	width: 64px;
	height: 64px;
	flex: none;
	border-radius: calc(var(--lbm-radius) * .7);
	object-fit: cover;
	background: var(--lbm-soft);
}

.lbm .lbm-option__body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	flex: 1;
	min-width: 0;
}

.lbm .lbm-option__top {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
}

.lbm .lbm-option__name {
	font-size: 16px;
	font-weight: 700;
}

.lbm .lbm-option__price {
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}

.lbm .lbm-option__desc {
	font-size: 13px;
	line-height: 1.45;
	color: var(--lbm-muted);
}

.lbm .lbm-option--slot {
	justify-content: space-between;
	padding: 16px;
}

.lbm .lbm-option__time {
	font-size: 16px;
	font-weight: 700;
}

.lbm .lbm-option__avail {
	font-size: 13px;
	font-weight: 600;
	color: var(--lbm-ok);
	text-align: right;
}

.lbm .lbm-option[aria-disabled="true"] .lbm-option__avail {
	color: var(--lbm-faint);
}

.lbm .lbm-option__avail.is-waitlist {
	color: var(--lbm-muted);
}

.lbm .lbm-slots {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 8px;
}

.lbm .lbm-service-label {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--lbm-muted);
	margin-top: 4px;
}

.lbm .lbm-avatar {
	width: 44px;
	height: 44px;
	flex: none;
	border-radius: 999px;
	background: var(--lbm-soft);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	overflow: hidden;
}

.lbm .lbm-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ------------------------------------------------------------------ */
/* Party                                                               */
/* ------------------------------------------------------------------ */

.lbm .lbm-party-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 8px;
}

.lbm .lbm-chips {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 8px;
}

.lbm .lbm-chip {
	height: 44px;
	border-radius: 999px;
	border: 1.5px solid var(--lbm-line);
	background: var(--lbm-surface);
	color: var(--lbm-text);
	font-size: 15px;
	font-weight: 600;
	text-align: center;
}

.lbm .lbm-chip:hover {
	border-color: var(--lbm-primary);
	background: var(--lbm-surface);
}

.lbm .lbm-chip[aria-pressed="true"],
.lbm .lbm-chip[aria-pressed="true"]:hover {
	border-color: var(--lbm-selected);
	background: var(--lbm-selected);
	color: var(--lbm-secondary-content);
}

.lbm .lbm-party-grid .lbm-chip {
	height: 48px;
	border-radius: var(--lbm-radius);
}

/* Theme .quantity, larger in the party step. */
.lbm .quantity.lbm-qty {
	width: 100%;
	height: 72px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 10px;
}

.lbm .quantity.lbm-qty button {
	width: 52px;
	height: 52px;
	flex: none;
	font-size: 26px;
	font-weight: 600;
	line-height: 1;
	text-align: center;
	border-radius: 999px;
}

.lbm .quantity.lbm-qty .qty {
	width: auto;
	flex: 1;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0;
	font-family: var(--lbm-heading-font);
	font-size: 36px;
	line-height: 1;
	text-align: center;
	color: var(--lbm-text);
}

/* Mirror of the theme's quantity.scss for sites where the WooCommerce
   stylesheet is not loaded (non-webshop licence). */
body:not(.lef-webshop) .lbm .quantity {
	border: none;
	background-color: var(--lbm-soft);
	border-radius: var(--btn-border-radius, var(--lbm-radius));
	overflow: hidden;
}

body:not(.lef-webshop) .lbm .quantity button {
	background: transparent;
	border: unset;
	color: var(--gray-content, var(--lbm-text));
}

body:not(.lef-webshop) .lbm .quantity .qty {
	border: none;
	background-color: var(--lbm-soft);
	text-align: center;
	-moz-appearance: textfield;
}

.lbm .quantity .qty::-webkit-inner-spin-button,
.lbm .quantity .qty::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* ------------------------------------------------------------------ */
/* Calendar                                                            */
/* ------------------------------------------------------------------ */

.lbm .lbm-cal__nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.lbm .lbm-cal__month {
	font-weight: 700;
	font-size: 16px;
	text-transform: capitalize;
}

.lbm .lbm-round {
	width: 36px;
	height: 36px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--lbm-soft);
	color: var(--lbm-text);
}

.lbm .lbm-round:hover {
	background: var(--lbm-hover-bg);
}

.lbm .lbm-round[aria-disabled="true"] {
	opacity: .35;
	cursor: default;
}

/* Fingers: tap targets of at least 44px (after the base sizes, or they win). */
@media (max-width: 600px), (max-height: 640px) {
	.lbm .lbm-close,
	.lbm .lbm-round {
		width: 44px;
		height: 44px;
	}
}

.lbm .lbm-cal__grid {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.lbm .lbm-cal__row {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 4px;
}

.lbm .lbm-cal__wd {
	text-align: center;
	font-size: 12px;
	font-weight: 600;
	color: var(--lbm-muted);
	text-transform: uppercase;
}

.lbm .lbm-day {
	position: relative;
	width: 100%;
	height: 44px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	text-align: center;
	color: var(--lbm-text);
}

.lbm .lbm-day:hover {
	background: var(--lbm-hover-bg);
}

.lbm .lbm-day[aria-disabled="true"] {
	color: var(--lbm-faint);
	font-weight: 400;
	cursor: default;
}

.lbm .lbm-day[aria-disabled="true"]:hover {
	background: none;
}

.lbm .lbm-day[aria-selected="true"],
.lbm .lbm-day[aria-selected="true"]:hover {
	background: var(--lbm-selected);
	color: var(--lbm-secondary-content);
	font-weight: 700;
}

.lbm .lbm-day.is-limited::after,
.lbm .lbm-day.is-waitlist::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 5px;
	width: 4px;
	height: 4px;
	margin-left: -2px;
	border-radius: 999px;
	background: var(--warning, #ffa000);
}

.lbm .lbm-day.is-waitlist::after {
	background: var(--lbm-faint);
}

.lbm .lbm-day.is-today {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.lbm .lbm-cal__blank {
	height: 44px;
}

.lbm .lbm-next-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.lbm .lbm-next-chips .lbm-chip {
	padding: 0 14px;
	height: 40px;
}

/* ------------------------------------------------------------------ */
/* Details form + summary                                              */
/* ------------------------------------------------------------------ */

.lbm .lbm-summary {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--lbm-line);
	border-radius: var(--lbm-radius);
	background: var(--lbm-soft);
	padding: 4px 14px;
}

.lbm .lbm-summary__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 11px 0;
	border-bottom: 1px solid var(--lbm-line);
	color: var(--lbm-text);
}

.lbm .lbm-summary__row:last-child {
	border-bottom: 0;
}

.lbm button.lbm-summary__row:hover {
	color: var(--lbm-ok);
}

.lbm .lbm-summary__label {
	font-size: 14px;
	color: var(--lbm-muted);
}

.lbm .lbm-summary__value {
	font-size: 15px;
	font-weight: 600;
	text-align: right;
}

.lbm .lbm-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
}

.lbm .lbm-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

@media (max-width: 360px) {
	.lbm .lbm-form__row {
		grid-template-columns: 1fr;
	}
}

.lbm .lbm-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
}

.lbm .lbm-field > span {
	font-size: 13px;
	font-weight: 600;
}

.lbm .lbm-field input,
.lbm .lbm-field textarea {
	width: 100%;
	margin: 0;
	padding: 10px 12px;
	min-height: 46px;
	border: 1px solid var(--lbm-line);
	border-radius: var(--form-elements-border-radius, 8px);
	background: var(--lbm-surface);
	color: var(--lbm-text);
	font: inherit;
	font-size: 16px; /* no iOS zoom */
}

.lbm .lbm-field textarea {
	min-height: 76px;
	resize: vertical;
}

.lbm .lbm-field input:focus,
.lbm .lbm-field textarea:focus {
	border-color: var(--lbm-secondary);
}

.lbm .lbm-field.is-invalid input,
.lbm .lbm-field.is-invalid textarea {
	border-color: var(--lbm-error);
}

.lbm .lbm-field__error {
	font-size: 13px;
	color: var(--lbm-error);
}

.lbm .lbm-field__hint button {
	text-decoration: underline;
	font-size: 13px;
	color: var(--lbm-text);
}

.lbm .lbm-check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 14px;
	margin: 0;
}

.lbm .lbm-check input {
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	flex: none;
	accent-color: var(--lbm-secondary);
}

/* Discount code: link → field + theme button */
.lbm .lbm-coupon {
	font-size: 14px;
}

.lbm .lbm-coupon.is-applied {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 12px;
	align-items: baseline;
}

.lbm .lbm-coupon__row {
	display: flex;
	gap: 8px;
}

.lbm .lbm-coupon__row input {
	flex: 1 1 auto;
	min-width: 0;
	text-transform: uppercase;
}

.lbm .lbm-coupon__row .btn {
	flex: none;
	margin: 0;
}

.lbm .lbm-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ------------------------------------------------------------------ */
/* Pay / done / manage                                                 */
/* ------------------------------------------------------------------ */

.lbm .lbm-pay-frame {
	width: 100%;
	/* Until the page reports its height (then an inline height, also smaller). */
	height: 420px;
	border: 0;
	border-radius: var(--lbm-radius);
	background: var(--lbm-surface);
}

.lbm .lbm-hold {
	font-size: 13px;
	color: var(--lbm-muted);
}

.lbm .lbm-done {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.lbm .lbm-done__icon,
.lbm .lbm-when__icon {
	width: 52px;
	height: 52px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--lbm-primary);
	color: var(--lbm-primary-content);
}

.lbm .lbm-cal-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.lbm .lbm-cal-links a,
#main .lbm .lbm-cal-links a {
	display: inline-flex;
	align-items: center;
	height: 40px;
	padding: 0 14px;
	border-radius: 999px;
	border: 1.5px solid var(--lbm-line);
	color: var(--lbm-text);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.lbm .lbm-cal-links a:hover {
	border-color: var(--lbm-primary);
}

.lbm .lbm-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* Text colour + underline: the brand colour is often too light on white (contrast). */
.lbm .lbm-linkbtn {
	text-decoration: underline;
	text-underline-offset: 2px;
	color: var(--lbm-text);
	font-weight: 600;
}

/* Loading */
.lbm .lbm-skeleton {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.lbm .lbm-skeleton span {
	display: block;
	height: 64px;
	border-radius: var(--lbm-radius);
	background: linear-gradient(90deg, var(--lbm-soft), color-mix(in srgb, var(--lbm-soft) 40%, var(--lbm-surface)), var(--lbm-soft));
	background-size: 200% 100%;
	animation: lbm-shimmer 1.2s linear infinite;
}

.lbm .lbm-skeleton span:first-child {
	height: 24px;
	width: 60%;
}

@keyframes lbm-shimmer {
	to {
		background-position: -200% 0;
	}
}

.lbm .lbm-noscript {
	font-size: 15px;
}

@media (prefers-reduced-motion: reduce) {
	.lbm *,
	.lbm *::before,
	.lbm *::after {
		transition: none !important;
		animation: none !important;
	}
}

@media (forced-colors: active) {
	.lbm .lbm-option[aria-pressed="true"],
	.lbm .lbm-chip[aria-pressed="true"],
	.lbm .lbm-day[aria-selected="true"] {
		outline: 2px solid Highlight;
	}
}

@media print {
	.lbm-launcher,
	.lbm--modal {
		display: none !important;
	}
}

/* Phones: a round icon button in the button's colour (one colour, no second
   circle); the label stays available to screen readers. */
@media (max-width: 600px) {
	.lbm .lbm-fab {
		width: 56px;
		padding: 0;
		justify-content: center;
	}

	/* Over the bg-* class and an own HEX colour (inline style). */
	.lbm .lbm-fab .lbm-fab__icon {
		background: none !important;
		color: inherit !important;
	}

	.lbm .lbm-fab__icon .icon {
		font-size: 22px;
	}

	.lbm .lbm-fab__icon svg {
		width: 24px;
		height: 24px;
	}

	.lbm .lbm-fab__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
}

/* A payment is still open: a small status dot on the icon (the label says
   "Finish payment"); the button itself keeps the site's style. */
.lbm .lbm-fab--pending .lbm-fab__icon {
	position: relative;
}
.lbm .lbm-fab--pending .lbm-fab__icon::after {
	content: "";
	position: absolute;
	top: -2px;
	right: -2px;
	width: 12px;
	height: 12px;
	border: 2px solid var(--lbm-surface, #fff);
	border-radius: 50%;
	background: #f59e0b;
	box-sizing: border-box;
	animation: lbm-pending-pulse 1.8s ease-in-out infinite;
}
@keyframes lbm-pending-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgb(245 158 11 / 55%); }
	50% { box-shadow: 0 0 0 6px rgb(245 158 11 / 0%); }
}
@media (prefers-reduced-motion: reduce) {
	.lbm .lbm-fab--pending .lbm-fab__icon::after {
		animation: none;
	}
}

/* Summary: the amount paid now stands out (deposit or full payment). */
.lbm .lbm-summary__row--strong .lbm-summary__label {
	color: var(--lbm-text);
	font-weight: 600;
}
.lbm .lbm-summary__row--strong .lbm-summary__value {
	font-size: 17px;
	font-weight: 700;
}

/* Option without a picture: the leflite icon in the same 64px tile. */
.lbm .lbm-option__icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: calc(var(--lbm-radius) * .75);
	background: var(--lbm-selected-bg);
	color: var(--lbm-primary);
	font-size: 26px;
}

/* ---------------- Next availability + day states (date step) ---------------- */

.lbm .lbm-nextav-box:empty {
	display: none;
}

.lbm .lbm-nextav {
	display: grid;
	gap: 8px;
	margin-bottom: 16px;
}

.lbm .lbm-nextav__title {
	justify-self: start;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--lbm-soft);
	color: var(--lbm-muted);
	font-size: 12px;
	font-weight: 600;
}

.lbm .lbm-nextav__tiles {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}

.lbm .lbm-nextav__tile {
	display: grid;
	place-items: center;
	align-content: center;
	gap: 2px;
	min-height: 64px;
	padding: 8px;
	border: 1px solid var(--lbm-line);
	border-radius: var(--lbm-radius);
	background: var(--lbm-surface);
	color: var(--lbm-text);
	font-size: 13px;
	line-height: 1.3;
	text-align: center;
	cursor: pointer;
	transition: border-color .15s, background-color .15s;
}

.lbm .lbm-nextav__tile strong {
	font-size: 15px;
}

.lbm .lbm-nextav__tile span {
	color: var(--lbm-muted);
}

.lbm .lbm-nextav__tile:hover {
	border-color: var(--lbm-selected);
	background: var(--lbm-hover-bg);
}

.lbm .lbm-nextav__tile[aria-pressed="true"] {
	border-color: var(--lbm-selected);
	background: var(--lbm-selected-bg);
}

.lbm .lbm-nextav__tile--more svg {
	width: 20px;
	height: 20px;
}

/* Available: a ring; waiting list only: a dashed ring; full / not for this choice: struck through. */
.lbm .lbm-day.is-available,
.lbm .lbm-day.is-limited {
	box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--lbm-text) 45%, transparent);
}

.lbm .lbm-day.is-waitlist {
	box-shadow: none;
	outline: 1.5px dashed color-mix(in srgb, var(--lbm-text) 45%, transparent);
	outline-offset: -3px;
}

.lbm .lbm-day.is-full,
.lbm .lbm-day.is-no-fit,
.lbm .lbm-day.is-not-offered {
	background-image: linear-gradient(to top right, transparent calc(50% - .75px), color-mix(in srgb, var(--lbm-text) 28%, transparent) calc(50% - .75px), color-mix(in srgb, var(--lbm-text) 28%, transparent) calc(50% + .75px), transparent calc(50% + .75px));
	background-size: 62% 62%;
	background-position: center;
	background-repeat: no-repeat;
}

.lbm .lbm-day[aria-selected="true"] {
	box-shadow: none;
	outline: none;
	background-image: none;
}

.lbm .lbm-cal__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin-top: 10px;
	font-size: 12px;
	color: var(--lbm-muted);
}

.lbm .lbm-legend {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.lbm .lbm-legend::before {
	content: "";
	width: 14px;
	height: 14px;
	border-radius: 999px;
	box-sizing: border-box;
}

.lbm .lbm-legend--ok::before {
	box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--lbm-text) 45%, transparent);
}

.lbm .lbm-legend--waitlist::before {
	border: 1.5px dashed color-mix(in srgb, var(--lbm-text) 45%, transparent);
}

.lbm .lbm-legend--full::before {
	background: linear-gradient(to top right, transparent calc(50% - .75px), color-mix(in srgb, var(--lbm-text) 35%, transparent) calc(50% - .75px), color-mix(in srgb, var(--lbm-text) 35%, transparent) calc(50% + .75px), transparent calc(50% + .75px));
}

/* ---------------- Room for details & payment (desktop popup) ----------------
 * The panel widens toward the middle of the screen (its corner stays where
 * the button is), like Zenchef; the content fades back in once it has. */
.lbm--modal .lbm-panel {
	transition: transform .32s cubic-bezier(.2, .8, .2, 1), opacity .22s ease, width .38s cubic-bezier(.2, .8, .2, 1), max-height .38s cubic-bezier(.2, .8, .2, 1);
}

.lbm--modal .lbm--wide > .lbm-panel {
	width: min(980px, calc(100vw - 2 * var(--lbm-offset)));
	max-height: min(800px, calc(100dvh - 128px));
}

.lbm .lbm-panel.is-resizing .lbm-body > * {
	animation: lbm-wide-in .45s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes lbm-wide-in {
	0%,
	35% {
		opacity: 0;
		transform: translateY(6px);
	}

	100% {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lbm--modal .lbm-panel {
		transition: opacity .2s ease;
	}

	.lbm .lbm-panel.is-resizing .lbm-body > * {
		animation: none;
	}
}

/* Two columns as soon as there is room (wide popup, or a wide inline widget). */
.lbm .lbm-body {
	container: lbm-body / inline-size;
}

.lbm .lbm-split__title {
	display: none;
	margin: 0 0 4px;
	font-family: var(--lbm-heading-font);
	font-size: 18px;
	font-weight: 700;
}

/* Narrow: the summary and notes as one block above the form, with air between
 * them and a line under it. */
.lbm .lbm-split__aside {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.lbm .lbm-split__aside > .lbm-note {
	margin: 0;
	line-height: 1.5;
}

.lbm .lbm-split__aside > .lbm-note--practical {
	font-size: 14px;
	color: var(--lbm-text);
}

.lbm .lbm-split > .lbm-form {
	gap: 16px;
}

@container lbm-body (max-width: 719px) {
	.lbm .lbm-step.lbm-split {
		gap: 16px;
	}

	.lbm .lbm-split__aside:not(.lbm-split__aside--end) {
		padding-bottom: 24px;
		border-bottom: 1px solid var(--lbm-line);
	}
}

@container lbm-body (min-width: 720px) {
	.lbm .lbm-split {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
		grid-template-areas:
			"head aside"
			"main aside";
		column-gap: 32px;
		row-gap: 14px;
		align-items: start;
	}

	.lbm .lbm-split > .lbm-intro {
		grid-area: head;
	}

	.lbm .lbm-split__main {
		grid-area: main;
		min-width: 0;
	}

	.lbm .lbm-split__aside {
		grid-area: aside;
		position: sticky;
		top: 0;
		display: grid;
		gap: 12px;
		padding: 18px;
		border-radius: var(--lbm-radius-lg);
		background: var(--lbm-soft);
	}

	.lbm .lbm-split__title {
		display: block;
	}
}

/* Done / request received. Narrow: message, then the summary, then calendar
 * and notes (as before). Wide: message left, "Your booking" right. */
.lbm .lbm-done.lbm-split {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.lbm .lbm-done .lbm-split__main {
	display: contents;
}

.lbm .lbm-done > .lbm-split__aside {
	order: 1;
}

.lbm .lbm-done .lbm-split__main > .lbm-step,
.lbm .lbm-done .lbm-split__main > .lbm-note,
.lbm .lbm-done .lbm-split__main > .lbm-actions {
	order: 2;
}

@container lbm-body (min-width: 720px) {
	.lbm .lbm-done.lbm-split {
		display: grid;
		grid-template-areas: "main aside";
	}

	.lbm .lbm-done .lbm-split__main {
		display: flex;
		flex-direction: column;
		gap: 14px;
	}
}

/* "Choose a time first." next to the grey button. */
.lbm .lbm-total__sub.is-hint {
	color: var(--lbm-text);
	font-weight: 600;
	animation: lbm-hint-in .25s ease;
}

@keyframes lbm-hint-in {
	from {
		opacity: 0;
		transform: translateY(3px);
	}
}

/* 3-D Secure: the bank's window gets the whole panel. */
.lbm .lbm-panel.is-3ds .lbm-head,
.lbm .lbm-panel.is-3ds .lbm-foot,
.lbm .lbm-panel.is-3ds .lbm-intro,
.lbm .lbm-panel.is-3ds .lbm-hold,
.lbm .lbm-panel.is-3ds .lbm-split__aside {
	display: none;
}

.lbm .lbm-panel.is-3ds .lbm-body {
	padding: 0;
	overflow: hidden;
}

.lbm .lbm-panel.is-3ds .lbm-split {
	display: block;
}

/* Location step with many locations: search above the list. */
.lbm .lbm-locsearch {
	margin-bottom: 12px;
}

.lbm .lbm-locsearch input {
	width: 100%;
}

.lbm .lbm-options [hidden] {
	display: none;
}

/* Manage screen: heading + status label, the "when" card, actions in a row.
 * Same split layout as the done screen; card = .lbm-summary look. */
.lbm .lbm-manage__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
}

.lbm .lbm-manage__head .lbm-h {
	margin: 0;
}

.lbm .lbm-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
}

.lbm .lbm-status::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 999px;
	background: currentColor;
}

.lbm .lbm-status--ok {
	color: var(--lbm-ok);
	background: color-mix(in srgb, var(--lbm-ok) 12%, var(--lbm-surface));
}

.lbm .lbm-status--wait {
	color: color-mix(in srgb, #b26b00 85%, var(--lbm-text));
	background: color-mix(in srgb, #f0a020 16%, var(--lbm-surface));
}

.lbm .lbm-status--off {
	color: var(--lbm-muted);
	background: var(--lbm-soft);
}

.lbm .lbm-when {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 16px;
	border: 1px solid var(--lbm-line);
	border-radius: var(--lbm-radius);
	background: var(--lbm-soft);
}

.lbm .lbm-when__icon {
	flex: none;
	width: 44px;
	height: 44px;
}

.lbm .lbm-when.is-past .lbm-when__icon {
	background: var(--lbm-faint);
}

.lbm .lbm-when__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.lbm .lbm-when__date {
	font-family: var(--lbm-heading-font);
	font-size: 18px;
	line-height: 1.3;
}

.lbm .lbm-when__date::first-letter {
	text-transform: uppercase;
}

.lbm .lbm-when__sub {
	font-size: 16px;
	font-weight: 600;
}

.lbm .lbm-when__place {
	margin-top: 4px;
	font-size: 14px;
	color: var(--lbm-muted);
}

.lbm .lbm-when.is-past .lbm-when__date,
.lbm .lbm-when.is-past .lbm-when__sub {
	text-decoration: line-through;
	color: var(--lbm-muted);
}

/* Primary button and "cancel" link on one line. */
.lbm .lbm-actions--row {
	align-items: center;
	gap: 10px 20px;
}

/* Narrow: card and actions first, then the details, then the calendar. */
.lbm .lbm-manage .lbm-split__main > .lbm-actions,
.lbm .lbm-manage .lbm-split__main > .lbm-note {
	order: 0;
}

.lbm .lbm-manage .lbm-split__main > .lbm-step {
	order: 2;
}

.lbm .lbm-manage__pay {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.lbm .lbm-manage__pay p {
	margin: 0;
}

.lbm .lbm-manage__confirm {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.lbm .lbm-manage__confirm > p {
	margin: 0;
}
