/**
 * Sim & Sam Booking wizard styles.
 *
 * Scoped under .ssb-wizard, inherits the theme font. Brand palette is fixed to
 * Sim & Sam's colours (purple / yellow / red) rather than Elementor globals.
 */

.ssb-wizard {
	--ssb-primary: #4a1e6b;          /* brand purple */
	--ssb-primary-dark: #37154f;
	--ssb-primary-tint: #f3eef8;
	--ssb-accent: #f6c21b;           /* brand yellow */
	--ssb-accent-dark: #d9a800;
	--ssb-danger: #e5322d;           /* brand red */
	--ssb-danger-tint: #fdecec;
	--ssb-text: #2b2b33;
	--ssb-muted: #6b6b76;
	--ssb-line: #e4e0ec;
	--ssb-bg: #faf9fc;
	--ssb-field-bg: #fff;
	--ssb-radius: 18px;
	--ssb-shadow: 0 14px 40px rgba(58, 21, 83, .10);

	position: relative;
	max-width: 1300px;
	margin: 2.5rem auto;
	padding: 1.75rem 1.75rem 2rem;
	color: var(--ssb-text);
	font-family: inherit;
	line-height: 1.55;
	background:
		radial-gradient(120% 60% at 100% 0%, rgba(246, 194, 27, .10), transparent 60%),
		radial-gradient(120% 60% at 0% 0%, rgba(74, 30, 107, .07), transparent 55%),
		#fbfafd;
	border: 1px solid #efecf5;
	border-radius: 24px;
}

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

.ssb-wizard [hidden] {
	display: none !important;
}

/* ---------- Toast ---------- */

.ssb-toast {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 60;
	max-width: 340px;
	padding: .8rem 1.1rem;
	border-radius: 12px;
	background: #1f9d55;
	color: #fff;
	font-size: .9rem;
	font-weight: 700;
	box-shadow: 0 12px 30px rgba(31, 157, 85, .3);
	opacity: 0;
	transform: translateY(-8px);
	transition: opacity .25s ease, transform .25s ease;
	pointer-events: none;
}

.ssb-toast.is-in {
	opacity: 1;
	transform: translateY(0);
}

.ssb-toast--ok::before {
	content: "✓ ";
	font-weight: 800;
}

.ssb-toast--error {
	background: var(--ssb-danger);
	box-shadow: 0 12px 30px rgba(229, 50, 45, .3);
}

@media (max-width: 640px) {
	.ssb-toast {
		left: 14px;
		right: 14px;
		max-width: none;
	}
}

.ssb-wizard__body {
	position: relative;
	min-height: 80px;
	/* Layout responds to the widget's own width, not the viewport - it is often
	   dropped into a narrow Elementor column on a wide screen. */
	container-type: inline-size;
	container-name: ssbw;
}

/* Spinner overlay that keeps the current step visible underneath. */
.ssb-busy {
	position: absolute;
	inset: -6px;
	z-index: 20;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: 4rem;
	gap: .6rem;
	font-weight: 700;
	color: var(--ssb-primary);
	background: rgba(251, 250, 253, .74);
	backdrop-filter: blur(1.5px);
	-webkit-backdrop-filter: blur(1.5px);
	border-radius: 16px;
}

/* ---------- Header / stepper ---------- */

.ssb-wizard__head {
	text-align: center;
	margin-bottom: 1.75rem;
}

.ssb-eyebrow {
	display: inline-block;
	background: var(--ssb-accent);
	color: var(--ssb-primary-dark);
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	padding: .32rem .85rem;
	border-radius: 999px;
	transform: rotate(-1.5deg);
}

.ssb-wizard__title {
	margin: .6rem 0 1.4rem;
	font-size: clamp(1.5rem, 3vw, 2.15rem);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: .01em;
	text-transform: uppercase;
	color: var(--ssb-primary);
}

.ssb-wizard__title::after {
	content: "";
	display: block;
	width: 62px;
	height: 4px;
	margin: .7rem auto 0;
	border-radius: 999px;
	background: var(--ssb-accent);
}

.ssb-steps {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: .5rem;
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: none;
}

.ssb-steps__item {
	display: flex;
	align-items: center;
	gap: .5rem;
	padding: .3rem .55rem;
	font-size: .82rem;
	font-weight: 700;
	color: var(--ssb-muted);
}

.ssb-steps__item:not(:last-child)::after {
	content: "";
	width: 26px;
	height: 2px;
	margin-left: .35rem;
	border-radius: 2px;
	background: var(--ssb-line);
}

.ssb-steps__item span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--ssb-line);
	color: var(--ssb-muted);
	font-weight: 800;
	font-size: .82rem;
	transition: all .2s ease;
}

.ssb-steps__item.is-active {
	color: var(--ssb-primary);
}

.ssb-steps__item.is-active span {
	background: var(--ssb-primary);
	border-color: var(--ssb-primary);
	color: #fff;
	box-shadow: 0 0 0 4px rgba(74, 30, 107, .14);
}

.ssb-steps__item.is-done {
	color: var(--ssb-primary);
}

.ssb-steps__item.is-done span {
	background: var(--ssb-accent);
	border-color: var(--ssb-accent);
	color: var(--ssb-primary-dark);
	font-size: 0;
}

