/* CK Reservations – public booking form. Every value can be overridden from the form design settings. */

.ck-form {
	--ckf-accent-auto: var(--primary-color, var(--wp--preset--color--primary, #1f4e79));
	--ckf-title-c: var(--ckf-title, inherit);
	--ckf-text-c: var(--ckf-text, inherit);
	--ckf-label-c: var(--ckf-label, inherit);
	/* The main colour: set directly, else the button colour, else the theme's primary colour. */
	--ckf-accent-c: var(--ckf-accent, var(--ckf-btn-bg, var(--ckf-accent-auto)));
	--ckf-field-bg-c: var(--ckf-field-bg, #fff);
	--ckf-field-text-c: var(--ckf-field-text, #1d2a36);
	/* Defaults follow the text colour, so they work on light and dark pages alike. */
	--ckf-border-c: var(--ckf-border, color-mix(in srgb, currentColor 24%, transparent));
	--ckf-focus-c: var(--ckf-focus, var(--ckf-accent-c));
	--ckf-bg-c: var(--ckf-bg, transparent);
	--ckf-unavailable-c: var(--ckf-unavailable, color-mix(in srgb, currentColor 45%, transparent));
	--ckf-success-c: var(--ckf-success, #2e7d4f);
	--ckf-error-c: var(--ckf-error, #b23a3a);
	--ckf-btn-bg-c: var(--ckf-btn-bg, var(--ckf-accent-c));
	--ckf-btn-text-c: var(--ckf-btn-text, #fff);
	/* Text on the main colour (chosen day, time, party size, table); worked out by the script. */
	--ckf-on-accent-c: var(--ckf-on-accent, var(--ckf-btn-text-c));
	/* Chosen items; the script swaps these when the main colour is too close to the fields. */
	--ckf-sel-c: var(--ckf-sel, var(--ckf-accent-c));
	--ckf-on-sel-c: var(--ckf-on-sel, var(--ckf-on-accent-c));
	--ckf-btn-border-c: var(--ckf-btn-border, var(--ckf-btn-bg-c));
	--ckf-btn-bg-h-c: var(--ckf-btn-bg-h, var(--ckf-btn-bg-c));
	--ckf-btn-text-h-c: var(--ckf-btn-text-h, var(--ckf-btn-text-c));
	--ckf-btn-border-h-c: var(--ckf-btn-border-h, var(--ckf-btn-bg-h-c));

	box-sizing: border-box;
	width: 100%;
	max-width: var(--ckf-max, 920px);
	margin: 0 auto;
	padding: var(--ckf-pad, 0);
	border-radius: var(--ckf-radius, 0);
	background: var(--ckf-bg-c);
	box-shadow: var(--ckf-shadow, none);
	color: var(--ckf-text-c);
	font-family: var(--ckf-font, inherit);
	font-size: var(--ckf-size, 16px);
	line-height: 1.5;
	text-align: left;
}

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

.ck-form__inner {
	margin: 0;
	container: ckf / inline-size;
}

.ck-form__head {
	margin: 0 0 1.6em;
}

.ck-form[data-align="center"] .ck-form__head {
	text-align: center;
}

.ck-form .ck-form__title {
	margin: 0 0 0.3em;
	padding: 0;
	color: var(--ckf-title-c);
	font-family: var(--ckf-font-title, inherit);
	font-size: var(--ckf-title-size, 2em);
	font-weight: var(--ckf-title-weight, 600);
	line-height: 1.15;
	letter-spacing: -0.01em;
	text-transform: none;
}

.ck-form .ck-form__subtitle {
	max-width: 60ch;
	margin: 0;
	opacity: 0.85;
}

.ck-form[data-align="center"] .ck-form__subtitle {
	margin-inline: auto;
}

.ck-form__cols {
	display: grid;
	gap: 1.8em 2.6em;
}

@container ckmain (min-width: 680px) {
	.ck-form[data-columns="2"] .ck-form__cols {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
}

.ck-form__col {
	display: flex;
	flex-direction: column;
	gap: 1.2em;
	min-width: 0;
}

.ck-form__field {
	display: flex;
	flex-direction: column;
	gap: 0.4em;
	min-width: 0;
	margin: 0;
}

.ck-form__label,
.ck-form__field > label {
	margin: 0;
	color: var(--ckf-label-c);
	font-size: 0.875em;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}

.ck-form__label--section {
	font-size: 1em;
	color: var(--ckf-title-c);
}

.ck-form__fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1em;
}

.ck-form__fields .is-wide {
	grid-column: 1 / -1;
}

.ck-form input[type="text"],
.ck-form input[type="tel"],
.ck-form input[type="email"],
.ck-form select,
.ck-form textarea {
	width: 100%;
	max-width: none;
	min-height: 2.9em;
	height: auto;
	margin: 0;
	padding: 0.6em 0.8em;
	border: var(--ckf-field-border, 1px) solid var(--ckf-border-c);
	border-radius: var(--ckf-field-radius, 6px);
	background: var(--ckf-field-bg-c);
	box-shadow: none;
	color: var(--ckf-field-text-c);
	font: inherit;
	line-height: 1.4;
}

.ck-form textarea {
	min-height: 5.2em;
	resize: vertical;
}

.ck-form input:focus,
.ck-form select:focus,
.ck-form textarea:focus {
	border-color: var(--ckf-focus-c);
	outline: 2px solid color-mix(in srgb, var(--ckf-focus-c) 30%, transparent);
	outline-offset: 0;
	box-shadow: none;
}

.ck-form [aria-invalid="true"] {
	border-color: var(--ckf-error-c) !important;
}

.ck-form__error {
	color: var(--ckf-error-c);
	font-size: 0.85em;
}

.ck-form__error--box {
	margin: 0;
	padding: 0.7em 0.9em;
	border-left: 3px solid var(--ckf-error-c);
	background: color-mix(in srgb, var(--ckf-error-c) 8%, transparent);
}

.ck-form__hint {
	margin: 0;
	font-size: 0.9em;
	opacity: 0.75;
}

.ck-form__notice {
	margin: 0;
	padding: 0.8em 1em;
	border-radius: var(--ckf-field-radius, 6px);
	background: color-mix(in srgb, var(--ckf-accent-c) 8%, transparent);
	font-size: 0.95em;
}

.ck-form__notice a {
	color: inherit;
	font-weight: 600;
}

/* Guests */
.ck-form__stepper {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	border: var(--ckf-field-border, 1px) solid var(--ckf-border-c);
	border-radius: var(--ckf-field-radius, 6px);
	background: var(--ckf-field-bg-c);
	overflow: hidden;
}

.ck-form__stepper button {
	width: 2.9em;
	height: 2.9em;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ckf-field-text-c);
	font: inherit;
	font-size: 1.2em;
	line-height: 1;
	cursor: pointer;
	min-height: 0;
	box-shadow: none;
}

.ck-form__stepper button:hover:not(:disabled) {
	background: color-mix(in srgb, var(--ckf-accent-c) 10%, transparent);
}

.ck-form__stepper button:disabled {
	opacity: 0.35;
	cursor: default;
}

.ck-form__stepper output {
	min-width: 2.6em;
	color: var(--ckf-field-text-c);
	font-size: 1.25em;
	font-weight: 650;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

/* Calendar */
.ck-form__cal {
	max-width: 400px;
}

.ck-form__cal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.4em;
}

.ck-form__month {
	font-weight: 650;
	text-transform: capitalize;
}

.ck-form__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.4em;
	height: 2.4em;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	cursor: pointer;
	box-shadow: none;
}

.ck-form__nav:hover:not(:disabled) {
	background: color-mix(in srgb, var(--ckf-accent-c) 10%, transparent);
}

.ck-form__nav:disabled {
	opacity: 0.3;
	cursor: default;
}

.ck-form__grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 3px;
}

.ck-form__wd {
	padding: 0.3em 0;
	font-size: 0.75em;
	font-weight: 600;
	text-align: center;
	opacity: 0.6;
}

.ck-form__day {
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 1px solid transparent;
	border-radius: var(--ckf-field-radius, 6px);
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 0.95em;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	cursor: pointer;
	box-shadow: none;
	text-transform: none;
	letter-spacing: 0;
}

.ck-form__day:hover:not(:disabled):not(.is-closed) {
	border-color: var(--ckf-accent-c);
}

/* Days that can be booked: tinted, so they read as choices at a glance. */
.ck-form__day.is-open {
	background: color-mix(in srgb, var(--ckf-accent-c) 9%, transparent);
	color: inherit;
}

/* Past days and days not open for booking yet: quiet. */
.ck-form__day.is-off {
	color: var(--ckf-unavailable-c);
	font-weight: 400;
	cursor: default;
}

/* Closed days (days off and closed dates): hatched and struck through. */
.ck-form__day.is-closed {
	border-color: color-mix(in srgb, var(--ckf-unavailable-c) 45%, transparent);
	border-style: dashed;
	background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ckf-unavailable-c) 22%, transparent) 0 1.5px, transparent 1.5px 6px);
	color: var(--ckf-unavailable-c);
	font-weight: 500;
	text-decoration: line-through;
	text-decoration-thickness: 1.5px;
	cursor: help;
}

.ck-form__day.is-closed.is-noted {
	border-style: solid;
	border-color: var(--ckf-unavailable-c);
}

.ck-form__day.is-today:not(.is-selected) {
	box-shadow: inset 0 -2.5px 0 var(--ckf-accent-c);
}

.ck-form__day.is-selected {
	border-color: var(--ckf-accent-c);
	background: var(--ckf-accent-c);
	color: var(--ckf-on-accent-c);
	font-weight: 700;
}

.ck-form__cal-keys {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4em 1.1em;
	margin-top: 0.7em;
	font-size: 0.8em;
	opacity: 0.85;
}

.ck-form__cal-keys span {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
}

.ckf-dkey {
	display: inline-block;
	width: 1.1em;
	height: 1.1em;
	border: 1px solid transparent;
	border-radius: 3px;
}

.ckf-dkey.is-open {
	background: color-mix(in srgb, var(--ckf-accent-c) 18%, transparent);
}

.ckf-dkey.is-closed {
	border: 1px dashed color-mix(in srgb, var(--ckf-unavailable-c) 60%, transparent);
	background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ckf-unavailable-c) 35%, transparent) 0 1.5px, transparent 1.5px 4px);
}

