/*
 * Apple-Calendar-style time grid + popover/bottom sheet.
 * Shared by the public booking form and the admin overview.
 */

.ssbk-cal,
.ssbk-sheet,
.ssbk-toast {
	--ssbk-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
	--ssbk-tint: #ff3b30;
	--ssbk-label: #000;
	--ssbk-secondary: rgba(60, 60, 67, .6);
	--ssbk-tertiary: rgba(60, 60, 67, .3);
	--ssbk-sep: rgba(60, 60, 67, .16);
	--ssbk-fill: rgba(118, 118, 128, .12);
	--ssbk-grouped: #f2f2f7;
	--ssbk-accent: #3ab8b8;
	--ssbk-accent-ink: #0b5757;
	--ssbk-accent-strong: #138a8a;
	--ssbk-green: #34c759;
	--ssbk-orange: #ff9500;
	--ssbk-gray: #8e8e93;
	font-family: var(--ssbk-font);
	-webkit-font-smoothing: antialiased;
}

.ssbk-cal *,
.ssbk-sheet *,
.ssbk-cal *::before,
.ssbk-sheet *::before,
.ssbk-cal *::after,
.ssbk-sheet *::after {
	box-sizing: border-box;
}

.ssbk-cal button,
.ssbk-sheet button {
	-webkit-appearance: none;
	appearance: none;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: inherit;
	font: inherit;
	letter-spacing: normal;
	line-height: inherit;
	margin: 0;
	min-height: 0;
	padding: 0;
	text-transform: none;
}

/* ---------------------------------------------------------------- */
/* Frame + toolbar                                                   */
/* ---------------------------------------------------------------- */

.ssbk-cal {
	--ssbk-hour: 48px;
	--ssbk-gutter: 56px;
	background: #fff;
	border: 1px solid var(--ssbk-sep);
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 32px rgba(0, 0, 0, .06);
	color: var(--ssbk-label);
	overflow: hidden;
	position: relative;
	-webkit-tap-highlight-color: transparent;
}

.ssbk-cal-top {
	align-items: flex-end;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	justify-content: space-between;
	padding: 16px 16px 10px 20px;
}

.ssbk-cal .ssbk-cal-title {
	color: var(--ssbk-label);
	font-family: var(--ssbk-font);
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -.02em;
	line-height: 1.1;
	margin: 0;
}

.ssbk-cal-sub {
	color: var(--ssbk-secondary);
	font-size: 13px;
	margin: 3px 0 0;
}

.ssbk-cal-sub[hidden] {
	display: none;
}

/* Month arrows sit before the title so they don't move as its width changes. */
.ssbk-cal-titlerow {
	align-items: center;
	display: flex;
	gap: 2px;
	margin-left: -6px;
}

.ssbk-cal .ssbk-cal-mnav {
	flex: none;
	height: 30px;
	width: 30px;
}

.ssbk-cal .ssbk-cal-mnav:last-of-type {
	margin-right: 6px;
}

.ssbk-cal .ssbk-cal-icon[hidden],
.ssbk-cal .ssbk-seg-btn[hidden] {
	display: none;
}

.ssbk-cal-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ssbk-cal .ssbk-cal-btn {
	border-radius: 8px;
	color: var(--ssbk-tint);
	cursor: pointer;
	font-size: 15px;
	font-weight: 500;
	padding: 6px 10px;
}

.ssbk-cal .ssbk-cal-btn:hover {
	background: var(--ssbk-fill);
}

.ssbk-cal .ssbk-cal-icon {
	align-items: center;
	border-radius: 50%;
	color: var(--ssbk-tint);
	cursor: pointer;
	display: inline-flex;
	height: 32px;
	justify-content: center;
	width: 32px;
}

.ssbk-cal .ssbk-cal-icon:hover {
	background: var(--ssbk-fill);
}

.ssbk-cal .ssbk-cal-icon:disabled {
	color: var(--ssbk-tertiary);
	cursor: default;
	background: none;
}

.ssbk-cal-icon svg {
	fill: none;
	height: 20px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2.4;
	width: 20px;
}

.ssbk-seg {
	background: var(--ssbk-fill);
	border-radius: 9px;
	display: inline-flex;
	padding: 2px;
}

.ssbk-seg[hidden] {
	display: none;
}

.ssbk-cal .ssbk-seg-btn {
	border-radius: 7px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 500;
	min-width: 64px;
	padding: 4px 12px;
}

.ssbk-cal .ssbk-seg-btn[aria-pressed="true"] {
	background: #fff;
	box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 3px 1px rgba(0, 0, 0, .04);
	font-weight: 600;
}

.ssbk-cal-progress {
	height: 2px;
	overflow: hidden;
	position: relative;
}

.ssbk-cal.is-loading .ssbk-cal-progress::after {
	animation: ssbk-progress 1.1s ease-in-out infinite;
	background: var(--ssbk-tint);
	content: "";
	height: 100%;
	left: 0;
	position: absolute;
	width: 30%;
}

@keyframes ssbk-progress {
	from { transform: translateX(-100%); }
	to { transform: translateX(340%); }
}

.ssbk-cal-message {
	align-items: center;
	background: rgba(255, 255, 255, .92);
	display: flex;
	flex-direction: column;
	gap: 8px;
	inset: 0;
	justify-content: center;
	position: absolute;
	text-align: center;
	z-index: 20;
}

.ssbk-cal-message[hidden] {
	display: none;
}

/* ---------------------------------------------------------------- */
/* Week strip + day line (day view)                                  */
/* ---------------------------------------------------------------- */