.ssb-steps__item.is-done span::before {
	content: "✓";
	font-size: .9rem;
}

/* ---------- Cards ---------- */

.ssb-card {
	background: #fff;
	border: 1px solid #ece8f3;
	border-radius: var(--ssb-radius);
	box-shadow: var(--ssb-shadow);
	padding: 1.5rem 1.6rem;
	margin-bottom: 1.1rem;
}

.ssb-card--search {
	background: linear-gradient(180deg, var(--ssb-primary-tint), #fff 75%);
	border-color: #e6def2;
}

/* ---------- Auth (register / login) ---------- */

.ssb-auth {
	background: linear-gradient(180deg, var(--ssb-primary-tint), #fff 70%);
	border-color: #e6def2;
}

.ssb-authtabs {
	display: flex;
	gap: .4rem;
	padding: .3rem;
	background: #efe9f6;
	border-radius: 999px;
	max-width: 22rem;
	margin: 0 auto 1.1rem;
}

.ssb-authtabs__tab {
	flex: 1;
	padding: .6rem .5rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	font: inherit;
	font-weight: 700;
	font-size: .92rem;
	color: var(--ssb-primary);
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.ssb-authtabs__tab.is-active {
	background: var(--ssb-primary);
	color: #fff;
	box-shadow: 0 6px 16px rgba(74, 30, 107, .28);
}

.ssb-auth__lead {
	margin: 0 0 1.15rem;
	text-align: center;
	font-size: .92rem;
	color: var(--ssb-muted);
}

.ssb-loginsub {
	display: flex;
	gap: 1.25rem;
	justify-content: center;
	margin-bottom: 1.1rem;
	border-bottom: 1px solid var(--ssb-line);
}

.ssb-loginsub__tab {
	padding: .5rem .2rem .7rem;
	border: 0;
	border-bottom: 2.5px solid transparent;
	background: transparent;
	font: inherit;
	font-weight: 600;
	font-size: .9rem;
	color: var(--ssb-muted);
	cursor: pointer;
	margin-bottom: -1px;
}

.ssb-loginsub__tab.is-active {
	color: var(--ssb-primary);
	border-bottom-color: var(--ssb-accent);
}

.ssb-linkbtn {
	border: 0;
	background: transparent;
	padding: 0;
	font: inherit;
	font-weight: 600;
	color: var(--ssb-primary);
	text-decoration: underline;
	cursor: pointer;
}

/* OTP */

.ssb-otp {
	max-width: 24rem;
	margin: 0 auto;
	text-align: center;
}

.ssb-otp__to {
	margin: 0 0 1rem;
	font-size: .9rem;
	color: var(--ssb-muted);
}

.ssb-otp__boxes {
	display: flex;
	gap: .5rem;
	justify-content: center;
}

.ssb-otp__box {
	width: 3rem;
	height: 3.4rem;
	padding: 0;
	text-align: center;
	font-size: 1.4rem;
	font-weight: 700;
	border: 1.5px solid var(--ssb-line);
	border-radius: 12px;
	background: #fff;
	color: var(--ssb-text);
}

.ssb-otp__box:focus {
	outline: none;
	border-color: var(--ssb-primary);
	box-shadow: 0 0 0 3px rgba(74, 30, 107, .14);
}

.ssb-otp.has-error .ssb-otp__box {
	border-color: var(--ssb-danger);
}

.ssb-otp.has-error .ssb-err {
	display: block;
	margin-top: .5rem;
}

.ssb-otp__resend {
	text-align: center;
	margin-top: .9rem;
}

/* Password field with show / hide toggle */

.ssb-pw {
	position: relative;
}

.ssb-pw input {
	padding-right: 3rem;
}

.ssb-pw__toggle {
	position: absolute;
	top: 50%;
	right: .35rem;
	transform: translateY(-50%);
	width: 2.2rem;
	height: 2.2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--ssb-muted);
	cursor: pointer;
	transition: color .12s ease, background-color .12s ease;
}

.ssb-pw__toggle:hover {
	color: var(--ssb-primary);
	background: var(--ssb-primary-tint);
}

.ssb-field.has-error .ssb-pw input {
	border-color: var(--ssb-danger);
	box-shadow: 0 0 0 3px rgba(229, 50, 45, .13);
}

.ssb-verified {
	margin: 0 0 1.1rem;
	padding: .6rem .9rem;
	border-radius: 10px;
	background: color-mix(in srgb, #1f9d55 12%, #fff);
	color: #147a41;
	font-size: .88rem;
	font-weight: 600;
}

/* "Confirm your details" header for a signed-in customer */
.ssb-confirm {
	margin: 0 0 1.2rem;
	padding: .8rem 1rem;
	border-radius: 12px;
	background: var(--ssb-primary-tint);
	border: 1px solid #e6def2;
}

.ssb-confirm__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	flex-wrap: wrap;
	font-weight: 700;
	color: var(--ssb-primary-dark);
	font-size: .92rem;
}

.ssb-confirm p {
	margin: .35rem 0 0;
	font-size: .85rem;
	color: var(--ssb-muted);
}

/* Signed-in identity card */

.ssb-idcard {
	display: flex;
	align-items: center;
	gap: .9rem;
	padding: 1rem 1.1rem;
	border: 1px solid var(--ssb-line);
	border-radius: 14px;
	background: #fff;
}

.ssb-idcard__avatar {
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--ssb-primary);
	color: #fff;
	font-weight: 800;
	font-size: 1.1rem;
}

.ssb-idcard__body {
	display: flex;
	flex-direction: column;
	gap: .15rem;
	min-width: 0;
}

.ssb-idcard__body strong {
	color: var(--ssb-primary-dark);
}

.ssb-idcard__body span {
	font-size: .85rem;
	color: var(--ssb-muted);
	overflow: hidden;
	text-overflow: ellipsis;
}

.ssb-card h4 {
	margin: 0 0 .6rem;
	padding-left: .7rem;
	border-left: 4px solid var(--ssb-accent);
	font-size: 1.05rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .02em;
	color: var(--ssb-primary);
}

.ssb-card h4 span {
	color: var(--ssb-danger);
}

.ssb-hint {
	margin: .4rem 0 0;
	font-size: .85rem;
	color: var(--ssb-muted);
}

/* ---------- Fields ---------- */

/* Fluid columns: fields flow to fill the (now wide) container, collapsing to
   one column on narrow screens. auto-fit keeps 2-field rows full width. */
.ssb-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: 1rem 1.25rem;
}

