/* =====================================================================
   Showroom booking form ([wds_showroom_booking]). Mobile first, nested;
   built into assets/booking.css with the waterdrop-blocks PostCSS setup:
   cd waterdrop-blocks && npx postcss ../betheme-child/modules/showroom-booking/src/booking.css \
     -o ../betheme-child/modules/showroom-booking/assets/booking.css --no-map --config .
   The page may run on the old BeTheme layout, so the colours are local
   copies of the design tokens in waterdrop-blocks/src/main.css.
   ===================================================================== */

.wds-sb {
	--sb-ink: #151b3b;
	--sb-text: #3d4256;
	--sb-muted: #646a80;
	--sb-navy: #24317c;
	--sb-navy-dark: #1a245f;
	--sb-sky: #5cc9f5;
	--sb-line: #dfe3ec;
	--sb-surface: #f4f6f9;
	--sb-error: #b3261e;
	--sb-radius: 12px;

	box-sizing: border-box;
	/* The width of the page's container, like the map and the sections around it (2026-10-28). */
	width: 100%;
	margin: 0 auto;
	padding: 20px 16px;
	border: 1px solid var(--sb-line);
	border-radius: var(--sb-radius);
	background: #fff;
	color: var(--sb-text);
	font-size: 16px;
	line-height: 1.5;
}

.wds-sb *,.wds-sb *::before,.wds-sb *::after {
		box-sizing: inherit;
	}

.wds-sb h2,.wds-sb h3,.wds-sb legend {
		margin: 0 0 12px;
		padding: 0;
		color: var(--sb-ink);
		font-size: 22px;
		font-weight: 700;
		line-height: 1.25;
	}

.wds-sb a {
		color: var(--sb-navy);
		text-decoration: underline;
		text-underline-offset: 2px;
	}

.wds-sb [hidden] {
		display: none !important;
	}

@media (min-width: 768px) {

.wds-sb {
		padding: 32px;
}
	}

@media (min-width: 960px) {

.wds-sb {
		padding: 40px 48px;
}
	}

/* ---------- progress ---------- */

/* A numbered circle and the step's name, joined by a line that fills in once step 1 is done;
   the current circle is navy, a done one shows a tick (2026-10-28: the thin bars read poorly).
   Under .wds-sb: BeTheme indents every <ol> in page content. */
.wds-sb .wds-sb__progress {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 24px;
	padding: 0 0 20px;
	border-bottom: 1px solid var(--sb-line);
	list-style: none;
	counter-reset: sb-step;
}
:is(.wds-sb .wds-sb__progress) li {
		display: flex;
		align-items: center;
		gap: 10px;
		margin: 0;
		color: var(--sb-muted);
		font-size: 16px;
		font-weight: 600;
		line-height: 1.2;
		white-space: nowrap;
		counter-increment: sb-step;
	}
:is(:is(.wds-sb .wds-sb__progress) li)::before {
			content: counter(sb-step);
			display: grid;
			flex: none;
			place-items: center;
			width: 34px;
			height: 34px;
			border: 2px solid var(--sb-line);
			border-radius: 50%;
			background: #fff;
			color: var(--sb-muted);
			font-size: 15px;
			font-weight: 700;
		}
:is(:is(.wds-sb .wds-sb__progress) li):not(:last-child) {
			flex: 1;
		}
:is(:is(.wds-sb .wds-sb__progress) li):not(:last-child)::after {
				content: "";
				flex: 1;
				min-width: 24px;
				height: 2px;
				margin-left: 2px;
				border-radius: 1px;
				background: var(--sb-line);
			}
.is-current:is(:is(.wds-sb .wds-sb__progress) li),.is-done:is(:is(.wds-sb .wds-sb__progress) li) {
			color: var(--sb-ink);
		}
.is-current:is(:is(.wds-sb .wds-sb__progress) li)::before {
			border-color: var(--sb-navy);
			background: var(--sb-navy);
			color: #fff;
		}
.is-done:is(:is(.wds-sb .wds-sb__progress) li)::before {
			content: "\2713";
			border-color: var(--sb-navy);
			color: var(--sb-navy);
		}
.is-done:is(:is(.wds-sb .wds-sb__progress) li)::after {
			background: var(--sb-navy);
		}

/* ---------- steps and fields ---------- */