.ck-form__day-note {
	margin: 0.6em 0 0;
	padding: 0.55em 0.8em;
	border-left: 3px solid var(--ckf-unavailable-c);
	border-radius: 4px;
	background: color-mix(in srgb, var(--ckf-unavailable-c) 12%, transparent);
	font-size: 0.875em;
}

.ck-form__day.is-blank {
	visibility: hidden;
}

/* Time slots */
.ck-form__shift + .ck-form__shift {
	margin-top: 0.9em;
}

.ck-form__shift-name {
	display: block;
	margin-bottom: 0.4em;
	font-size: 0.85em;
	opacity: 0.75;
}

.ck-form__slots {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4em;
}

.ck-form__slot {
	min-width: 4.4em;
	min-height: 2.5em;
	margin: 0;
	padding: 0.35em 0.7em;
	border: var(--ckf-field-border, 1px) solid var(--ckf-border-c);
	border-radius: var(--ckf-field-radius, 6px);
	background: var(--ckf-field-bg-c);
	color: var(--ckf-field-text-c);
	font: inherit;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	cursor: pointer;
	box-shadow: none;
	text-transform: none;
	letter-spacing: 0;
	line-height: 1.2;
}

.ck-form__slot:hover {
	border-color: var(--ckf-accent-c);
}