.ssb-grid + .ssb-grid {
	margin-top: 1.1rem;
}

.ssb-field {
	display: flex;
	flex-direction: column;
	gap: .3rem;
}

/* Space between the "existing kid" dropdown and the name / DOB row. */
.ssb-kidpick-select {
	margin-bottom: 1.1rem;
}

.ssb-field--search {
	margin-bottom: 1rem;
}

.ssb-field label {
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .01em;
	color: var(--ssb-muted);
	text-transform: none;
}

.ssb-field label span {
	color: var(--ssb-danger);
}

/* ---------- Field errors ---------- */

.ssb-err {
	display: none;
	font-size: .78rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--ssb-danger);
}

.ssb-field.has-error .ssb-err,
.ssb-kid-cell.has-error .ssb-err {
	display: block;
	margin-top: .15rem;
}

.ssb-field.has-error > input,
.ssb-field.has-error > select,
.ssb-field.has-error .ssb-dob-wrap > input,
.ssb-kid-cell.has-error > input,
.ssb-kid-cell.has-error .ssb-pick__btn {
	border-color: var(--ssb-danger);
	box-shadow: 0 0 0 3px rgba(229, 50, 45, .13);
}

.ssb-wizard input[type="text"],
.ssb-wizard input[type="tel"],
.ssb-wizard input[type="email"],
.ssb-wizard input[type="password"],
.ssb-wizard input[type="number"],
.ssb-wizard input[type="date"],
.ssb-wizard input[type="time"],
.ssb-wizard select {
	width: 100%;
	height: 50px;
	min-height: 50px;
	margin: 0;
	padding: 0 .9rem;
	border: 1.5px solid var(--ssb-line);
	border-radius: 10px;
	font: inherit;
	font-size: .95rem;
	line-height: normal;
	color: var(--ssb-text);
	background: var(--ssb-field-bg);
	transition: border-color .15s ease, box-shadow .15s ease;
	appearance: none;
	-webkit-appearance: none;
}

.ssb-wizard textarea {
	font: inherit;
}

/* Date / time fields: the whole field opens the picker (see openNativePicker). */
.ssb-wizard input[type="date"],
.ssb-wizard input[type="time"] {
	cursor: pointer;
}

.ssb-wizard input[type="date"]::-webkit-calendar-picker-indicator,
.ssb-wizard input[type="time"]::-webkit-calendar-picker-indicator {
	cursor: pointer;
	opacity: .55;
	padding: .35rem;
	margin-right: -.15rem;
}

.ssb-wizard input[type="date"]:hover::-webkit-calendar-picker-indicator,
.ssb-wizard input[type="time"]:hover::-webkit-calendar-picker-indicator {
	opacity: 1;
}

.ssb-wizard input::placeholder {
	color: #a7a3b3;
	opacity: 1;
}

.ssb-wizard input:disabled,
.ssb-wizard select:disabled {
	background: #f1eef6;
	color: #8a8595;
	border-color: var(--ssb-line);
	cursor: not-allowed;
}

.ssb-wizard input:hover,
.ssb-wizard select:hover {
	border-color: #cfc8dd;
}

.ssb-wizard input:focus,
.ssb-wizard select:focus {
	outline: none;
	border-color: var(--ssb-primary);
	box-shadow: 0 0 0 3px rgba(74, 30, 107, .14);
}

/* ---------- Searchable select (state) ---------- */

.ssb-ss {
	position: relative;
}