.ssbk-strip {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	padding: 0 8px 4px;
	touch-action: pan-y;
	user-select: none;
}

.ssbk-strip[hidden],
.ssbk-dayline[hidden] {
	display: none;
}

.ssbk-cal .ssbk-strip-day {
	align-items: center;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 2px 0 4px;
}

.ssbk-strip-wd {
	color: var(--ssbk-secondary);
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
}

.ssbk-strip-num {
	align-items: center;
	border-radius: 50%;
	display: flex;
	font-size: 19px;
	font-weight: 400;
	height: 36px;
	justify-content: center;
	transition: background-color .15s, color .15s;
	width: 36px;
}

.ssbk-strip-day.is-today .ssbk-strip-num {
	color: var(--ssbk-tint);
	font-weight: 600;
}

.ssbk-strip-day.is-selected .ssbk-strip-num {
	background: var(--ssbk-label);
	color: #fff;
	font-weight: 600;
}

.ssbk-strip-day.is-selected.is-today .ssbk-strip-num {
	background: var(--ssbk-tint);
}

.ssbk-strip-day.is-muted .ssbk-strip-num {
	color: var(--ssbk-tertiary);
}

.ssbk-strip-dot {
	background: var(--ssbk-gray);
	border-radius: 50%;
	height: 5px;
	opacity: 0;
	width: 5px;
}

.ssbk-strip-dot.is-on {
	opacity: 1;
}

.ssbk-dayline {
	align-items: baseline;
	border-bottom: 1px solid var(--ssbk-sep);
	border-top: 1px solid var(--ssbk-sep);
	display: flex;
	flex-wrap: wrap;
	gap: 2px 8px;
	justify-content: center;
	padding: 9px 16px;
}

.ssbk-dayline-date {
	font-size: 15px;
	font-weight: 600;
}

.ssbk-dayline-flag {
	color: var(--ssbk-secondary);
	font-size: 13px;
}

/* ---------------------------------------------------------------- */
/* Month view                                                         */
/* ---------------------------------------------------------------- */

.ssbk-cal-scroll[hidden],
.ssbk-month[hidden] {
	display: none;
}

.ssbk-month {
	border-top: 1px solid var(--ssbk-sep);
	display: flex;
	flex-direction: column;
	height: min(70vh, 720px);
	min-height: 420px;
	overflow: hidden;
	touch-action: pan-y;
	user-select: none;
}

.ssbk-month-wds {
	border-bottom: 1px solid var(--ssbk-sep);
	display: grid;
	flex: none;
	grid-template-columns: repeat(7, minmax(0, 1fr));
}

.ssbk-month-wds span {
	color: var(--ssbk-secondary);
	font-size: 11px;
	font-weight: 600;
	padding: 6px 10px;
	text-align: right;
	text-transform: uppercase;
}

.ssbk-month-grid {
	display: grid;
	flex: 1;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	grid-template-rows: repeat(var(--ssbk-weeks, 6), minmax(0, 1fr));
	min-height: 0;
}

.ssbk-month.is-slide-next .ssbk-month-grid {
	animation: ssbk-slide-next .28s cubic-bezier(.2, .8, .2, 1);
}

.ssbk-month.is-slide-prev .ssbk-month-grid {
	animation: ssbk-slide-prev .28s cubic-bezier(.2, .8, .2, 1);
}

.ssbk-month-day {
	border-bottom: 1px solid var(--ssbk-sep);
	border-right: 1px solid var(--ssbk-sep);
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-height: 0;
	min-width: 0;
	overflow: hidden;
	padding: 4px;
	transition: background-color .15s;
}

.ssbk-month-day:nth-child(7n) {
	border-right: 0;
}

.ssbk-month-day:nth-last-child(-n+7) {
	border-bottom: 0;
}

.ssbk-month-day:hover {
	background: rgba(118, 118, 128, .06);
}

.ssbk-month-day.is-other {
	background: rgba(118, 118, 128, .04);
}

.ssbk-month-day.is-free {
	background: rgba(58, 184, 184, .09);
}

.ssbk-month-day.is-free:hover {
	background: rgba(58, 184, 184, .16);
}

.ssbk-month-day.is-muted {
	background: none;
	cursor: default;
}

.ssbk-cal .ssbk-month-num {
	align-items: center;
	align-self: flex-end;
	border-radius: 13px;
	cursor: pointer;
	display: inline-flex;
	flex: none;
	font-size: 14px;
	font-variant-numeric: tabular-nums;
	font-weight: 500;
	height: 26px;
	justify-content: center;
	min-width: 26px;
	padding: 0 5px;
}

.ssbk-month-day.is-past .ssbk-month-num,
.ssbk-month-day.is-other .ssbk-month-num {
	color: var(--ssbk-secondary);
}

.ssbk-month-day.is-muted .ssbk-month-num {
	color: var(--ssbk-tertiary);
	cursor: default;
}

.ssbk-month-day.is-today .ssbk-month-num {
	background: var(--ssbk-tint);
	color: #fff;
	font-weight: 700;
}

.ssbk-month-evs {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
}

.ssbk-cal .ssbk-mev {
	--ev-bar: var(--ssbk-accent);
	align-items: center;
	border-radius: 4px;
	cursor: pointer;
	display: flex;
	font-size: 11.5px;
	gap: 4px;
	line-height: 1.35;
	min-width: 0;
	padding: 1px 4px;
	text-align: left;
	width: 100%;
}