.wds-sb__step {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.wds-sb__where {
	margin: 0 0 16px;
	color: var(--sb-muted);
}

/* Under .wds-sb: BeTheme's input[type="text"] { width: 230px } has the same weight and loads later. */
.wds-sb .wds-sb__field {
	display: block;
	margin: 0 0 16px;
}
:is(.wds-sb .wds-sb__field) > span:first-child {
		display: block;
		margin: 0 0 6px;
		color: var(--sb-ink);
		font-weight: 600;
	}
:is(:is(.wds-sb .wds-sb__field) > span:first-child) small {
			display: inline;
			margin: 0 0 0 4px;
			font-weight: 400;
		}
:is(.wds-sb .wds-sb__field) small {
		display: block;
		margin-top: 6px;
		color: var(--sb-muted);
		font-size: 14px;
	}
:is(.wds-sb .wds-sb__field) input,:is(.wds-sb .wds-sb__field) select,:is(.wds-sb .wds-sb__field) textarea {
		display: block;
		width: 100%;
		min-height: 48px;
		margin: 0;
		padding: 10px 14px;
		border: 1px solid #b8bfcf;
		border-radius: 8px;
		background: #fff;
		color: var(--sb-ink);
		font: inherit;
		font-size: 16px;
	}
:is(:is(.wds-sb .wds-sb__field) input,:is(.wds-sb .wds-sb__field) select,:is(.wds-sb .wds-sb__field) textarea):focus {
			outline: 3px solid var(--sb-sky);
			outline-offset: 1px;
			border-color: var(--sb-navy);
		}
[aria-invalid="true"]:is(:is(.wds-sb .wds-sb__field) input,:is(.wds-sb .wds-sb__field) select,:is(.wds-sb .wds-sb__field) textarea) {
			border-color: var(--sb-error);
		}
:is(.wds-sb .wds-sb__field) textarea {
		min-height: 96px;
		resize: vertical;
	}

/* Step 2 on wide screens: the fields on the left, the chosen time and the privacy note beside them. */
@media (min-width: 960px) {
.wds-sb__cols {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
		gap: 48px;
		align-items: start;
}

		.wds-sb__cols .wds-sb__summary {
			margin-top: 30px;
		}
	}

/* Name and phone side by side from large phones up, e-mail below across. */
.wds-sb__fields {
	display: grid;
	gap: 0 16px;
}
@media (min-width: 560px) {
.wds-sb__fields {
		grid-template-columns: repeat(2, minmax(0, 1fr));
}
	}

.wds-sb .wds-sb__field--wide {
	grid-column: 1 / -1;
}

/* "Czego szukasz?": optional, but set apart so it reads as an invitation, not one more box. */
.wds-sb .wds-sb__field--need {
	margin: 8px 0 20px;
	padding: 16px;
	border-radius: var(--sb-radius);
	background: var(--sb-surface);
}
:is(.wds-sb .wds-sb__field--need) textarea {
		min-height: 104px;
	}

.wds-sb__error {
	display: block;
	margin: 6px 0 0;
	color: var(--sb-error);
	font-size: 15px;
}

.wds-sb__error:empty {
		display: none;
	}

.wds-sb__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- slot picker ---------- */

.wds-sb__picker {
	min-height: 220px;
}

.wds-sb__loading {
	color: var(--sb-muted);
}

.wds-sb__label {
	margin: 0 0 8px;
	color: var(--sb-ink);
	font-weight: 600;
}

/* Calendar and times stack on phones and sit side by side from tablets up. */
.wds-sb__pick {
	display: grid;
	gap: 20px;
}
@media (min-width: 768px) {
.wds-sb__pick {
		grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
		gap: 32px;
		align-items: start;
}
	}
@media (min-width: 960px) {
.wds-sb__pick {
		grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
		gap: 56px;
}
	}

.wds-sb__calendar {
	max-width: 360px;
}

@media (min-width: 960px) {

.wds-sb__calendar {
		max-width: 420px;
}
	}

.wds-sb__month {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin: 0 0 8px;
}

.wds-sb__month-name {
	margin: 0;
	color: var(--sb-ink);
	font-weight: 600;
	text-transform: capitalize;
}

.wds-sb__month-nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 1px solid #b8bfcf;
	border-radius: 8px;
	background: #fff;
	color: var(--sb-navy);
	cursor: pointer;
}

.wds-sb__month-nav:focus-visible {
		outline: 3px solid var(--sb-sky);
		outline-offset: 1px;
	}

.wds-sb__month-nav[aria-disabled="true"] {
		opacity: .35;
		cursor: default;
	}

.wds-sb__month-nav--next svg {
	transform: scaleX(-1);
}

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

.wds-sb__weekdays {
	margin: 0 0 4px;
	color: var(--sb-muted);
	font-size: 14px;
	text-align: center;
}

.wds-sb__date {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 8px;
	font: inherit;
	font-size: 16px;
	line-height: 1;
}

.wds-sb__date.is-off {
	background: var(--sb-surface);
	color: #9ba1b3;
}

.wds-sb__date.is-today {
	text-decoration: underline;
	text-underline-offset: 3px;
}