.ssb-ss__control {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .5rem;
	width: 100%;
	height: 50px;
	padding: 0 .9rem;
	border: 1.5px solid var(--ssb-line);
	border-radius: 10px;
	background: var(--ssb-field-bg);
	font: inherit;
	font-size: .95rem;
	color: var(--ssb-text);
	cursor: pointer;
	text-align: left;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.ssb-ss__control:hover {
	border-color: #cfc8dd;
}

.ssb-ss[data-open="true"] .ssb-ss__control,
.ssb-ss__control:focus-visible {
	outline: none;
	border-color: var(--ssb-primary);
	box-shadow: 0 0 0 3px rgba(74, 30, 107, .14);
}

.ssb-ss__value {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.ssb-ss__value.is-placeholder {
	color: #a7a3b3;
}

.ssb-ss__caret {
	flex: 0 0 auto;
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid var(--ssb-muted);
	transition: transform .15s ease;
}

.ssb-ss[data-open="true"] .ssb-ss__caret {
	transform: rotate(180deg);
}

.ssb-ss__panel {
	position: absolute;
	z-index: 30;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid var(--ssb-line);
	border-radius: 12px;
	box-shadow: 0 16px 40px rgba(58, 21, 83, .16);
	padding: .5rem;
	overflow: hidden;
}

.ssb-ss__search {
	width: 100%;
	height: 40px;
	margin-bottom: .35rem;
	padding: 0 .75rem;
	border: 1.5px solid var(--ssb-line);
	border-radius: 8px;
	font: inherit;
	font-size: .92rem;
}

.ssb-ss__search:focus {
	outline: none;
	border-color: var(--ssb-primary);
}

.ssb-ss__list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 240px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.ssb-ss__opt {
	padding: .55rem .7rem;
	border-radius: 8px;
	font-size: .93rem;
	cursor: pointer;
}

.ssb-ss__opt:hover {
	background: var(--ssb-primary-tint);
}

.ssb-ss__opt.is-selected {
	background: var(--ssb-primary);
	color: #fff;
	font-weight: 700;
}

.ssb-ss__empty {
	padding: .7rem;
	font-size: .9rem;
	color: var(--ssb-muted);
	text-align: center;
}

.ssb-field.has-error .ssb-ss__control {
	border-color: var(--ssb-danger);
	box-shadow: 0 0 0 3px rgba(229, 50, 45, .13);
}

.ssb-inline {
	display: flex;
	gap: .5rem;
	align-items: stretch;
}

.ssb-inline input {
	flex: 1;
	min-width: 0;
}

/* Button fills the row height so it always matches the input, even if the
   theme forces a taller input than our default. */
.ssb-inline .ssb-btn {
	flex: 0 0 auto;
	align-self: stretch;
	min-height: 0;
	height: auto;
	padding: 0 1.3rem;
	border-radius: 10px;
}

/* Narrow widget (e.g. half-width column): stack a text field + its action
   button so the button fills the row instead of rendering as a short,
   off-centre pill. Scoped with :has(> input) so the compact icon buttons in
   picker rows (e.g. the kid "clear" ×) are left alone. */
@container ssbw (max-width: 480px) {
	.ssb-inline:has(> input) {
		flex-wrap: wrap;
	}

	.ssb-inline:has(> input) > input,
	.ssb-inline:has(> input) > .ssb-btn {
		flex: 1 1 100%;
		width: 100%;
	}

	.ssb-inline:has(> input) > .ssb-btn {
		min-height: 44px;
		padding: .7rem 1.4rem;
	}
}

/* ---------- Kids ---------- */

.ssb-kids {
	margin-top: 1.1rem;
	border-top: 1px dashed var(--ssb-line);
	padding-top: 1rem;
}

.ssb-kids__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: .6rem;
}

.ssb-kids__head h4 {
	margin: 0;
}

.ssb-kid-row {
	display: grid;
	grid-template-columns: 1fr 1fr auto;
	align-items: start;
	gap: .5rem;
	margin-bottom: .6rem;
}

.ssb-kid-cell {
	display: flex;
	flex-direction: column;
	gap: .25rem;
	min-width: 0;
}

/* The delete cell carries a blank label so the button lines up with the
   inputs, not the labels above them. */
.ssb-kid-cell--del {
	align-items: stretch;
}

.ssb-kid-lbl {
	font-size: .78rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--ssb-muted);
}

/* ---------- Date / time popover pickers ---------- */

.ssb-pick {
	position: relative;
}

.ssb-pick__btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .5rem;
	width: 100%;
	height: 50px;
	margin: 0;
	padding: 0 .9rem;
	border: 1.5px solid var(--ssb-line);
	border-radius: 10px;
	background: var(--ssb-field-bg);
	font: inherit;
	font-size: .95rem;
	color: var(--ssb-text);
	text-align: left;
	cursor: pointer;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.ssb-pick__btn:hover:not(:disabled) {
	border-color: #cfc8dd;
}

.ssb-pick[data-open="true"] .ssb-pick__btn,
.ssb-pick__btn:focus-visible {
	outline: none;
	border-color: var(--ssb-primary);
	box-shadow: 0 0 0 3px rgba(74, 30, 107, .14);
}

.ssb-pick__btn:disabled {
	background: #f4f2f7;
	color: #a7a3b3;
	cursor: not-allowed;
}

/* Read-only display (party "to time") - looks like the control, isn't clickable. */
.ssb-pick__btn--static {
	background: #f4f2f7;
	color: var(--ssb-text);
	cursor: default;
}

.ssb-pick__btn--static .ssb-pick__ic {
	color: #b7b2c2;
}

.ssb-inline .ssb-dob-wrap,
.ssb-inline .ssb-pick {
	flex: 1;
	min-width: 0;
}

