.sb-front {
	--sb-bg: #f7f1e8;
	--sb-surface: #fffdf8;
	--sb-surface-strong: #fff8ee;
	--sb-border: #e6dac8;
	--sb-text: #2f241b;
	--sb-muted: #6d5c4d;
	--sb-accent: #8a3f20;
	--sb-accent-soft: #f4dfcf;
	--sb-success: #275b3a;
	--sb-success-soft: #e8f3ea;
	--sb-warning: #8a5a08;
	--sb-warning-soft: #fff2d8;
	--sb-danger: #8f2f27;
	--sb-danger-soft: #fde9e7;
	color: var(--sb-text);
	margin: 28px 0;
	font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.sb-front *,
.sb-front *::before,
.sb-front *::after {
	box-sizing: border-box;
}

.sb-front a {
	color: inherit;
}

.sb-front-hero {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--sb-border);
	border-radius: 28px;
	padding: 28px;
	background:
		radial-gradient(circle at top right, rgba(182, 120, 77, 0.18), transparent 36%),
		linear-gradient(180deg, #fff8ee 0%, #f9f1e7 100%);
	box-shadow: 0 18px 40px rgba(48, 33, 19, 0.06);
}

.sb-front-hero__content {
	max-width: 760px;
}

.sb-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(138, 63, 32, 0.1);
	color: var(--sb-accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.sb-front-hero h2,
.sb-day-group__header h3,
.sb-slot-card h4,
.sb-modal__header h2,
.sb-empty-state h3 {
	font-family: Georgia, "Times New Roman", serif;
}

.sb-front-hero h2 {
	margin: 16px 0 10px;
	font-size: clamp(2rem, 3vw, 2.8rem);
	line-height: 1.05;
}

.sb-front-hero p {
	margin: 0;
	max-width: 680px;
	font-size: 1.02rem;
	line-height: 1.7;
	color: var(--sb-muted);
}

.sb-empty-state {
	margin-top: 22px;
	padding: 28px;
	border-radius: 24px;
	border: 1px solid var(--sb-border);
	background: var(--sb-surface);
}

.sb-day-groups {
	display: grid;
	gap: 22px;
	margin-top: 24px;
}

.sb-day-group {
	padding: 22px;
	border-radius: 24px;
	border: 1px solid var(--sb-border);
	background: var(--sb-surface);
	box-shadow: 0 16px 36px rgba(48, 33, 19, 0.05);
}

.sb-day-group__header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding-bottom: 14px;
	margin-bottom: 18px;
	border-bottom: 1px solid var(--sb-border);
}

.sb-day-group__header h3 {
	margin: 0;
	font-size: 1.6rem;
}

.sb-day-group__header span {
	color: var(--sb-muted);
	font-size: 0.95rem;
}

.sb-slot-grid {
	display: grid;
	gap: 14px;
}

.sb-slot-card {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 18px;
	padding: 18px;
	border-radius: 22px;
	background: linear-gradient(180deg, #fffdfa 0%, #fff8f0 100%);
	border: 1px solid #efe2d1;
}

.sb-slot-card__time {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 90px;
	border-radius: 18px;
	background: #f5eadb;
	color: var(--sb-accent);
	font-size: 1.7rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.sb-slot-card__topline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}

.sb-tag {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1;
}

.sb-tag--open {
	background: var(--sb-success-soft);
	color: var(--sb-success);
}

.sb-tag--partial {
	background: #efe8fb;
	color: #5b3b91;
}

.sb-tag--warning {
	background: var(--sb-warning-soft);
	color: var(--sb-warning);
}

.sb-tag--full {
	background: var(--sb-danger-soft);
	color: var(--sb-danger);
}

.sb-inline-note {
	color: var(--sb-muted);
	font-size: 0.92rem;
}

.sb-slot-card h4 {
	margin: 0 0 8px;
	font-size: 1.35rem;
}

.sb-slot-card p {
	margin: 0;
	color: var(--sb-muted);
	line-height: 1.65;
	max-width: 62ch;
}

.sb-slot-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

.sb-button,
.sb-link-button {
	appearance: none;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	font: inherit;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.sb-button {
	padding: 12px 18px;
	background: linear-gradient(180deg, #9a4522 0%, #7a3216 100%);
	color: #fff;
	font-weight: 700;
	box-shadow: 0 12px 24px rgba(122, 50, 22, 0.18);
}

.sb-button:hover,
.sb-button:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 14px 28px rgba(122, 50, 22, 0.24);
}

.sb-button-secondary {
	background: #ede0cf;
	color: var(--sb-text);
	box-shadow: none;
}

.sb-link-button {
	background: transparent;
	color: var(--sb-accent);
	padding: 0;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.sb-modal {
	position: fixed;
	inset: 0;
	display: none;
	z-index: 99999;
}

.sb-modal.is-open {
	display: block;
}

.sb-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(34, 24, 18, 0.58);
	backdrop-filter: blur(3px);
}

.sb-modal__dialog {
	position: relative;
	max-width: min(760px, calc(100vw - 24px));
	margin: 32px auto;
	max-height: calc(100vh - 64px);
	overflow: auto;
	border-radius: 26px;
	background: var(--sb-surface);
	border: 1px solid var(--sb-border);
	box-shadow: 0 28px 60px rgba(28, 19, 12, 0.28);
}

.sb-modal__dialog--booking .sb-modal__header {
	background: linear-gradient(180deg, #fff4e6 0%, #fbefe3 100%);
}

.sb-modal__dialog--waitlist .sb-modal__header {
	background: linear-gradient(180deg, #f3efe8 0%, #efe9df 100%);
}

.sb-modal__dialog--success .sb-modal__header {
	background: linear-gradient(180deg, #edf6ef 0%, #e7f1e8 100%);
}

.sb-modal__close {
	position: sticky;
	top: 14px;
	float: right;
	margin: 14px 14px 0 0;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.88);
	color: var(--sb-text);
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
}

.sb-modal__header {
	padding: 28px 28px 18px;
	border-bottom: 1px solid var(--sb-border);
}

.sb-modal__header h2 {
	margin: 12px 0 8px;
	font-size: clamp(1.75rem, 2vw, 2.25rem);
	line-height: 1.1;
}

.sb-modal__summary {
	margin: 0;
	color: var(--sb-muted);
	line-height: 1.6;
}

.sb-modal__body {
	padding: 24px 28px 28px;
}

.sb-modal-errors {
	margin-bottom: 18px;
	padding: 14px 16px;
	border-radius: 16px;
	background: var(--sb-danger-soft);
	color: var(--sb-danger);
}

.sb-modal-errors ul {
	margin: 0;
	padding-left: 18px;
}

.sb-form {
	display: grid;
	gap: 18px;
}

.sb-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 16px;
}

.sb-field--full {
	grid-column: 1 / -1;
}

.sb-field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 700;
}

.sb-field input,
.sb-field select,
.sb-field textarea {
	width: 100%;
	padding: 12px 14px;
	border-radius: 14px;
	border: 1px solid #d9c7b0;
	background: #fffdfa;
	color: var(--sb-text);
	font: inherit;
	box-shadow: inset 0 1px 2px rgba(48, 33, 19, 0.03);
}

.sb-field input:focus,
.sb-field select:focus,
.sb-field textarea:focus {
	outline: 2px solid rgba(138, 63, 32, 0.18);
	border-color: var(--sb-accent);
}

.sb-check {
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr);
	gap: 12px;
	align-items: start;
	color: var(--sb-muted);
	line-height: 1.55;
}

.sb-check input {
	margin-top: 4px;
}

.sb-form-hint {
	margin: 0;
	font-size: 0.94rem;
	color: var(--sb-muted);
}

.sb-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
	margin-top: 4px;
}

.sb-turnstile {
	margin-top: 4px;
	display: grid;
	gap: 10px;
}

.sb-turnstile__widget {
	min-height: 68px;
}

.sb-turnstile__status {
	margin: 0;
	font-size: 0.92rem;
	color: var(--sb-muted);
}

.sb-turnstile.is-ready .sb-turnstile__status {
	display: none;
}

.sb-turnstile.is-error .sb-turnstile__status {
	color: #9c3b30;
}

body.sb-modal-open {
	overflow: hidden;
}

@media (max-width: 780px) {
	.sb-day-group {
		padding: 18px;
	}

	.sb-day-group__header {
		flex-direction: column;
		align-items: flex-start;
	}

	.sb-slot-card {
		grid-template-columns: 1fr;
	}

	.sb-slot-card__time {
		min-height: auto;
		padding: 16px;
		justify-content: flex-start;
	}

	.sb-form-grid {
		grid-template-columns: 1fr;
	}

	.sb-modal__dialog {
		margin: 16px auto;
		max-height: calc(100vh - 32px);
	}

	.sb-modal__header,
	.sb-modal__body {
		padding-left: 18px;
		padding-right: 18px;
	}
}