.ssbk-mev::before {
	background: var(--ev-bar);
	border-radius: 50%;
	content: "";
	flex: none;
	height: 7px;
	width: 7px;
}

.ssbk-cal .ssbk-mev:hover,
.ssbk-cal .ssbk-mev.is-active {
	background: var(--ssbk-fill);
}

.ssbk-mev-time {
	color: var(--ssbk-secondary);
	flex: none;
	font-variant-numeric: tabular-nums;
}

.ssbk-mev-title {
	font-weight: 500;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ssbk-cal .ssbk-mev.is-ssbk-pending {
	--ev-bar: var(--ssbk-orange);
}

.ssbk-cal .ssbk-mev.is-ssbk-declined,
.ssbk-cal .ssbk-mev.is-ssbk-cancelled,
.ssbk-cal .ssbk-mev.is-block {
	--ev-bar: var(--ssbk-gray);
}

.ssbk-mev.is-ssbk-declined .ssbk-mev-title,
.ssbk-mev.is-ssbk-cancelled .ssbk-mev-title {
	color: var(--ssbk-secondary);
	text-decoration: line-through;
}

.ssbk-month-more,
.ssbk-month-flag {
	color: var(--ssbk-secondary);
	font-size: 11px;
	overflow: hidden;
	padding: 0 4px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ssbk-month-flag {
	text-align: right;
}

.ssbk-month-dot {
	align-self: flex-end;
	background: var(--ssbk-accent);
	border-radius: 50%;
	height: 6px;
	margin-right: 10px;
	width: 6px;
}

/* ---------------------------------------------------------------- */
/* Time grid                                                          */
/* ---------------------------------------------------------------- */

.ssbk-cal-scroll {
	height: min(70vh, 720px);
	min-height: 420px;
	overflow-y: auto;
	overscroll-behavior: contain;
	position: relative;
	scrollbar-width: thin;
}

.ssbk-cal-scroll.is-slide-next .ssbk-cal-cols {
	animation: ssbk-slide-next .28s cubic-bezier(.2, .8, .2, 1);
}

.ssbk-cal-scroll.is-slide-prev .ssbk-cal-cols {
	animation: ssbk-slide-prev .28s cubic-bezier(.2, .8, .2, 1);
}

@keyframes ssbk-slide-next {
	from { opacity: .3; transform: translateX(28px); }
}

@keyframes ssbk-slide-prev {
	from { opacity: .3; transform: translateX(-28px); }
}

.ssbk-cal-head {
	background: #fff;
	border-bottom: 1px solid var(--ssbk-sep);
	display: grid;
	grid-template-columns: var(--ssbk-gutter) minmax(0, 1fr);
	position: sticky;
	top: 0;
	z-index: 10;
}

.ssbk-cal.is-day .ssbk-cal-head {
	display: none;
}

.ssbk-cal-heads {
	display: grid;
	grid-template-columns: repeat(var(--ssbk-cols, 7), minmax(0, 1fr));
}

.ssbk-cal .ssbk-head-day {
	align-items: center;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 1px;
	padding: 8px 2px 6px;
}

.ssbk-cal .ssbk-head-day:hover .ssbk-head-num {
	background: var(--ssbk-fill);
}

.ssbk-head-line {
	align-items: center;
	display: flex;
	gap: 5px;
	justify-content: center;
}

.ssbk-head-wd {
	color: var(--ssbk-secondary);
	font-size: 13px;
}

.ssbk-head-num {
	align-items: center;
	border-radius: 50%;
	display: inline-flex;
	font-size: 17px;
	font-weight: 500;
	height: 30px;
	justify-content: center;
	min-width: 30px;
}

.ssbk-cal .ssbk-head-day.is-today .ssbk-head-num {
	background: var(--ssbk-tint);
	color: #fff;
	font-weight: 600;
}

.ssbk-cal .ssbk-head-day.is-today .ssbk-head-wd {
	color: var(--ssbk-tint);
}

.ssbk-head-flag {
	color: var(--ssbk-secondary);
	font-size: 11px;
	line-height: 1.2;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ssbk-cal.is-admin .ssbk-head-flag {
	color: var(--ssbk-orange);
	font-weight: 600;
}

.ssbk-cal-body {
	display: grid;
	grid-template-columns: var(--ssbk-gutter) minmax(0, 1fr);
	height: calc(var(--ssbk-hour) * 24);
	position: relative;
}

.ssbk-cal-gutter {
	position: relative;
	user-select: none;
}

.ssbk-cal-hour {
	color: var(--ssbk-secondary);
	font-size: 11px;
	font-variant-numeric: tabular-nums;
	position: absolute;
	right: 8px;
	transform: translateY(-50%);
}

.ssbk-now-label {
	background: #fff;
	color: var(--ssbk-tint);
	font-size: 11px;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	padding: 1px 0 1px 4px;
	position: absolute;
	right: 6px;
	transform: translateY(-50%);
	z-index: 2;
}

.ssbk-now-label[hidden] {
	display: none;
}

.ssbk-cal-cols {
	-webkit-touch-callout: none;
	display: grid;
	grid-template-columns: repeat(var(--ssbk-cols, 7), minmax(0, 1fr));
	position: relative;
	touch-action: pan-y;
	user-select: none;
}

/* Hour lines over the column backgrounds. */
.ssbk-cal-cols::after {
	background-image: linear-gradient(to bottom, var(--ssbk-sep) 1px, transparent 1px);
	background-size: 100% var(--ssbk-hour);
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
	z-index: 1;
}

/* Unavailable = soft hatching; open time = white. */
.ssbk-col {
	background-color: #fafafc;
	background-image: repeating-linear-gradient(135deg, rgba(60, 60, 67, .06) 0 1px, transparent 1px 7px);
	border-left: 1px solid var(--ssbk-sep);
	cursor: default;
	position: relative;
}

.ssbk-cal.is-day .ssbk-col {
	border-left: 0;
}

.ssbk-open {
	background: #fff;
	cursor: pointer;
	left: 0;
	position: absolute;
	right: 0;
	z-index: 0;
}

.ssbk-cal:not(.is-admin) .ssbk-open {
	box-shadow: inset 3px 0 0 rgba(58, 184, 184, .45);
}

.ssbk-cal:not(.is-admin) .ssbk-open:hover {
	background: #f4fcfc;
}

.ssbk-cal.is-admin .ssbk-col {
	cursor: cell;
}

.ssbk-cal.is-admin .ssbk-open {
	cursor: cell;
}

.ssbk-open:focus-visible {
	outline: 2px solid var(--ssbk-accent);
	outline-offset: -2px;
	z-index: 2;
}

/* Current time. */
.ssbk-now {
	background: var(--ssbk-tint);
	height: 2px;
	left: 0;
	margin-top: -1px;
	pointer-events: none;
	position: absolute;
	right: 0;
	z-index: 6;
}

.ssbk-now::before {
	background: var(--ssbk-tint);
	border-radius: 50%;
	content: "";
	height: 10px;
	left: -5px;
	position: absolute;
	top: -4px;
	width: 10px;
}

/* ---------------------------------------------------------------- */
/* Events                                                             */
/* ---------------------------------------------------------------- */

.ssbk-cal .ssbk-event {
	--ev-bg: rgba(58, 184, 184, .18);
	--ev-bar: var(--ssbk-accent);
	--ev-ink: var(--ssbk-accent-ink);
	background: var(--ev-bg);
	border-radius: 6px;
	box-shadow: inset 3px 0 0 var(--ev-bar);
	color: var(--ev-ink);
	cursor: pointer;
	display: flex;
	flex-direction: column;
	font-size: 12px;
	line-height: 1.25;
	min-height: 18px;
	overflow: hidden;
	padding: 3px 6px 3px 9px;
	position: absolute;
	text-align: left;
	transition: background-color .15s, color .15s, box-shadow .15s;
	z-index: 3;
}

.ssbk-event > * {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ssbk-event strong {
	font-weight: 600;
}

.ssbk-event-sub {
	opacity: .8;
}

.ssbk-event.is-short {
	flex-direction: row;
	gap: 6px;
	padding-bottom: 0;
	padding-top: 1px;
}

.ssbk-event.is-short .ssbk-event-sub {
	display: none;
}

.ssbk-cal .ssbk-event.is-ssbk-pending {
	--ev-bar: var(--ssbk-orange);
	--ev-ink: #7a4100;
	background: repeating-linear-gradient(135deg, rgba(255, 149, 0, .2) 0 6px, rgba(255, 149, 0, .1) 6px 12px);
	outline: 1px dashed rgba(255, 149, 0, .55);
	outline-offset: -1px;
}

.ssbk-cal .ssbk-event.is-ssbk-declined,
.ssbk-cal .ssbk-event.is-ssbk-cancelled {
	--ev-bg: rgba(142, 142, 147, .12);
	--ev-bar: var(--ssbk-gray);
	--ev-ink: #6b6b70;
}

.ssbk-event.is-ssbk-declined strong,
.ssbk-event.is-ssbk-cancelled strong {
	text-decoration: line-through;
}

.ssbk-cal .ssbk-event.is-block {
	--ev-bar: var(--ssbk-gray);
	--ev-ink: #3a3a3c;
	background: repeating-linear-gradient(135deg, rgba(142, 142, 147, .22) 0 6px, rgba(142, 142, 147, .12) 6px 12px);
}

.ssbk-cal .ssbk-event:hover {
	filter: brightness(.97);
}

.ssbk-cal .ssbk-event.is-active {
	--ev-ink: #fff;
	background: var(--ev-bar);
	outline: 0;
}

.ssbk-cal .ssbk-event:focus-visible {
	outline: 2px solid var(--ev-bar);
	outline-offset: 1px;
}

/* ---------------------------------------------------------------- */
/* Draft ("Neuer Termin") with resize handles                         */
/* ---------------------------------------------------------------- */

.ssbk-draft {
	background: var(--ssbk-accent);
	border-radius: 6px;
	box-shadow: 0 6px 18px rgba(19, 138, 138, .35), 0 0 0 1px rgba(255, 255, 255, .7);
	color: #fff;
	cursor: grab;
	display: flex;
	flex-direction: column;
	font-size: 12px;
	left: 2px;
	line-height: 1.25;
	min-height: 18px;
	padding: 4px 8px 4px 9px;
	position: absolute;
	right: 3px;
	touch-action: none;
	transition: box-shadow .15s, opacity .15s;
	z-index: 7;
}

.ssbk-draft.is-dragging {
	box-shadow: 0 14px 30px rgba(0, 0, 0, .25), 0 0 0 1px rgba(255, 255, 255, .8);
	cursor: grabbing;
	opacity: .94;
}

.ssbk-draft.is-short {
	flex-direction: row;
	gap: 6px;
	padding-bottom: 0;
	padding-top: 1px;
}

.ssbk-draft-title {
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ssbk-draft-time {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.ssbk-draft.is-block {
	background: #636366;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .25), 0 0 0 1px rgba(255, 255, 255, .7);
}

.ssbk-handle {
	align-items: center;
	cursor: ns-resize;
	display: flex;
	height: 28px;
	justify-content: center;
	position: absolute;
	touch-action: none;
	width: 28px;
}

.ssbk-handle::after {
	background: #fff;
	border: 2px solid var(--ssbk-accent);
	border-radius: 50%;
	content: "";
	height: 11px;
	width: 11px;
}

.ssbk-draft.is-block .ssbk-handle::after {
	border-color: #636366;
}

.ssbk-handle.is-top {
	right: 8px;
	top: -14px;
}

.ssbk-handle.is-bottom {
	bottom: -14px;
	left: 8px;
}

.ssbk-draft:focus-visible {
	outline: 3px solid rgba(58, 184, 184, .5);
	outline-offset: 2px;
}

/* ---------------------------------------------------------------- */
/* Popover (desktop) / bottom sheet (mobile)                          */
/* ---------------------------------------------------------------- */

.ssbk-sheet {
	color: var(--ssbk-label);
	inset: 0;
	pointer-events: none;
	position: fixed;
	z-index: 100000;
}

.ssbk-sheet[hidden] {
	display: none;
}

.ssbk-sheet-backdrop {
	background: rgba(0, 0, 0, .32);
	inset: 0;
	opacity: 0;
	pointer-events: auto;
	position: absolute;
	transition: opacity .25s;
}

.ssbk-sheet.is-open .ssbk-sheet-backdrop {
	opacity: 1;
}

.ssbk-sheet.is-popover .ssbk-sheet-backdrop {
	display: none;
}

.ssbk-sheet-panel {
	background: var(--ssbk-grouped);
	display: flex;
	flex-direction: column;
	font-size: 15px;
	line-height: 1.35;
	pointer-events: auto;
	position: absolute;
}

/* Bottom sheet. */
.ssbk-sheet.is-bottom .ssbk-sheet-panel {
	border-radius: 14px 14px 0 0;
	bottom: 0;
	box-shadow: 0 -8px 40px rgba(0, 0, 0, .18);
	left: 0;
	max-height: 92vh;
	max-height: 92dvh;
	right: 0;
	transform: translateY(100%);
	transition: transform .34s cubic-bezier(.32, .72, 0, 1);
}

.ssbk-sheet.is-bottom.is-open .ssbk-sheet-panel {
	transform: translateY(0);
}

/* Popover. */
.ssbk-sheet.is-popover .ssbk-sheet-panel {
	border-radius: 14px;
	box-shadow: 0 0 0 .5px rgba(0, 0, 0, .14), 0 18px 50px rgba(0, 0, 0, .22);
	max-height: min(84vh, 680px);
	opacity: 0;
	transform: scale(.96);
	transition: opacity .16s ease, transform .16s ease;
	width: 360px;
}

.ssbk-sheet.is-popover.is-open .ssbk-sheet-panel {
	opacity: 1;
	transform: none;
}

.ssbk-sheet.is-popover.is-left .ssbk-sheet-panel::before,
.ssbk-sheet.is-popover.is-right .ssbk-sheet-panel::before {
	background: var(--ssbk-grouped);
	box-shadow: -1px 1px 0 rgba(0, 0, 0, .08);
	content: "";
	height: 14px;
	position: absolute;
	top: calc(var(--ssbk-arrow-y, 40px) - 7px);
	width: 14px;
}

.ssbk-sheet.is-popover.is-right .ssbk-sheet-panel::before {
	left: -7px;
	transform: rotate(45deg);
}

.ssbk-sheet.is-popover.is-left .ssbk-sheet-panel::before {
	right: -7px;
	transform: rotate(-135deg);
}

.ssbk-sheet-grabber {
	background: rgba(60, 60, 67, .3);
	border-radius: 3px;
	flex: none;
	height: 5px;
	margin: 6px auto 0;
	width: 36px;
}

.ssbk-sheet.is-popover .ssbk-sheet-grabber {
	display: none;
}

.ssbk-sheet-head {
	align-items: center;
	display: grid;
	flex: none;
	gap: 8px;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	padding: 10px 8px 8px;
	touch-action: none;
}

.ssbk-sheet .ssbk-sheet-head h3 {
	color: var(--ssbk-label);
	font-family: var(--ssbk-font);
	font-size: 17px;
	font-weight: 600;
	letter-spacing: -.01em;
	line-height: 1.3;
	margin: 0;
	max-width: 220px;
	overflow: hidden;
	text-align: center;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ssbk-sheet .ssbk-sheet-btn {
	border-radius: 8px;
	color: var(--ssbk-tint);
	cursor: pointer;
	font-size: 17px;
	justify-self: start;
	padding: 6px 8px;
}

.ssbk-sheet .ssbk-sheet-btn.is-primary {
	font-weight: 600;
	justify-self: end;
}

.ssbk-sheet .ssbk-sheet-btn:disabled {
	color: var(--ssbk-tertiary);
}

.ssbk-sheet-head-right {
	justify-self: end;
	padding-right: 8px;
}

.ssbk-sheet-body {
	-webkit-overflow-scrolling: touch;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 6px 16px calc(20px + env(safe-area-inset-bottom));
}

.ssbk-sheet.is-popover .ssbk-sheet-head .ssbk-sheet-btn,
.ssbk-sheet.is-popover .ssbk-sheet-head h3 {
	font-size: 15px;
}

/* iOS grouped list rows. */
.ssbk-group {
	background: #fff;
	border-radius: 10px;
	margin: 0 0 18px;
	overflow: hidden;
}

.ssbk-row {
	align-items: center;
	display: flex;
	font-size: 17px;
	gap: 12px;
	min-height: 44px;
	padding: 0 16px;
	position: relative;
}

.ssbk-sheet.is-popover .ssbk-row {
	font-size: 15px;
	min-height: 40px;
}

.ssbk-row + .ssbk-row::before {
	background: var(--ssbk-sep);
	content: "";
	height: 1px;
	left: 16px;
	position: absolute;
	right: 0;
	top: 0;
}

.ssbk-row.is-stacked {
	align-items: stretch;
	flex-direction: column;
	gap: 2px;
	padding-bottom: 10px;
	padding-top: 10px;
}

.ssbk-row.is-top {
	align-items: flex-start;
	padding-bottom: 12px;
	padding-top: 12px;
}

.ssbk-row-label {
	flex: none;
	min-width: 80px;
}

.ssbk-row-label.is-wide {
	flex: 1;
	min-width: 0;
}

.ssbk-row-label.is-small {
	color: var(--ssbk-secondary);
	font-size: 13px;
	line-height: 1.4;
}

.ssbk-row-label.is-wide.is-small {
	color: var(--ssbk-label);
}

.ssbk-row-label a {
	color: var(--ssbk-accent-strong);
}

.ssbk-row-value {
	color: var(--ssbk-secondary);
	flex: 1;
	min-width: 0;
	overflow-wrap: anywhere;
	padding: 10px 0;
	text-align: right;
}

a.ssbk-row-value {
	color: var(--ssbk-accent-strong);
	text-decoration: none;
}

.ssbk-row-when {
	font-size: 17px;
	font-weight: 600;
}

.ssbk-row-sub {
	color: var(--ssbk-secondary);
	font-size: 15px;
}

.ssbk-row-text {
	margin: 0;
	white-space: pre-wrap;
}

.ssbk-sheet .ssbk-row input[type="text"],
.ssbk-sheet .ssbk-row input[type="email"],
.ssbk-sheet .ssbk-row input[type="tel"],
.ssbk-sheet .ssbk-row textarea {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: var(--ssbk-label);
	flex: 1;
	font: inherit;
	min-height: 0;
	min-width: 0;
	outline: none;
	padding: 11px 0;
	width: 100%;
}

.ssbk-sheet .ssbk-row input[type="text"],
.ssbk-sheet .ssbk-row input[type="email"],
.ssbk-sheet .ssbk-row input[type="tel"] {
	text-align: right;
}

.ssbk-sheet .ssbk-row > input:only-child {
	text-align: left;
}

.ssbk-sheet .ssbk-row textarea {
	line-height: 1.4;
	min-height: 84px;
	resize: vertical;
}

.ssbk-sheet .ssbk-row input::placeholder,
.ssbk-sheet .ssbk-row textarea::placeholder {
	color: var(--ssbk-tertiary);
}

/* Values as iOS "pills" (date/time pickers). */
.ssbk-sheet .ssbk-row select {
	-webkit-appearance: none;
	appearance: none;
	background: var(--ssbk-fill);
	background-image: none;
	border: 0;
	border-radius: 7px;
	box-shadow: none;
	color: var(--ssbk-label);
	cursor: pointer;
	font: inherit;
	font-variant-numeric: tabular-nums;
	line-height: 1.3;
	margin-left: auto;
	max-width: 62%;
	min-height: 0;
	padding: 6px 11px;
	text-align: center;
	text-overflow: ellipsis;
}

.ssbk-sheet .ssbk-row select:focus-visible,
.ssbk-sheet .ssbk-row input:focus-visible,
.ssbk-sheet .ssbk-row textarea:focus-visible {
	outline: 2px solid var(--ssbk-accent);
	outline-offset: -2px;
}

.ssbk-sheet .ssbk-row select[data-ssbk-service] {
	color: var(--ssbk-accent-strong);
	text-align: right;
}

.ssbk-group-note {
	color: var(--ssbk-secondary);
	font-size: 13px;
	line-height: 1.4;
	margin: -10px 16px 18px;
}

.ssbk-group-note[hidden] {
	display: none;
}

/* iOS switch (selectors beat wp-admin's checkbox styles). */
input[type="checkbox"].ssbk-switch {
	-webkit-appearance: none;
	appearance: none;
	background: #e9e9eb;
	border: 0;
	border-radius: 999px;
	box-shadow: none;
	cursor: pointer;
	flex: none;
	height: 31px;
	margin: 0;
	max-width: none;
	min-width: 0;
	padding: 0;
	position: relative;
	transition: background-color .2s;
	vertical-align: middle;
	width: 51px;
}

input[type="checkbox"].ssbk-switch::before,
input[type="checkbox"].ssbk-switch:checked::before {
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 3px 1px rgba(0, 0, 0, .06);
	content: "";
	float: none;
	height: 27px;
	left: 2px;
	margin: 0;
	position: absolute;
	top: 2px;
	transition: transform .2s cubic-bezier(.3, .7, .4, 1);
	width: 27px;
}

input[type="checkbox"].ssbk-switch:checked {
	background: var(--ssbk-green);
}

input[type="checkbox"].ssbk-switch:checked::before {
	transform: translateX(20px);
}

input[type="checkbox"].ssbk-switch:focus-visible {
	box-shadow: none;
	outline: 2px solid var(--ssbk-accent);
	outline-offset: 2px;
}

input[type="checkbox"].ssbk-switch.is-small {
	height: 22px;
	width: 36px;
}

input[type="checkbox"].ssbk-switch.is-small::before {
	height: 18px;
	width: 18px;
}

input[type="checkbox"].ssbk-switch.is-small:checked::before {
	transform: translateX(14px);
}

/* Buttons inside sheets. */
.ssbk-actions {
	display: grid;
	gap: 10px;
	margin: 0 0 12px;
}

.ssbk-sheet .ssbk-action {
	align-items: center;
	background: #fff;
	border-radius: 10px;
	color: var(--ssbk-accent-strong);
	cursor: pointer;
	display: flex;
	font-size: 17px;
	justify-content: center;
	min-height: 46px;
	padding: 10px 16px;
	text-decoration: none;
	width: 100%;
}

.ssbk-sheet.is-popover .ssbk-action {
	font-size: 15px;
	min-height: 40px;
}

.ssbk-sheet .ssbk-action.is-primary {
	background: var(--ssbk-accent-strong);
	color: #fff;
	font-weight: 600;
}

.ssbk-sheet .ssbk-action.is-destructive {
	color: var(--ssbk-tint);
}

.ssbk-sheet .ssbk-action.is-destructive.is-filled {
	background: var(--ssbk-tint);
	color: #fff;
	font-weight: 600;
	margin-bottom: 8px;
}

.ssbk-sheet .ssbk-action.is-plain {
	background: none;
	color: var(--ssbk-secondary);
	font-size: 15px;
	min-height: 36px;
}

.ssbk-sheet .ssbk-action:disabled {
	opacity: .5;
}

.ssbk-sheet > .ssbk-sheet-panel .ssbk-sheet-body > .ssbk-action + .ssbk-action {
	margin-top: 10px;
}

.ssbk-decline[hidden] {
	display: none;
}

.ssbk-sheet .ssbk-status {
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .02em;
	padding: 3px 9px;
	text-transform: uppercase;
	white-space: nowrap;
}

.ssbk-sheet .ssbk-status.is-ssbk-pending {
	background: #fff1d6;
	color: #7a4100;
}

.ssbk-sheet .ssbk-status.is-ssbk-approved {
	background: #dcf7e3;
	color: #12632f;
}

.ssbk-sheet .ssbk-status.is-ssbk-declined,
.ssbk-sheet .ssbk-status.is-ssbk-cancelled {
	background: #ececf0;
	color: #555;
}

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

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

.ssbk-toast {
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	background: rgba(28, 28, 30, .9);
	border-radius: 999px;
	bottom: calc(24px + env(safe-area-inset-bottom));
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	left: 50%;
	max-width: calc(100vw - 32px);
	opacity: 0;
	padding: 10px 18px;
	pointer-events: none;
	position: fixed;
	transform: translate(-50%, 12px);
	transition: opacity .2s, transform .2s;
	z-index: 100001;
}

.ssbk-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

.ssbk-toast.is-error {
	background: rgba(215, 0, 21, .92);
}

/* ---------------------------------------------------------------- */
/* Small screens                                                      */
/* ---------------------------------------------------------------- */

@media (max-width: 719px) {
	.ssbk-cal {
		--ssbk-hour: 54px;
		--ssbk-gutter: 50px;
		border-radius: 14px;
	}

	.ssbk-cal-top {
		align-items: center;
		gap: 6px;
		padding: 12px 10px 8px 16px;
	}

	.ssbk-cal .ssbk-cal-title {
		font-size: 24px;
	}

	.ssbk-cal-sub {
		display: none;
	}

	.ssbk-cal-actions {
		flex-wrap: nowrap;
		gap: 2px;
		justify-content: flex-end;
		width: 100%;
	}

	.ssbk-cal-actions .ssbk-seg {
		margin-right: auto;
	}

	.ssbk-cal .ssbk-seg-btn {
		min-width: 0;
		padding: 4px 14px;
	}

	.ssbk-month {
		height: calc(100vh - 280px);
		height: calc(100dvh - 280px);
		max-height: 620px;
		min-height: 340px;
	}

	.ssbk-month-wds span {
		padding: 6px 0;
		text-align: center;
	}

	.ssbk-month-day {
		align-items: center;
		padding: 3px 1px;
	}

	.ssbk-cal .ssbk-month-num {
		align-self: center;
		border-radius: 15px;
		font-size: 15px;
		height: 30px;
		min-width: 30px;
	}

	/* Small cells: events become dots, a tap opens the day. */
	.ssbk-month-evs {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 3px;
		justify-content: center;
	}

	.ssbk-cal .ssbk-mev {
		padding: 0;
		pointer-events: none;
		width: auto;
	}

	.ssbk-mev-time,
	.ssbk-mev-title,
	.ssbk-month-more,
	.ssbk-month-flag {
		display: none;
	}

	.ssbk-month-dot {
		align-self: center;
		margin-right: 0;
	}

	.ssbk-cal-scroll {
		height: calc(100vh - 240px);
		height: calc(100dvh - 240px);
		max-height: 760px;
		min-height: 380px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ssbk-cal *,
	.ssbk-sheet *,
	.ssbk-toast {
		animation: none !important;
		transition: none !important;
	}
}

/* ---------------------------------------------------------------- */
/* Fullscreen                                                         */
/* ---------------------------------------------------------------- */

.ssbk-cal-fs svg {
	stroke-width: 2.2;
}

.ssbk-fs {
	background: #fff;
	box-sizing: border-box;
	height: 100%;
	overflow: auto;
	width: 100%;
}

.ssbk-fs-fake {
	inset: 0;
	position: fixed;
	z-index: 100000;
}

/* Public: the form is the fullscreen element and holds calendar + sheet. */
.ssbk-form.ssbk-fs {
	display: flex;
	flex-direction: column;
	gap: 0;
	max-width: none;
	padding: 10px;
}

.ssbk-form.ssbk-fs .ssbk-cal-help {
	display: none;
}

.ssbk-form.ssbk-fs > .ssbk-cal {
	flex: 1;
	min-height: 0;
}

/* Admin: the calendar itself is the fullscreen element. */
.ssbk-cal.ssbk-fs {
	border-radius: 0;
}

.ssbk-cal.is-fullscreen {
	border-radius: 0;
	display: flex;
	flex-direction: column;
}

.ssbk-cal.is-fullscreen .ssbk-cal-scroll,
.ssbk-cal.is-fullscreen .ssbk-month {
	flex: 1;
	height: auto;
	max-height: none;
	min-height: 0;
}

.ssbk-cal.is-fullscreen .ssbk-cal-top {
	flex: none;
}

/* ---------------------------------------------------------------- */
/* Booking sheet: submit footer + login choice                        */
/* ---------------------------------------------------------------- */

.ssbk-sheet-foot {
	background: var(--ssbk-grouped);
	border-top: 1px solid var(--ssbk-sep);
	flex: none;
	padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}

.ssbk-sheet .ssbk-sheet-submit {
	background: var(--ssbk-accent-strong);
	border-radius: 12px;
	box-shadow: 0 6px 16px rgba(19, 138, 138, .35);
	color: #fff;
	cursor: pointer;
	font-size: 17px;
	font-weight: 700;
	min-height: 52px;
	width: 100%;
}

.ssbk-sheet .ssbk-sheet-submit:hover {
	background: #0f7777;
}

.ssbk-sheet .ssbk-sheet-submit:disabled {
	opacity: .55;
}

.ssbk-auth {
	display: grid;
	gap: 10px;
	grid-template-columns: 1fr 1fr;
	margin: 0 0 18px;
}

.ssbk-sheet .ssbk-auth-btn {
	align-items: center;
	background: #fff;
	border-radius: 10px;
	box-shadow: inset 0 0 0 1.5px var(--ssbk-accent-strong);
	color: var(--ssbk-accent-strong);
	cursor: pointer;
	display: flex;
	font-size: 15px;
	font-weight: 600;
	justify-content: center;
	line-height: 1.2;
	min-height: 48px;
	padding: 8px 10px;
	text-align: center;
	text-decoration: none;
}

.ssbk-sheet .ssbk-auth-btn.is-primary {
	background: var(--ssbk-accent-strong);
	box-shadow: none;
	color: #fff;
}

.ssbk-contact[hidden],
.ssbk-auth[hidden] {
	display: none;
}

.ssbk-signed-in {
	margin: 0 4px 12px;
}

/* ---------------------------------------------------------------- */
/* Admin: picking an alternative time                                 */
/* ---------------------------------------------------------------- */

.ssbk-pickbar {
	align-items: center;
	background: var(--ssbk-accent-strong);
	color: #fff;
	display: flex;
	flex-wrap: wrap;
	font-size: 14px;
	gap: 8px 12px;
	padding: 10px 16px;
	position: sticky;
	top: 0;
	z-index: 30;
}

.ssbk-pickbar[hidden] {
	display: none;
}

.ssbk-pickbar-text {
	flex: 1 1 220px;
	font-weight: 600;
}

.ssbk-cal .ssbk-pickbar button {
	border-radius: 8px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	padding: 7px 14px;
}

.ssbk-cal .ssbk-pickbar-cancel {
	background: rgba(255, 255, 255, .2);
}

.ssbk-cal .ssbk-pickbar-use {
	background: #fff;
	color: var(--ssbk-accent-strong);
}

.ssbk-cal .ssbk-pickbar-use:disabled {
	opacity: .5;
	cursor: default;
}

/* While picking: free time glows, everything else recedes. */
.ssbk-cal.is-picking .ssbk-open {
	background: #eefafa;
	box-shadow: inset 3px 0 0 var(--ssbk-accent);
	cursor: cell;
}

.ssbk-cal.is-picking .ssbk-event {
	opacity: .55;
	pointer-events: none;
}

.ssbk-cal.is-picking .ssbk-draft.is-block {
	background: var(--ssbk-accent);
	box-shadow: 0 6px 18px rgba(19, 138, 138, .35), 0 0 0 1px rgba(255, 255, 255, .7);
}

.ssbk-cal.is-picking .ssbk-draft.is-block .ssbk-handle::after {
	border-color: var(--ssbk-accent);
}

.ssbk-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ssbk-chips:empty {
	display: none;
}

.ssbk-chip {
	align-items: center;
	background: rgba(58, 184, 184, .16);
	border-radius: 8px;
	color: var(--ssbk-accent-ink);
	display: inline-flex;
	font-size: 13px;
	gap: 6px;
	padding: 5px 6px 5px 10px;
}

.ssbk-sheet .ssbk-chip-x {
	border-radius: 50%;
	cursor: pointer;
	font-size: 16px;
	height: 20px;
	line-height: 20px;
	width: 20px;
}

.ssbk-sheet .ssbk-chip-x:hover {
	background: rgba(0, 0, 0, .1);
}

.ssbk-sheet .ssbk-pick-btn {
	align-self: flex-start;
	background: var(--ssbk-fill);
	border-radius: 8px;
	color: var(--ssbk-accent-strong);
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	padding: 8px 12px;
}