.ssb-field.has-error .ssb-pick__btn {
	border-color: var(--ssb-danger);
	box-shadow: 0 0 0 3px rgba(229, 50, 45, .13);
}

.ssb-pick__val {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.ssb-pick__val.is-placeholder {
	color: #a7a3b3;
}

.ssb-pick__ic {
	flex: 0 0 auto;
	color: var(--ssb-primary);
}

.ssb-pick__btn:disabled .ssb-pick__ic {
	color: #b7b2c2;
}

.ssb-pick__pop {
	position: absolute;
	z-index: 40;
	top: calc(100% + 6px);
	left: 0;
	width: max-content;
	max-width: min(92vw, 22rem);
	background: #fff;
	border: 1px solid var(--ssb-line);
	border-radius: 14px;
	box-shadow: 0 16px 40px rgba(58, 21, 83, .18);
	padding: .7rem;
}

.ssb-pick__pop--slots {
	left: auto;
	right: 0;
}

/* Calendar */

.ssb-cal {
	width: 16.5rem;
	max-width: 84vw;
}

.ssb-cal__head {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .25rem;
	margin-bottom: .55rem;
}

.ssb-cal__head strong {
	flex: 1;
	text-align: center;
	font-size: .9rem;
	color: var(--ssb-primary-dark);
}

.ssb-cal__nav {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1.5px solid var(--ssb-line);
	border-radius: 7px;
	background: #fff;
	font-size: 1rem;
	line-height: 1;
	color: var(--ssb-primary);
	cursor: pointer;
	transition: background-color .12s ease, border-color .12s ease;
}

.ssb-cal__nav:hover:not(:disabled) {
	background: var(--ssb-primary-tint);
	border-color: var(--ssb-primary);
}

.ssb-cal__nav:disabled {
	opacity: .35;
	cursor: not-allowed;
}

.ssb-cal__wd,
.ssb-cal__grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
}

.ssb-cal__wd {
	margin-bottom: 4px;
}

.ssb-cal__wd span {
	text-align: center;
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .02em;
	color: var(--ssb-muted);
	text-transform: uppercase;
	padding: .2rem 0;
}

.ssb-cal__day {
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 8px;
	background: transparent;
	font: inherit;
	font-size: .86rem;
	color: var(--ssb-text);
	cursor: pointer;
	transition: background-color .12s ease, color .12s ease;
}

.ssb-cal__day.is-empty {
	pointer-events: none;
}

.ssb-cal__day:hover:not(:disabled):not(.is-empty) {
	background: var(--ssb-primary-tint);
}

.ssb-cal__day.is-today:not(.is-selected) {
	box-shadow: inset 0 0 0 1.5px var(--ssb-accent);
	font-weight: 700;
}

.ssb-cal__day.is-selected {
	background: var(--ssb-primary);
	color: #fff;
	font-weight: 700;
}

.ssb-cal__day:disabled {
	color: #cdc9d6;
	cursor: not-allowed;
}

/* Time picker (hour / minute columns) */

.ssb-tp {
	width: 15rem;
	max-width: 76vw;
}

.ssb-tp__cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: .5rem;
}

.ssb-tp__col {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.ssb-tp__hd {
	text-align: center;
	font-size: .66rem;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--ssb-muted);
	padding-bottom: .35rem;
}

.ssb-tp__list {
	height: 196px;
	overflow-y: auto;
	overscroll-behavior: contain;
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding-right: 3px;
	scrollbar-width: thin;
}

.ssb-tp__opt {
	flex: 0 0 auto;
	padding: .5rem .3rem;
	border: 1.5px solid transparent;
	border-radius: 8px;
	background: #f5f3f9;
	font: inherit;
	font-size: .85rem;
	font-weight: 600;
	color: var(--ssb-text);
	cursor: pointer;
	transition: background-color .12s ease, color .12s ease;
}

.ssb-tp__opt:hover:not(:disabled):not(.is-selected) {
	background: var(--ssb-primary-tint);
}

.ssb-tp__opt.is-selected {
	background: var(--ssb-primary);
	color: #fff;
}

.ssb-tp__opt:disabled {
	opacity: .3;
	cursor: not-allowed;
}

.ssb-tp__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .5rem;
	margin-top: .55rem;
	padding-top: .55rem;
	border-top: 1px solid var(--ssb-line);
}

.ssb-tp__foot strong {
	font-size: .95rem;
	color: var(--ssb-primary-dark);
}

.ssb-tp__set {
	padding: .45rem .95rem;
	font-size: .84rem;
}

.ssb-slots__empty {
	width: 14rem;
	max-width: 72vw;
	padding: .8rem;
	text-align: center;
	font-size: .85rem;
	color: var(--ssb-muted);
}

/* Custom placeholder for the native date field (which ignores `placeholder`). */
.ssb-dob-wrap {
	position: relative;
	display: block;
}

.ssb-dob-wrap[data-empty]::after {
	content: attr(data-ph);
	position: absolute;
	top: 1.5px;
	bottom: 1.5px;
	left: 1.5px;
	right: 2.4rem;
	display: flex;
	align-items: center;
	padding-left: .9rem;
	font-size: .95rem;
	color: #a7a3b3;
	background: var(--ssb-field-bg);
	border-radius: 9px 0 0 9px;
	pointer-events: none;
}