.ck-form__slot[aria-checked="true"] {
	border-color: var(--ckf-sel-edge, var(--ckf-sel-c));
	box-shadow: var(--ckf-sel-ring, none);
	background: var(--ckf-sel-c);
	color: var(--ckf-on-sel-c);
}

/* Checks */
.ck-form__check {
	display: flex;
	align-items: flex-start;
	gap: 0.6em;
	margin: 0;
	font-size: 0.92em;
	font-weight: 400;
	cursor: pointer;
}

/* Themes colour every <label> (Flatsome: dark grey); the consent lines follow the form's text instead. */
.ck-form .ck-form__check,
.ck-form .ck-form__check > span {
	color: var(--ckf-text-c);
	opacity: 1;
}

.ck-form__check input {
	width: 1.15em;
	height: 1.15em;
	margin: 0.15em 0 0;
	flex: none;
	accent-color: var(--ckf-accent-c);
}

.ck-form__check a {
	color: inherit;
	text-decoration: underline;
}

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

/* Button */
.ck-form .ck-form__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	min-width: 12em;
	min-height: 0;
	margin: 0.4em 0 0;
	padding: var(--ckf-btn-pad, 14px) calc(var(--ckf-btn-pad, 14px) * 2);
	border: 2px solid var(--ckf-btn-border-c);
	border-radius: var(--ckf-btn-radius, 6px);
	background: var(--ckf-btn-bg-c);
	color: var(--ckf-btn-text-c);
	font-family: var(--ckf-font-btn, inherit);
	font-size: 1em;
	font-weight: 650;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-transform: var(--ckf-btn-transform, none);
	cursor: pointer;
	box-shadow: none;
	transition: background-color 0.18s, color 0.18s, border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}

.ck-form .ck-form__button:hover:not(:disabled),
.ck-form .ck-form__button:focus-visible {
	border-color: var(--ckf-btn-border-h-c);
	background: var(--ckf-btn-bg-h-c);
	color: var(--ckf-btn-text-h-c);
}

.ck-form[data-hover="lift"] .ck-form__button:hover:not(:disabled) {
	transform: translateY(-2px);
}

.ck-form[data-hover="shadow"] .ck-form__button:hover:not(:disabled) {
	box-shadow: 0 8px 22px color-mix(in srgb, var(--ckf-btn-bg-c) 45%, transparent);
}

.ck-form .ck-form__button:disabled {
	opacity: 0.6;
	cursor: wait;
}

.ck-form .ck-form__button--ghost {
	border-color: var(--ckf-border-c);
	background: transparent;
	color: inherit;
}

.ck-form__summary {
	margin-top: -0.2em;
}

.ck-form :focus-visible {
	outline: 2px solid var(--ckf-focus-c);
	outline-offset: 2px;
}

/* Done */
.ck-form__done {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.9em;
	padding: 2em 1em;
	text-align: center;
	outline: none;
}

.ck-form__done-mark {
	color: var(--ckf-success-c);
}

.ck-form .ck-form__done-text {
	max-width: 52ch;
	margin: 0;
	color: var(--ckf-title-c);
	font-size: 1.15em;
}

.ck-form .ck-form__done-meta {
	margin: 0;
	font-size: 0.92em;
	opacity: 0.8;
}

.ck-form__done .ck-form__button {
	align-self: center;
}

.ck-form__preview-note {
	margin: 0 0 1em;
	font-size: 0.8em;
	opacity: 0.6;
}

@container ckf (max-width: 480px) {
	.ck-form__fields {
		grid-template-columns: 1fr;
	}
	.ck-form .ck-form__button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ck-form * {
		transition: none !important;
	}
}