button.wds-sb__date,
.wds-sb__time {
	min-height: 48px;
	margin: 0;
	border: 1px solid #b8bfcf;
	border-radius: 8px;
	background: #fff;
	color: var(--sb-ink);
	font: inherit;
	font-size: 16px;
	cursor: pointer;
	/* The theme fades button colours; a picked day or time should turn navy at once. */
	transition: none;
}

:is(button.wds-sb__date,.wds-sb__time):focus-visible {
		outline: 3px solid var(--sb-sky);
		outline-offset: 1px;
	}

[aria-checked="true"]:is(button.wds-sb__date,.wds-sb__time) {
		border-color: var(--sb-navy);
		background: var(--sb-navy);
		color: #fff;
	}

button.wds-sb__date {
	font-weight: 600;
}

/* Five in a row while stacked under the calendar, three beside it. */
.wds-sb__times {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}
@media (min-width: 560px) {
.wds-sb__times {
		grid-template-columns: repeat(5, minmax(0, 1fr));
}
	}
@media (min-width: 768px) {
.wds-sb__times {
		grid-template-columns: repeat(3, minmax(0, 1fr));
}
	}
/* Beside a wide calendar there is room for more times in a row. */
@media (min-width: 960px) {
.wds-sb__times {
		grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
}
	}

.wds-sb__call {
	margin: 16px 0 0;
	color: var(--sb-muted);
	font-size: 16px;
}

/* The number never breaks in the middle: it moves to the next line whole. Navy at every width:
   below 1240 px the theme paints every tel: link sky blue (a[href^=tel]:not(.action_button)...),
   which is 1.9:1 on white, so this selector outweighs it. */
.wds-sb .wds-sb__phone,
.wds-sb a.wds-sb__phone[href^="tel"]:not(.button):not(.action_button) {
	color: var(--sb-navy);
	font-weight: 600;
	white-space: nowrap;
}

/* ---------- buttons ---------- */

/* Phones: full-width buttons under the thumb, the main one on top. */
.wds-sb__nav {
	display: flex;
	flex-direction: column-reverse;
	gap: 12px;
	margin-top: 24px;
}
@media (min-width: 560px) {
.wds-sb__nav {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: flex-end;
}
	}

.wds-sb__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 10px 22px;
	border: 2px solid var(--sb-navy);
	border-radius: 999px;
	background: var(--sb-navy);
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.wds-sb .wds-sb__btn {
		color: #fff;
		text-decoration: none;
	}

.wds-sb__btn:focus-visible {
		outline: 3px solid var(--sb-sky);
		outline-offset: 2px;
	}

.wds-sb__btn[disabled] {
		opacity: .6;
		cursor: wait;
	}

.wds-sb__btn--ghost {
	background: #fff;
}

.wds-sb .wds-sb__btn--ghost {
		color: var(--sb-navy);
	}

/* ---------- summary, confirmation, manage ---------- */

.wds-sb__summary {
	margin: 8px 0 16px;
	padding: 16px;
	border-radius: 8px;
	background: var(--sb-surface);
}

.wds-sb__summary:empty {
		display: none;
	}

.wds-sb__details {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 6px 16px;
	margin: 0 0 16px;
}

.wds-sb__details dt {
		color: var(--sb-muted);
	}

.wds-sb__details dd {
		margin: 0;
		color: var(--sb-ink);
		font-weight: 600;
	}

.wds-sb__privacy {
	color: var(--sb-muted);
	font-size: 16px;
}

.wds-sb__done:focus {
	outline: none;
}

.wds-sb__links,
.wds-sb__manage-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 16px 0 0;
}

/* Test mode (settings): tells the admin what is different about this booking. */
.wds-sb__test {
	margin: 0 0 20px;
	padding: 12px 16px;
	border: 1px dashed #c58a00;
	border-radius: 8px;
	background: #fff8e5;
	color: #5c4000;
	font-size: 15px;
}

.wds-sb__confirm {
	margin: 16px 0 0;
	padding: 16px;
	border: 1px solid #e8b4ad;
	border-radius: 8px;
	background: #fdf3f2;
	color: var(--sb-ink);
}

.wds-sb__confirm p {
		margin: 0;
	}

.wds-sb__confirm .wds-sb__nav {
		margin-top: 16px;
	}

.wds-sb__notice {
	margin: 16px 0 0;
	padding: 12px 16px;
	border-radius: 8px;
	background: #edfaef;
	color: #14532d;
}

.wds-sb__notice p {
		margin: 0 0 12px;
	}

:is(.wds-sb__notice p):last-child {
			margin: 0;
		}

/* The visit (SMS link) or the test form on the showroom page before it has its booking section (2026-10-28). */
.wds-sb-visit-only {
	max-width: 1240px;
	margin: 24px auto 40px;
	padding: 0 16px;
}

/* One visit is a short card, not a page-wide one. */
.wds-sb.wds-sb--manage {
	max-width: 760px;
}