.ssb-dob-wrap[data-empty] input[type="date"] {
	color: transparent;
}

.ssb-kid-del {
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1.5px solid var(--ssb-line);
	background: #fff;
	border-radius: 10px;
	width: 50px;
	height: 50px;
	flex: 0 0 auto;
	cursor: pointer;
	font-size: 1.4rem;
	line-height: 1;
	color: var(--ssb-muted);
	transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}

.ssb-kid-del:hover {
	color: var(--ssb-danger);
	border-color: var(--ssb-danger);
	background: var(--ssb-danger-tint);
}

/* ---------- Buttons ---------- */

.ssb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .4rem;
	min-height: 44px;
	padding: .6rem 1.4rem;
	border-radius: 999px;
	border: 1.5px solid transparent;
	font: inherit;
	font-size: .92rem;
	font-weight: 700;
	line-height: 1.1;
	white-space: nowrap;
	cursor: pointer;
	text-decoration: none;
	transition: transform .05s ease, filter .15s ease, background-color .15s ease, color .15s ease;
}

.ssb-btn:active {
	transform: translateY(1px);
}

.ssb-btn--primary {
	background: var(--ssb-primary);
	color: #fff;
}

.ssb-btn--primary:hover {
	background: var(--ssb-primary-dark);
}

.ssb-btn--pay {
	background: var(--ssb-accent);
	color: var(--ssb-primary-dark);
	font-weight: 800;
	box-shadow: 0 6px 18px rgba(246, 194, 27, .4);
}

.ssb-btn--pay:hover {
	background: var(--ssb-accent-dark);
}

.ssb-btn--pay:disabled {
	background: #e7e3ef;
	color: #a7a3b3;
	box-shadow: none;
	cursor: not-allowed;
}

.ssb-btn--ghost {
	background: #fff;
	border-color: #d8d1e6;
	color: var(--ssb-primary);
}

.ssb-btn--ghost:hover {
	border-color: var(--ssb-primary);
	background: var(--ssb-primary-tint);
}

.ssb-btn--danger {
	background: var(--ssb-danger);
	color: #fff;
}

.ssb-btn--danger:hover {
	filter: brightness(1.06);
}

.ssb-btn--sm {
	min-height: 38px;
	padding: .35rem .95rem;
	font-size: .82rem;
}

.ssb-actions {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1.5rem;
}

.ssb-actions .ssb-btn {
	min-width: 130px;
}

/* ---------- Products ---------- */

.ssb-prod-list {
	display: flex;
	flex-direction: column;
	gap: .55rem;
	margin-top: .75rem;
}