/* "Book a table" button and dialog (used when the theme has no lightbox) */
.ck-book-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	border: 1px solid var(--ckf-btn-border, transparent);
	border-radius: var(--ckf-btn-radius, 6px);
	background: var(--ckf-btn-bg, var(--ckf-accent, var(--primary-color, var(--wp--preset--color--primary, #1f4e79))));
	color: var(--ckf-btn-text, #fff);
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}
.ck-book-button:hover,
.ck-book-button:focus-visible {
	border-color: var(--ckf-btn-border-h, var(--ckf-btn-bg-h, transparent));
	background: var(--ckf-btn-bg-h, var(--ckf-btn-bg, var(--ckf-accent, var(--primary-color, var(--wp--preset--color--primary, #1f4e79)))));
	color: var(--ckf-btn-text-h, var(--ckf-btn-text, #fff));
}
.ck-book-button:not([style*="--ckf-btn-bg-h"]):hover {
	filter: brightness(1.08);
}
/* Flatsome draws the opener as its own primary button; the form's button colours win when set. */
.button.ck-book-flatsome.has-ckf-colors {
	border-color: var(--ckf-btn-border, var(--ckf-btn-bg, var(--ckf-accent)));
	background-color: var(--ckf-btn-bg, var(--ckf-accent));
	color: var(--ckf-btn-text, #fff);
}
.button.ck-book-flatsome.has-ckf-colors:hover {
	border-color: var(--ckf-btn-border-h, var(--ckf-btn-bg-h, var(--ckf-btn-bg)));
	background-color: var(--ckf-btn-bg-h, var(--ckf-btn-bg));
	color: var(--ckf-btn-text-h, var(--ckf-btn-text, #fff));
	box-shadow: none;
}
dialog.ck-dialog {
	width: min(960px, calc(100vw - 24px));
	max-width: none;
	max-height: calc(100vh - 24px);
	margin: auto;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	overflow: visible;
}
dialog.ck-dialog::backdrop {
	background: rgba(10, 20, 30, 0.6);
}
.ck-dialog__inner {
	position: relative;
	max-height: calc(100vh - 24px);
	padding: clamp(20px, 4vw, 36px);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
	overflow: auto;
}
/* A form with its own background (Light, Dark or a custom colour) is the card itself. */
.ck-dialog__inner:has(.ck-form[style*="--ckf-bg:"]) {
	padding: 0;
	background: transparent;
	box-shadow: none;
}
.ck-dialog__close {
	position: absolute;
	z-index: 2;
	top: 10px;
	right: 10px;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}
.ck-dialog__inner:has(.ck-form[data-preset="dark"]) .ck-dialog__close {
	color: #f5efe3;
}
.ck-dialog__close:hover,
.ck-dialog__close:focus-visible {
	background: rgba(127, 127, 127, 0.18);
}
.lightbox-content.ck-res-lightbox {
	padding: clamp(20px, 4vw, 36px);
}

/* Table plan on the form (only when the restaurant shows it) */
.ck-form__floor .ck-form__hint {
	margin-top: 0;
}
.ck-form__rooms {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 6px 0 10px;
}
.ck-form__room {
	padding: 6px 12px;
	border: var(--ckf-field-border, 1px) solid var(--ckf-border-c);
	border-radius: 999px;
	background: var(--ckf-field-bg-c);
	color: var(--ckf-field-text-c);
	font: inherit;
	font-size: 0.875em;
	cursor: pointer;
}
.ck-form__room[aria-pressed="true"] {
	border-color: var(--ckf-sel-edge, var(--ckf-sel-c));
	box-shadow: var(--ckf-sel-ring, none);
	background: var(--ckf-sel-c);
	color: var(--ckf-on-sel-c);
}
.ck-form__plan {
	display: block;
	width: 100%;
	height: auto;
	max-height: min(62vh, 620px);
	user-select: none;
	-webkit-user-select: none;
}
.ck-form__plan-wrap {
	overflow-x: auto;
}
@container ckf (max-width: 560px) {
	/* On phones the plan keeps a usable size and scrolls sideways. */
	.ck-form__plan {
		min-width: 520px;
		max-height: none;
	}
}
@media (max-width: 640px) {
	.ck-form__sheet .ck-form__plan {
		min-width: 560px;
		max-height: none;
	}
}
.ck-form__plan-pick {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 14px;
	padding: 10px 12px;
	border: var(--ckf-field-border, 1px) dashed var(--ckf-border-c);
	border-radius: var(--ckf-field-radius, 6px);
}
.ck-form__plan-btns {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}
.ck-form .ck-form__button--sm {
	padding: 8px 14px;
	font-size: 0.875em;
}
.ck-form__overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
	background: rgba(10, 20, 30, 0.6);
}
.ck-form__sheet {
	position: relative;
	width: min(1000px, 100%);
	max-height: calc(100vh - 24px);
	overflow: auto;
	padding: clamp(16px, 3vw, 28px);
	border-radius: 14px;
	background: var(--ckf-sheet-bg, var(--ckf-bg, #fff));
	color: var(--ckf-text, #1d2a36);
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}
.ck-form[data-preset="theme"] .ck-form__sheet,
.ck-form[data-preset="flatsome"] .ck-form__sheet {
	background: #fff;
	color: #1d2a36;
}
.ck-form__sheet-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.ck-form .ck-form__sheet-title {
	margin: 0;
	font-size: 1.25em;
	color: var(--ckf-title-c);
}
.ck-form__sheet-x {
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}
.ck-form__sheet-x:hover,
.ck-form__sheet-x:focus-visible {
	background: rgba(127, 127, 127, 0.18);
}
.ck-form__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin-top: 10px;
	font-size: 0.875em;
}
.ck-form__legend span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.ckf-key {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid var(--ckf-accent-c);
	border-radius: 4px;
}
.ckf-key.is-selected { background: var(--ckf-accent-c); }
.ckf-key.is-busy { border-style: dashed; border-color: var(--ckf-unavailable-c); background: var(--ckf-unavailable-c); opacity: 0.55; }
.ckf-fp-floor { fill: var(--ckf-field-bg-c); stroke: var(--ckf-border-c); stroke-width: 2; }
.ckf-fp-wall { fill: currentColor; opacity: 0.55; }
.ckf-fp-window { fill: rgba(111, 159, 196, 0.25); stroke: rgba(111, 159, 196, 0.9); stroke-width: 2; }
.ckf-fp-door { fill: none; stroke: currentColor; stroke-width: 2; opacity: 0.45; }
.ckf-fp-bar { fill: rgba(165, 138, 100, 0.22); stroke: rgba(165, 138, 100, 0.9); stroke-width: 2; }
.ckf-fp-plant { fill: rgba(93, 147, 96, 0.3); stroke: rgba(93, 147, 96, 0.9); stroke-width: 2; }
.ckf-fp-text { fill: currentColor; opacity: 0.65; font-weight: 600; }
.ckf-fp-shape {
	fill: var(--ckf-field-bg-c);
	stroke: var(--ckf-unavailable-c);
	stroke-width: 2.5;
	transition: fill 0.15s, stroke 0.15s;
}
.ckf-fp-tlabel { fill: currentColor; font-weight: 700; pointer-events: none; }
.ckf-fp-tsub { fill: currentColor; opacity: 0.7; pointer-events: none; }
.ckf-fp-table.is-busy { opacity: 0.42; cursor: not-allowed; }
.ckf-fp-table.is-busy .ckf-fp-shape { fill: var(--ckf-unavailable-c); fill-opacity: 0.35; stroke-dasharray: 4 3; }
.ckf-fp-table.is-free { cursor: pointer; outline: none; }
.ckf-fp-table.is-free .ckf-fp-shape { stroke: var(--ckf-accent-c); }
.ckf-fp-table.is-free:hover .ckf-fp-shape,
.ckf-fp-table.is-free:focus-visible .ckf-fp-shape {
	stroke: var(--ckf-focus-c);
	stroke-width: 4.5;
}
.ckf-fp-table.is-selected .ckf-fp-shape {
	fill: var(--ckf-accent-c);
	stroke: var(--ckf-accent-c);
}
.ckf-fp-table.is-selected .ckf-fp-tlabel,
.ckf-fp-table.is-selected .ckf-fp-tsub {
	fill: var(--ckf-on-accent-c);
	opacity: 1;
}
.ck-form__plan-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	margin-top: 16px;
}
.ck-form__link {
	padding: 0;
	border: 0;
	background: none;
	color: var(--ckf-accent-c);
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

/* ------------------------------------------------------------------ */
/* Choices as large buttons: party size                                */
/* ------------------------------------------------------------------ */
.ck-form__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45em;
}
.ck-form .ck-form__chip {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 2.9em;
	min-height: 2.9em;
	margin: 0;
	padding: 0.3em 0.6em;
	border: var(--ckf-field-border, 1px) solid var(--ckf-border-c);
	border-radius: var(--ckf-field-radius, 6px);
	background: var(--ckf-field-bg-c);
	color: var(--ckf-field-text-c);
	font: inherit;
	font-weight: 650;
	font-variant-numeric: tabular-nums;
	line-height: 1.15;
	letter-spacing: 0;
	text-transform: none;
	box-shadow: none;
	cursor: pointer;
}
.ck-form .ck-form__chip--wide {
	padding-inline: 0.9em;
}
.ck-form .ck-form__chip:hover:not(:disabled) {
	border-color: var(--ckf-accent-c);
}
.ck-form .ck-form__chip[aria-pressed="true"] {
	border-color: var(--ckf-sel-edge, var(--ckf-sel-c));
	box-shadow: var(--ckf-sel-ring, none);
	background: var(--ckf-sel-c);
	color: var(--ckf-on-sel-c);
}
/* ------------------------------------------------------------------ */
/* One page, with an optional photo and opening hours                  */
/* ------------------------------------------------------------------ */
.ck-form__main {
	min-width: 0;
	container: ckmain / inline-size;
}
.ck-form__layout--page.has-side {
	display: grid;
	gap: 1.6em;
}
@container ckf (min-width: 760px) {
	.ck-form__layout--page.has-side {
		grid-template-columns: minmax(220px, 34%) minmax(0, 1fr);
		gap: 2.4em;
	}
}
.ck-form__side {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 10em;
	overflow: hidden;
	border-radius: max(var(--ckf-radius, 0px), 12px);
	background: color-mix(in srgb, var(--ckf-accent-c) 10%, transparent);
}
.ck-form__side.has-photo {
	min-height: 12em;
}
@container ckf (min-width: 760px) {
	.ck-form__side {
		min-height: 100%;
	}
}
.ck-form__photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}
.ck-form__info {
	position: relative;
	margin: 1em;
	padding: 1.1em 1.2em;
	border-radius: 12px;
	background: color-mix(in srgb, var(--ckf-field-bg-c) 92%, transparent);
	color: var(--ckf-field-text-c);
	font-size: 0.92em;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
.ck-form__side:not(.has-photo) .ck-form__info {
	margin: 0;
	background: transparent;
	color: inherit;
}
.ck-form .ck-form__info p {
	margin: 0;
}
.ck-form .ck-form__info-name {
	margin-bottom: 0.4em;
	color: var(--ckf-title-c);
	font-family: var(--ckf-font-title, inherit);
	font-size: 1.35em;
	font-weight: var(--ckf-title-weight, 600);
	line-height: 1.2;
}
.ck-form__side.has-photo .ck-form__info-name {
	color: inherit;
}
.ck-form .ck-form__info-label {
	margin-top: 0.6em;
	font-size: 0.8em;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	opacity: 0.75;
}
.ck-form__info-hours {
	margin: 0.3em 0 0.5em;
	padding: 0;
	list-style: none;
}
.ck-form__info-hours li {
	display: flex;
	justify-content: space-between;
	gap: 1em;
	margin: 0;
	padding: 0.15em 0;
	font-variant-numeric: tabular-nums;
}
.ck-form .ck-form__info-line {
	margin-top: 0.3em;
}
.ck-form__info a {
	color: inherit;
	font-weight: 600;
}

/* ------------------------------------------------------------------ */
/* Step by step                                                        */
/* ------------------------------------------------------------------ */
.ck-form__progress {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	margin: 0 0 1.2em;
	padding: 0;
	list-style: none;
}
.ck-form__pstep {
	margin: 0;
}
.ck-form__pstep > .ck-form__pbox,
.ck-form__pstep > button {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	min-height: 2.5em;
	margin: 0;
	padding: 0.3em 0.9em 0.3em 0.4em;
	border: var(--ckf-field-border, 1px) solid var(--ckf-border-c);
	border-radius: 999px;
	background: var(--ckf-field-bg-c);
	color: var(--ckf-field-text-c);
	font: inherit;
	font-size: 0.875em;
	font-weight: 600;
	line-height: 1.2;
	text-transform: none;
	box-shadow: none;
}
.ck-form__pstep > button {
	cursor: pointer;
}
.ck-form__pstep > button:hover {
	border-color: var(--ckf-accent-c);
}
.ck-form__pnum {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.75em;
	height: 1.75em;
	border-radius: 50%;
	background: color-mix(in srgb, var(--ckf-field-text-c) 10%, transparent);
	font-size: 0.85em;
	flex: none;
}
.ck-form__pstep.is-done .ck-form__pnum {
	background: var(--ckf-accent-c);
	color: var(--ckf-on-accent-c);
}
.ck-form__pstep.is-current > .ck-form__pbox {
	border-color: var(--ckf-accent-c);
	background: var(--ckf-accent-c);
	color: var(--ckf-on-accent-c);
}
.ck-form__pstep.is-current .ck-form__pnum {
	background: var(--ckf-on-accent-c);
	color: var(--ckf-accent-c);
}
.ck-form .ck-form__stepcount {
	display: none;
	margin: -0.6em 0 0.8em;
	font-size: 0.875em;
	opacity: 0.75;
}
.ck-form__stepwrap {
	display: grid;
	gap: 1.6em;
	align-items: start;
}
@container ckf (min-width: 760px) {
	.ck-form__stepwrap {
		grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
	}
}
.ck-form__step {
	display: flex;
	flex-direction: column;
	gap: 1.1em;
	min-width: 0;
}
.ck-form .ck-form__q {
	margin: 0;
	color: var(--ckf-title-c);
	font-family: var(--ckf-font-title, inherit);
	font-size: 1.3em;
	font-weight: var(--ckf-title-weight, 600);
	line-height: 1.25;
	outline: none;
}
.ck-form__stepside {
	display: flex;
	flex-direction: column;
	gap: 0.6em;
	padding: 1.1em 1.2em;
	border: var(--ckf-field-border, 1px) solid var(--ckf-border-c);
	border-radius: max(var(--ckf-field-radius, 6px), 10px);
	background: var(--ckf-field-bg-c);
	color: var(--ckf-field-text-c);
}
.ck-form .ck-form__side-title {
	margin: 0;
	font-weight: 650;
}
.ck-form .ck-form__facts {
	margin: 0;
	font-size: 0.95em;
}
.ck-form__stepnav {
	display: flex;
	gap: 0.6em;
	margin-top: 0.4em;
}
.ck-form .ck-form__stepnav .ck-form__button {
	min-width: 0;
	margin: 0;
	flex: 2 1 auto;
}
.ck-form .ck-form__stepnav .ck-form__button--back {
	flex: 1 1 auto;
}
@container ckf (max-width: 759px) {
	.ck-form__progress {
		display: none;
	}
	.ck-form .ck-form__stepcount {
		display: block;
	}
	/* The summary and buttons stay at the bottom of the screen while the step scrolls. */
	.ck-form__stepside {
		position: sticky;
		bottom: 0;
		z-index: 2;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: 0.5em 0.8em;
		margin: 0 calc(var(--ckf-pad, 0px) * -1);
		padding: 0.8em 1em calc(0.8em + env(safe-area-inset-bottom));
		border-width: var(--ckf-field-border, 1px) 0 0;
		border-radius: 0;
		box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
	}
	.ck-form__stepside .ck-form__side-title {
		display: none;
	}
	.ck-form .ck-form__facts {
		flex: 1 1 10em;
		font-size: 0.875em;
		font-weight: 600;
	}
	.ck-form__stepnav {
		flex: 1 1 auto;
		margin: 0;
	}
	.ck-form .ck-form__stepnav .ck-form__button {
		width: auto;
	}
}
.ck-form__review {
	margin: 0;
	border-top: 1px solid var(--ckf-border-c);
}
.ck-form__review-row {
	display: grid;
	grid-template-columns: minmax(6em, 30%) minmax(0, 1fr) auto;
	gap: 0.3em 1em;
	align-items: baseline;
	padding: 0.65em 0;
	border-bottom: 1px solid var(--ckf-border-c);
}
.ck-form__review dt {
	color: var(--ckf-label-c);
	font-size: 0.9em;
}
.ck-form__review dd {
	margin: 0;
	min-width: 0;
	font-weight: 600;
	overflow-wrap: anywhere;
}
.ck-form .ck-form__review-edit .ck-form__link {
	font-size: 0.875em;
	font-weight: 500;
}

/* ------------------------------------------------------------------ */
/* With the table plan                                                 */
/* ------------------------------------------------------------------ */
.ck-form__plan-grid {
	display: grid;
	gap: 1.6em;
	margin-bottom: 1.2em;
}
@container ckf (min-width: 760px) {
	.ck-form__plan-grid {
		grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
		align-items: start;
	}
}
.ck-form__plan-col {
	display: flex;
	flex-direction: column;
	gap: 0.5em;
	min-width: 0;
}
.ck-form__plan-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 14em;
	padding: 1.5em;
	border: var(--ckf-field-border, 1px) dashed var(--ckf-border-c);
	border-radius: max(var(--ckf-field-radius, 6px), 10px);
	text-align: center;
	opacity: 0.85;
}
.ck-form__plan-empty p {
	max-width: 32ch;
	margin: 0;
}
.ck-form__plan-inline .ck-form__plan {
	max-height: min(70vh, 640px);
}
.ck-form__plan-inline .ck-form__plan-foot {
	margin-top: 8px;
}
.ck-form__plan-inline .ck-form__legend {
	margin-top: 0;
}
.ck-form__ticket {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6em 1.4em;
	padding: 0.9em 1.1em;
	border: var(--ckf-field-border, 1px) solid var(--ckf-border-c);
	border-radius: max(var(--ckf-field-radius, 6px), 12px);
	background: var(--ckf-field-bg-c);
	color: var(--ckf-field-text-c);
}
.ck-form__ticket-main {
	font-family: var(--ckf-font-title, inherit);
	font-size: 1.1em;
	font-weight: 650;
}
.ck-form .ck-form__ticket .ck-form__button {
	margin: 0 0 0 auto;
}
@container ckf (max-width: 560px) {
	.ck-form__layout--plan:not(.is-details) .ck-form__ticket {
		position: sticky;
		bottom: 0;
		z-index: 2;
		box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.1);
	}
	.ck-form .ck-form__ticket .ck-form__button {
		width: 100%;
		margin: 0;
	}
}
.ck-form__layout--plan.is-details {
	display: flex;
	flex-direction: column;
	gap: 1.1em;
}
.ck-form .ck-form__backlink {
	display: inline-flex;
	align-items: center;
	gap: 0.3em;
	align-self: flex-start;
	text-decoration: none;
	font-weight: 600;
}
.ck-form__layout--plan.is-details .ck-form__fields {
	margin-top: 0;
}

/* ------------------------------------------------------------------ */
/* Field styles: outlined (default), filled, single line, rounded      */
/* ------------------------------------------------------------------ */
.ck-form input[type="text"],
.ck-form input[type="tel"],
.ck-form input[type="email"],
.ck-form select,
.ck-form textarea {
	transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.ck-form input::placeholder,
.ck-form textarea::placeholder {
	color: var(--ckf-field-text-c);
	opacity: 0.45;
}

.ck-form input[type="text"]:hover:not(:focus),
.ck-form input[type="tel"]:hover:not(:focus),
.ck-form input[type="email"]:hover:not(:focus),
.ck-form select:hover:not(:focus),
.ck-form textarea:hover:not(:focus) {
	border-color: color-mix(in srgb, var(--ckf-border-c) 55%, var(--ckf-field-text-c));
}

/* A drawn arrow, the same in every browser and theme. */
.ck-form select {
	padding-right: 2.4em;
	-webkit-appearance: none;
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position: calc(100% - 1.15em) 52%, calc(100% - 0.8em) 52%;
	background-size: 0.35em 0.35em, 0.35em 0.35em;
	background-repeat: no-repeat;
}

.ck-form input:focus,
.ck-form select:focus,
.ck-form textarea:focus {
	outline: 0;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--ckf-focus-c) 22%, transparent);
}

/* Filled: soft tinted fields without an outline until focused. */
.ck-form[data-fields="soft"] input[type="text"],
.ck-form[data-fields="soft"] input[type="tel"],
.ck-form[data-fields="soft"] input[type="email"],
.ck-form[data-fields="soft"] select,
.ck-form[data-fields="soft"] textarea,
.ck-form[data-fields="soft"] .ck-form__chip,
.ck-form[data-fields="soft"] .ck-form__slot,
.ck-form[data-fields="soft"] .ck-form__stepper {
	border-color: transparent;
	background-color: color-mix(in srgb, var(--ckf-field-text-c) 7%, var(--ckf-field-bg-c));
}

.ck-form[data-fields="soft"] input:hover:not(:focus),
.ck-form[data-fields="soft"] select:hover:not(:focus),
.ck-form[data-fields="soft"] textarea:hover:not(:focus) {
	border-color: transparent;
	background-color: color-mix(in srgb, var(--ckf-field-text-c) 11%, var(--ckf-field-bg-c));
}

.ck-form[data-fields="soft"] input:focus,
.ck-form[data-fields="soft"] select:focus,
.ck-form[data-fields="soft"] textarea:focus {
	border-color: var(--ckf-focus-c);
	background-color: var(--ckf-field-bg-c);
}

.ck-form[data-fields="soft"] .ck-form__chip[aria-pressed="true"],
.ck-form[data-fields="soft"] .ck-form__slot[aria-checked="true"] {
	background-color: var(--ckf-sel-c);
}

/* Single line: only a line under each field, open and light. */
.ck-form[data-fields="line"] input[type="text"],
.ck-form[data-fields="line"] input[type="tel"],
.ck-form[data-fields="line"] input[type="email"],
.ck-form[data-fields="line"] select,
.ck-form[data-fields="line"] textarea {
	padding-left: 0.1em;
	border-width: 0 0 max(1.5px, var(--ckf-field-border, 1px));
	border-radius: 0;
	background-color: transparent;
}

.ck-form[data-fields="line"] select {
	padding-right: 2em;
	background-position: calc(100% - 0.75em) 52%, calc(100% - 0.4em) 52%;
}

.ck-form[data-fields="line"] input:focus,
.ck-form[data-fields="line"] select:focus,
.ck-form[data-fields="line"] textarea:focus {
	border-bottom-color: var(--ckf-focus-c);
	box-shadow: 0 1.5px 0 var(--ckf-focus-c);
}

.ck-form[data-fields="line"] .ck-form__chip,
.ck-form[data-fields="line"] .ck-form__slot,
.ck-form[data-fields="line"] .ck-form__stepper {
	border-radius: 999px;
	background-color: transparent;
}

.ck-form[data-fields="line"] .ck-form__chip[aria-pressed="true"],
.ck-form[data-fields="line"] .ck-form__slot[aria-checked="true"] {
	background-color: var(--ckf-sel-c);
}

/* Rounded: pill-shaped fields and choices. */
.ck-form[data-fields="pill"] input[type="text"],
.ck-form[data-fields="pill"] input[type="tel"],
.ck-form[data-fields="pill"] input[type="email"],
.ck-form[data-fields="pill"] select,
.ck-form[data-fields="pill"] .ck-form__chip,
.ck-form[data-fields="pill"] .ck-form__slot,
.ck-form[data-fields="pill"] .ck-form__stepper {
	border-radius: 999px;
}

.ck-form[data-fields="pill"] input[type="text"],
.ck-form[data-fields="pill"] input[type="tel"],
.ck-form[data-fields="pill"] input[type="email"],
.ck-form[data-fields="pill"] select {
	padding-left: 1.15em;
}

.ck-form[data-fields="pill"] textarea {
	padding: 0.8em 1.15em;
	border-radius: 1.2em;
}

.ck-form[data-fields="pill"] .ck-form__day {
	border-radius: 50%;
}

/* Wider forms: shorter calendar rows, so times and the button stay in view. Phones keep square, thumb-sized days. */
@container ckf (min-width: 561px) {
	.ck-form__day {
		aspect-ratio: auto;
		height: 2.75em;
	}

	.ck-form[data-fields="pill"] .ck-form__day {
		width: 2.75em;
		justify-self: center;
	}
}

/* Cards drawn in the field colour (booking summary, plan bar, plan sheet, opening hours, step pills): their
   text follows the card, even inside theme sections that recolour every paragraph and heading (such as
   Flatsome's dark rows). */
.ck-form :is(.ck-form__stepside, .ck-form__ticket, .ck-form__sheet, .ck-form__info, .ck-form__pbox, .ck-form__pstep > button) :is(p, h2, h3, h4, span, strong, b, li, label):not([class]),
.ck-form .ck-form__side-title,
.ck-form .ck-form__facts,
.ck-form .ck-form__ptext,
.ck-form .ck-form__ticket-main,
.ck-form .ck-form__info-label,
.ck-form .ck-form__info-line,
.ck-form .ck-form__sheet :is(.ck-form__hint, .ck-form__notice),
.ck-form .ck-form__pstep:not(.is-done):not(.is-current) .ck-form__pnum {
	color: inherit;
}

/* Phone with the dialling code in front */
.ck-form__phone {
	display: flex;
	align-items: stretch;
	gap: 0.4em;
	min-width: 0;
}
.ck-form__phone input[type="tel"] {
	flex: 1 1 auto;
	min-width: 0;
}
.ck-form__cc {
	position: relative;
	display: inline-flex;
	align-items: center;
	flex: none;
	padding: 0 1.9em 0 0.75em;
	border: var(--ckf-field-border, 1px) solid var(--ckf-border-c);
	border-radius: var(--ckf-field-radius, 6px);
	background: var(--ckf-field-bg-c);
	color: var(--ckf-field-text-c);
	font-weight: 600;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}
.ck-form__cc::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 0.7em;
	width: 0.36em;
	height: 0.36em;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-70%) rotate(45deg);
	pointer-events: none;
}
/* The real list sits on top, invisible, so the phone's own picker opens. */
.ck-form .ck-form__cc select {
	position: absolute;
	inset: 0;
	width: 100%;
	min-height: 0;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	opacity: 0;
	cursor: pointer;
}
.ck-form__cc:focus-within {
	border-color: var(--ckf-focus-c);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--ckf-focus-c) 22%, transparent);
}
.ck-form[data-fields="soft"] .ck-form__cc {
	border-color: transparent;
	background-color: color-mix(in srgb, var(--ckf-field-text-c) 7%, var(--ckf-field-bg-c));
}
.ck-form[data-fields="line"] .ck-form__cc {
	padding-left: 0.1em;
	border-width: 0 0 max(1.5px, var(--ckf-field-border, 1px));
	border-radius: 0;
	background-color: transparent;
}
.ck-form[data-fields="pill"] .ck-form__cc {
	padding-left: 1em;
	border-radius: 999px;
}

/* "Did you mean …?" under the email */
.ck-form .ck-form__suggest {
	align-self: flex-start;
	text-align: left;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ckf-accent-c);
	font: inherit;
	font-size: 0.875em;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
	box-shadow: none;
	text-transform: none;
	letter-spacing: 0;
	min-height: 0;
}

/* Single-line fields have no box of their own: their text follows the page unless a field text colour is set. */
.ck-form[data-fields="line"] {
	--ckf-field-text-c: var(--ckf-field-text, currentColor);
}
/* The open list of a select is drawn by the browser on white. */
.ck-form select option {
	background: #fff;
	color: #1d2a36;
}
