/*
 * Local Booking - public form and customer booking page.
 * Everything is scoped to .lbk-app. Change the look from the settings page (colours, radius, font) or
 * override the variables below in your theme:
 *
 *   .lbk-app { --lbk-primary: #7a3e65; --lbk-radius: 4px; }
 */
.lbk-app {
	--lbk-primary: #2f6f6a;
	--lbk-accent: #b4572f;
	--lbk-text: #1f2933;
	--lbk-bg: #ffffff;
	--lbk-radius: 10px;
	--lbk-font: inherit;
	--lbk-heading-font: var(--lbk-font);
	--lbk-page: #f3f4f6;

	--lbk-muted: #5b6672;
	--lbk-border: #d5dbe1;
	--lbk-surface: #f6f8f9;
	--lbk-primary-soft: #e8f1f0;
	--lbk-danger: #b42318;
	--lbk-danger-soft: #fdecea;
	--lbk-ok: #1a7f37;
	--lbk-focus: #1d4ed8;

	box-sizing: border-box;
	max-width: 880px;
	margin: 0 auto;
	color: var(--lbk-text);
	font-family: var(--lbk-font);
	font-size: 16px;
	line-height: 1.5;
}
@supports (color: color-mix(in srgb, red, blue)) {
	.lbk-app {
		--lbk-primary-soft: color-mix(in srgb, var(--lbk-primary) 11%, #ffffff);
		--lbk-border: color-mix(in srgb, var(--lbk-text) 18%, #ffffff);
		--lbk-surface: color-mix(in srgb, var(--lbk-text) 4%, #ffffff);
		--lbk-muted: color-mix(in srgb, var(--lbk-text) 72%, #ffffff);
	}
}
.lbk-app *, .lbk-app *::before, .lbk-app *::after { box-sizing: inherit; }

.lbk-card {
	background: var(--lbk-bg);
	border: 1px solid var(--lbk-border);
	border-radius: calc(var(--lbk-radius) + 4px);
	padding: 20px;
}
@media (min-width: 640px) { .lbk-card { padding: 28px; } }

.lbk-h { margin: 0 0 4px; font-family: var(--lbk-heading-font); font-size: 1.4rem; line-height: 1.25; color: var(--lbk-text); font-weight: 650; }
.lbk-h:focus { outline: none; }
.lbk-sub { margin: 0 0 20px; color: var(--lbk-muted); }
.lbk-muted { color: var(--lbk-muted); }
.lbk-small { font-size: .875rem; }

/* Progress */
.lbk-steps { display: flex; gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; }
.lbk-steps li { flex: 1; min-width: 0; }
.lbk-step-bar { height: 5px; border-radius: 5px; background: var(--lbk-border); }
.lbk-steps li.is-done .lbk-step-bar, .lbk-steps li.is-current .lbk-step-bar { background: var(--lbk-primary); }
.lbk-step-label { display: block; margin-top: 6px; font-size: .75rem; color: var(--lbk-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbk-steps li.is-current .lbk-step-label { color: var(--lbk-text); font-weight: 600; }
@media (max-width: 520px) { .lbk-steps li:not(.is-current) .lbk-step-label { display: none; } }

/* Buttons */
.lbk-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 10px 20px;
	font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
	color: var(--lbk-primary); background: var(--lbk-bg);
	border: 1.5px solid var(--lbk-primary); border-radius: var(--lbk-radius);
	transition: background-color .12s, color .12s;
}
.lbk-btn:hover { background: var(--lbk-primary-soft); }
.lbk-btn-primary { color: #fff; background: var(--lbk-primary); }
.lbk-btn-primary:hover { background: var(--lbk-primary); filter: brightness(.92); }
.lbk-btn-danger { color: var(--lbk-danger); border-color: var(--lbk-danger); }
.lbk-btn-danger:hover { background: var(--lbk-danger-soft); }
.lbk-btn-link { border-color: transparent; background: transparent; padding-left: 8px; padding-right: 8px; }
.lbk-btn[disabled], .lbk-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; filter: none; }
.lbk-app :focus-visible { outline: 3px solid var(--lbk-focus); outline-offset: 2px; }

.lbk-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 24px; }
.lbk-actions .lbk-btn-primary { margin-left: auto; }

/* Choice lists (services, people) */
.lbk-choices { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.lbk-cat { margin: 18px 0 8px; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--lbk-muted); font-weight: 650; }
.lbk-cat:first-child { margin-top: 0; }
.lbk-choice {
	display: flex; width: 100%; align-items: center; gap: 14px; text-align: left;
	padding: 14px 16px; min-height: 64px; font: inherit; color: inherit; cursor: pointer;
	background: var(--lbk-bg); border: 1.5px solid var(--lbk-border); border-radius: var(--lbk-radius);
}
.lbk-choice:hover { border-color: var(--lbk-primary); background: var(--lbk-primary-soft); }
.lbk-choice[aria-pressed="true"] { border-color: var(--lbk-primary); background: var(--lbk-primary-soft); box-shadow: inset 0 0 0 1px var(--lbk-primary); }
.lbk-choice-main { flex: 1; min-width: 0; }
.lbk-choice-title { display: block; font-weight: 650; }
.lbk-choice-desc { display: block; margin-top: 2px; font-size: .875rem; color: var(--lbk-muted); }
.lbk-choice-meta { text-align: right; white-space: nowrap; font-size: .9rem; }
.lbk-choice-meta strong { display: block; font-size: 1rem; }
.lbk-avatar {
	flex: none; width: 42px; height: 42px; border-radius: 50%;
	display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--lbk-primary);
}

/* Date and time */
.lbk-when { display: grid; gap: 24px; }
@media (min-width: 720px) { .lbk-when { grid-template-columns: minmax(300px, 340px) 1fr; } }
.lbk-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.lbk-cal-title { font-weight: 650; }
.lbk-icon-btn {
	width: 44px; height: 44px; display: grid; place-items: center; font: inherit; font-size: 1.2rem; cursor: pointer;
	color: var(--lbk-text); background: transparent; border: 1px solid transparent; border-radius: 50%;
}
.lbk-icon-btn:hover:not([disabled]) { background: var(--lbk-surface); border-color: var(--lbk-border); }
.lbk-icon-btn[disabled] { opacity: .3; cursor: not-allowed; }
.lbk-cal { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; }
.lbk-cal th { padding: 4px 0; font-size: .75rem; font-weight: 600; color: var(--lbk-muted); }
.lbk-cal td { padding: 0; text-align: center; }
.lbk-day {
	width: 100%; aspect-ratio: 1; min-height: 40px; font: inherit; cursor: pointer;
	color: var(--lbk-text); background: transparent; border: 1.5px solid transparent; border-radius: 50%;
}
.lbk-day:hover:not([disabled]) { background: var(--lbk-primary-soft); border-color: var(--lbk-primary); }
.lbk-day.is-available { font-weight: 650; background: var(--lbk-primary-soft); }
.lbk-day[disabled] { color: var(--lbk-muted); opacity: .45; cursor: default; }
.lbk-day[aria-pressed="true"] { color: #fff; background: var(--lbk-primary); border-color: var(--lbk-primary); opacity: 1; }
.lbk-day.is-today { text-decoration: underline; text-underline-offset: 3px; }
.lbk-slots-title { margin: 0 0 10px; font-weight: 650; }
.lbk-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.lbk-slot {
	width: 100%; min-height: 44px; padding: 8px 6px; font: inherit; font-weight: 600; cursor: pointer;
	color: var(--lbk-primary); background: var(--lbk-bg); border: 1.5px solid var(--lbk-border); border-radius: var(--lbk-radius);
}
.lbk-slot:hover { border-color: var(--lbk-primary); background: var(--lbk-primary-soft); }
.lbk-slot[aria-pressed="true"] { color: #fff; background: var(--lbk-primary); border-color: var(--lbk-primary); }
.lbk-tz { margin: 14px 0 0; font-size: .85rem; color: var(--lbk-muted); }

/* Forms */
.lbk-form { display: grid; gap: 16px; }
@media (min-width: 640px) { .lbk-form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } }
.lbk-field label, .lbk-label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .95rem; }
.lbk-req { color: var(--lbk-danger); }
.lbk-field input[type="text"], .lbk-field input[type="email"], .lbk-field input[type="tel"], .lbk-field textarea, .lbk-field select {
	width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; color: var(--lbk-text);
	background: var(--lbk-bg); border: 1.5px solid var(--lbk-border); border-radius: var(--lbk-radius);
}
.lbk-field textarea { min-height: 96px; resize: vertical; }
.lbk-field input:focus, .lbk-field textarea:focus, .lbk-field select:focus { outline: 3px solid var(--lbk-focus); outline-offset: 1px; border-color: var(--lbk-focus); }
.lbk-field.has-error input, .lbk-field.has-error textarea { border-color: var(--lbk-danger); }
.lbk-error-text { margin: 6px 0 0; color: var(--lbk-danger); font-size: .9rem; }
.lbk-hint { margin: 6px 0 0; color: var(--lbk-muted); font-size: .875rem; }
.lbk-checkrow { display: flex; gap: 10px; align-items: flex-start; }
.lbk-checkrow input { flex: none; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--lbk-primary); }
.lbk-checkrow label { margin: 0; font-weight: 400; }
.lbk-trap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Alerts */
.lbk-alert { margin: 0 0 16px; padding: 12px 14px; border-radius: var(--lbk-radius); border: 1px solid var(--lbk-danger); background: var(--lbk-danger-soft); color: #7a1a12; }
.lbk-note { margin: 0 0 16px; padding: 12px 14px; border-radius: var(--lbk-radius); border: 1px solid var(--lbk-border); background: var(--lbk-primary-soft); }
.lbk-alert:focus { outline: 3px solid var(--lbk-focus); }

/* Summary */
.lbk-summary { margin: 0; display: grid; gap: 0; border: 1px solid var(--lbk-border); border-radius: var(--lbk-radius); overflow: hidden; }
.lbk-summary > div { display: flex; gap: 12px; justify-content: space-between; padding: 12px 14px; border-top: 1px solid var(--lbk-border); }
.lbk-summary > div:first-child { border-top: 0; }
.lbk-summary dt { color: var(--lbk-muted); flex: none; }
.lbk-summary dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }

/* Result */
.lbk-result { text-align: center; padding: 8px 0; }
.lbk-tick { width: 64px; height: 64px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; background: var(--lbk-primary-soft); color: var(--lbk-primary); font-size: 2rem; }
.lbk-ref { display: inline-block; margin: 8px 0 16px; padding: 6px 14px; font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; letter-spacing: .08em; background: var(--lbk-surface); border-radius: var(--lbk-radius); }
.lbk-status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .85rem; font-weight: 650; background: var(--lbk-primary-soft); color: var(--lbk-primary); }
.lbk-status.is-pending { background: #fff4d6; color: #7a5200; }
.lbk-status.is-cancelled, .lbk-status.is-rejected { background: var(--lbk-danger-soft); color: var(--lbk-danger); }

.lbk-loading { padding: 24px; text-align: center; color: var(--lbk-muted); }
.lbk-spinner { display: inline-block; width: 18px; height: 18px; vertical-align: -3px; margin-right: 8px; border: 2.5px solid var(--lbk-border); border-top-color: var(--lbk-primary); border-radius: 50%; animation: lbk-spin .8s linear infinite; }
@keyframes lbk-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lbk-spinner { animation-duration: 3s; } .lbk-btn { transition: none; } }

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

/* Customer booking page */
.lbk-page { max-width: 640px; margin: 0 auto; padding: 16px 16px 48px; }
.lbk-page-head { padding: 22px 4px 18px; font-family: var(--lbk-heading-font); font-weight: 600; font-size: 1.5rem; letter-spacing: .12em; text-transform: uppercase; color: var(--lbk-text); }
body.lbk-manage-body { margin: 0; background: var(--lbk-page); color: var(--lbk-text); font-family: var(--lbk-font); }
.lbk-manage-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.lbk-panel-box { margin-top: 18px; padding: 16px; border: 1px solid var(--lbk-border); border-radius: var(--lbk-radius); background: var(--lbk-surface); }

/* Promo code / gift voucher box on the review step. */
.lbk-codes { margin-top: 14px; }
.lbk-coderow { display: flex; gap: 8px; }
.lbk-coderow input { flex: 1 1 auto; min-width: 0; text-transform: uppercase; letter-spacing: .04em; }
.lbk-code-ok { margin: 6px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; color: var(--lbk-primary); }