.ssb-prod {
	display: grid;
	grid-template-columns: 56px 1fr auto auto;
	align-items: center;
	gap: .9rem;
	padding: .7rem .8rem;
	border: 1.5px solid var(--ssb-line);
	border-radius: 14px;
	background: var(--ssb-bg);
	transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.ssb-prod--pick {
	cursor: pointer;
}

.ssb-prod--pick:hover {
	border-color: #cfc4e2;
}

.ssb-prod--pick input {
	position: absolute;
	opacity: 0;
}

.ssb-prod.is-selected {
	border-color: var(--ssb-primary);
	background: var(--ssb-primary-tint);
	box-shadow: 0 0 0 3px rgba(74, 30, 107, .12);
}

.ssb-prod img,
.ssb-prod__noimg {
	width: 56px;
	height: 56px;
	border-radius: 12px;
	object-fit: cover;
	background: var(--ssb-primary-tint);
	display: block;
}

.ssb-prod__body {
	display: flex;
	flex-direction: column;
	gap: .15rem;
	min-width: 0;
}

.ssb-prod__name {
	font-weight: 700;
}

.ssb-prod__meta {
	font-size: .8rem;
	color: var(--ssb-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.ssb-prod__price {
	font-weight: 800;
	color: var(--ssb-primary);
	white-space: nowrap;
}

/* ---------- Stepper ---------- */

.ssb-stepper {
	display: inline-flex;
	align-items: center;
	gap: .1rem;
	border: 1.5px solid var(--ssb-line);
	border-radius: 999px;
	background: #fff;
	overflow: hidden;
}

.ssb-stepper button {
	border: 0;
	background: transparent;
	width: 34px;
	height: 34px;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	color: var(--ssb-primary);
}

.ssb-stepper button:hover {
	background: var(--ssb-primary-tint);
}

.ssb-stepper b {
	min-width: 26px;
	text-align: center;
	font-size: .9rem;
	font-weight: 700;
}

.ssb-qtystatic {
	font-weight: 700;
	color: var(--ssb-primary);
}

/* ---------- Cart bar ---------- */

.ssb-cartbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: .95rem 1.25rem;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--ssb-primary), #5f2a86);
	color: #fff;
	font-weight: 700;
	margin: .4rem 0 1.1rem;
	box-shadow: 0 8px 22px rgba(74, 30, 107, .28);
}

.ssb-cartbar strong {
	font-size: 1.15rem;
}

/* ---------- Checkout summary ---------- */

.ssb-lines {
	width: 100%;
	border-collapse: collapse;
	margin-top: .5rem;
	font-size: .92rem;
}

.ssb-lines th,
.ssb-lines td {
	text-align: left;
	padding: .55rem .4rem;
	border-bottom: 1px solid var(--ssb-line);
}

.ssb-lines th:last-child,
.ssb-lines td:last-child,
.ssb-lines th:nth-child(2),
.ssb-lines td:nth-child(2) {
	text-align: right;
}

.ssb-lines em {
	color: var(--ssb-muted);
	font-style: normal;
	font-size: .82rem;
}

/* Narrow widget: the 4-column line-item table collapses the Item name to an
   unreadable vertical sliver. Re-flow each row as a small stacked card. */
@container ssbw (max-width: 480px) {
	.ssb-lines thead {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		padding: 0;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
		border: 0;
	}

	.ssb-lines,
	.ssb-lines tbody,
	.ssb-lines tr,
	.ssb-lines td {
		display: block;
		width: 100%;
	}

	.ssb-lines tr {
		border: 1px solid var(--ssb-line);
		border-radius: 12px;
		padding: .35rem .8rem .5rem;
		margin-bottom: .6rem;
	}

	.ssb-lines td {
		border: 0;
		padding: .32rem 0;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 1rem;
		text-align: right;
	}

	.ssb-lines td::before {
		content: attr(data-label);
		font-weight: 700;
		color: var(--ssb-muted);
		font-size: .82rem;
		text-align: left;
	}

	/* Item name gets its own full-width line at the top of the card. */
	.ssb-lines td[data-label="Item"] {
		display: block;
		text-align: left;
		font-weight: 700;
		padding-bottom: .45rem;
		margin-bottom: .2rem;
		border-bottom: 1px solid var(--ssb-line);
	}

	.ssb-lines td[data-label="Item"]::before {
		display: none;
	}

	.ssb-lines td[data-label="Item"] em {
		font-weight: 400;
	}
}

.ssb-card--codes .ssb-field + .ssb-field {
	margin-top: .75rem;
}

/* ---------- Coupon / gift-code toggle ---------- */

.ssb-coderadio {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	margin-bottom: .85rem;
}

.ssb-coderadio label {
	display: flex;
	align-items: center;
	gap: .45rem;
	font-size: .92rem;
	font-weight: 600;
	color: var(--ssb-text);
	cursor: pointer;
}

.ssb-coderadio input {
	width: 1.05rem;
	height: 1.05rem;
	accent-color: var(--ssb-primary);
	cursor: pointer;
}

.ssb-coderadio label.is-disabled {
	opacity: .45;
	cursor: not-allowed;
}

.ssb-usepoints {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .5rem;
	margin-top: .9rem;
	font-size: .9rem;
	font-weight: 600;
	color: var(--ssb-primary);
}

.ssb-usepoints input {
	accent-color: var(--ssb-primary);
}

.ssb-usepoints.is-disabled {
	opacity: .55;
	cursor: not-allowed;
}

.ssb-usepoints .ssb-hint {
	flex-basis: 100%;
	margin: .1rem 0 0;
	font-weight: 400;
}

/* ---------- Coupon ---------- */

.ssb-offer {
	align-self: flex-start;
	border: 1px dashed var(--ssb-accent);
	background: color-mix(in srgb, var(--ssb-accent) 14%, #fff);
	color: var(--ssb-primary-dark);
	font: inherit;
	font-weight: 700;
	font-size: .84rem;
	padding: .4rem .8rem;
	border-radius: 999px;
	cursor: pointer;
	margin-bottom: .1rem;
}

.ssb-offer:hover {
	background: color-mix(in srgb, var(--ssb-accent) 24%, #fff);
}

/* ---------- Prepaid plan cards ---------- */

.ssb-plan {
	grid-template-columns: 1fr auto;
}

.ssb-plan-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: .6rem;
	padding: .9rem 1rem;
	border: 1px solid var(--ssb-line);
	border-radius: 12px;
	background: var(--ssb-bg);
}

.ssb-plan-summary div {
	display: flex;
	flex-direction: column;
	gap: .15rem;
}

.ssb-plan-summary strong {
	color: var(--ssb-primary);
}

.ssb-plan-summary span {
	font-size: .85rem;
	color: var(--ssb-muted);
}

.ssb-summary {
	display: flex;
	flex-direction: column;
	gap: .4rem;
	background: var(--ssb-primary-tint);
	border-color: #e6def2;
}

.ssb-sumrow {
	display: flex;
	justify-content: space-between;
	font-size: .92rem;
}

.ssb-sumrow--total {
	margin-top: .5rem;
	padding-top: .65rem;
	border-top: 2px dashed #cdbfe0;
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--ssb-primary);
}

.ssb-sumrow--muted {
	display: flex;
	justify-content: space-between;
	font-size: .88rem;
	color: var(--ssb-muted);
}

/* ---------- Party kids picker ---------- */

.ssb-kidpick {
	margin: .5rem 0;
}

.ssb-kidpick .ssb-kid-row {
	grid-template-columns: 1fr 1fr auto;
}

/* ---------- Notices / loading ---------- */

.ssb-notice {
	padding: .85rem 1.1rem;
	border-radius: 12px;
	background: var(--ssb-primary-tint);
	color: var(--ssb-primary-dark);
	font-size: .9rem;
	font-weight: 600;
	margin-bottom: 1rem;
	border-left: 4px solid var(--ssb-primary);
}

.ssb-notice--warn {
	background: #fff6da;
	color: #7a5b00;
	border-left-color: var(--ssb-accent);
}

.ssb-notice--error {
	background: var(--ssb-danger-tint);
	color: #a12525;
	border-left-color: var(--ssb-danger);
}

.ssb-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .6rem;
	padding: 3rem 1rem;
	color: var(--ssb-muted);
	font-weight: 600;
}

.ssb-spinner {
	width: 18px;
	height: 18px;
	border: 3px solid var(--ssb-line);
	border-top-color: var(--ssb-primary);
	border-radius: 50%;
	animation: ssb-spin .8s linear infinite;
	display: inline-block;
}

.ssb-spinner--lg {
	width: 40px;
	height: 40px;
	border-width: 4px;
	margin-bottom: .5rem;
}

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

/* ---------- Result screens ---------- */

.ssb-result {
	text-align: center;
	background: #fff;
	border: 1px solid #ece8f3;
	border-radius: var(--ssb-radius);
	box-shadow: var(--ssb-shadow);
	padding: 3.25rem 1.75rem;
}

.ssb-result h3 {
	margin: 1.5rem 0 .8rem;
	font-size: 1.4rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .01em;
	color: var(--ssb-primary);
}

.ssb-result p {
	max-width: 34rem;
	margin: 0 auto;
	line-height: 1.65;
	color: var(--ssb-muted);
}

/* Stand-alone button on the waiting / pending screens (the success and
   failed screens wrap theirs in .ssb-result__actions). */
.ssb-result > .ssb-btn {
	margin-top: 2rem;
}

.ssb-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	font-size: 2.1rem;
	color: #fff;
	box-shadow: 0 10px 26px rgba(0, 0, 0, .14);
}

.ssb-badge--ok {
	background: #1f9d55;
}

.ssb-badge--err {
	background: var(--ssb-danger);
}

.ssb-badge--wait {
	background: var(--ssb-accent);
	color: var(--ssb-primary-dark);
}

.ssb-ticket {
	max-width: 30rem;
	margin: 1.9rem auto 0;
	text-align: left;
	border: 2px dashed #cdbfe0;
	border-radius: 14px;
	padding: 1.1rem 1.35rem;
	background: var(--ssb-primary-tint);
}

.ssb-ticket__row {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: .38rem 0;
	font-size: .92rem;
}

.ssb-ticket__row strong {
	color: var(--ssb-primary);
}

.ssb-ticket__items {
	margin-top: .5rem;
	padding-top: .5rem;
	border-top: 1px solid var(--ssb-line);
	font-size: .9rem;
}

.ssb-ticket__items ul {
	margin: .25rem 0 0;
	padding-left: 1.1rem;
}

.ssb-result__actions {
	display: flex;
	gap: .75rem;
	justify-content: center;
	margin-top: 2rem;
	flex-wrap: wrap;
}

/* ---------- Responsive ---------- */

@media (max-width: 782px) {
	.ssb-wizard {
		margin: 1.25rem auto;
		padding: 1.25rem 1rem 1.5rem;
		border-radius: 18px;
	}

	.ssb-card {
		padding: 1.15rem 1.15rem;
	}

	.ssb-steps__item {
		font-size: 0;
		gap: 0;
		padding: .2rem;
	}

	.ssb-steps__item span {
		font-size: .82rem;
	}

	.ssb-steps__item.is-done span {
		font-size: 0;
	}

	.ssb-steps__item:not(:last-child)::after {
		width: 18px;
		margin-left: .2rem;
	}
}

@media (max-width: 640px) {
	.ssb-grid {
		grid-template-columns: 1fr;
	}

	.ssb-inline:has(> input) {
		flex-wrap: wrap;
	}

	.ssb-inline:has(> input) > input,
	.ssb-inline:has(> input) > .ssb-btn {
		flex: 1 1 100%;
		width: 100%;
	}

	.ssb-inline:has(> input) > .ssb-btn {
		min-height: 44px;
		padding: .7rem 1.4rem;
	}

	.ssb-kid-row {
		grid-template-columns: 1fr auto;
	}

	.ssb-kid-row .ssb-kid-cell:not(.ssb-kid-cell--del) {
		grid-column: 1;
	}

	.ssb-kid-cell--del {
		grid-column: 2;
		grid-row: 1 / span 2;
		align-self: start;
	}

	.ssb-prod {
		grid-template-columns: 44px 1fr auto;
		grid-template-areas:
			"img body price"
			"img stepper stepper";
	}

	.ssb-prod img,
	.ssb-prod__noimg {
		grid-area: img;
		width: 44px;
		height: 44px;
	}

	.ssb-prod__body {
		grid-area: body;
	}

	.ssb-prod__price {
		grid-area: price;
	}

	.ssb-prod .ssb-stepper {
		grid-area: stepper;
		justify-self: start;
		margin-top: .4rem;
	}

	.ssb-actions {
		flex-direction: column-reverse;
	}

	.ssb-actions .ssb-btn {
		width: 100%;
	}
}
