.rc-booking-app {
	--rc-bg: #f6f8fb;
	--rc-surface: #ffffff;
	--rc-text: #132032;
	--rc-muted: #667085;
	--rc-border: #d9e2ec;
	--rc-primary: #0f766e;
	--rc-primary-strong: #115e59;
	--rc-blue: #2563eb;
	--rc-success: #15803d;
	--rc-danger: #b91c1c;
	--rc-warning: #b45309;
	--rc-shadow: 0 18px 45px rgba(15, 23, 42, 0.09);
	color: var(--rc-text);
	font-family: inherit;
}

.rc-booking-app *,
.rc-booking-app *::before,
.rc-booking-app *::after {
	box-sizing: border-box;
}

.rc-shell {
	background: var(--rc-surface);
	border: 1px solid var(--rc-border);
	border-radius: 8px;
	box-shadow: var(--rc-shadow);
	margin: 0 auto;
	max-width: 1120px;
	overflow: hidden;
}

.rc-topbar {
	align-items: center;
	background: #f8fafc;
	border-bottom: 1px solid var(--rc-border);
	display: flex;
	gap: 20px;
	justify-content: space-between;
	padding: 22px;
}

.rc-kicker {
	color: var(--rc-primary);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0;
	margin: 0 0 4px;
	text-transform: uppercase;
}

.rc-topbar h2 {
	color: var(--rc-text);
	font-size: clamp(1.35rem, 2vw, 2rem);
	line-height: 1.2;
	margin: 0;
}

.rc-tablist {
	background: #e8eef5;
	border-radius: 8px;
	display: flex;
	gap: 4px;
	padding: 4px;
}

.rc-tab {
	background: transparent;
	border: 0;
	border-radius: 6px;
	color: #334155;
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	min-height: 42px;
	padding: 9px 14px;
}

.rc-tab.is-active {
	background: #ffffff;
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.14);
	color: var(--rc-primary-strong);
}

.rc-alert {
	border-bottom: 1px solid var(--rc-border);
	font-weight: 700;
	padding: 13px 22px;
}

.rc-alert.is-success {
	background: #ecfdf3;
	color: var(--rc-success);
}

.rc-alert.is-error {
	background: #fef2f2;
	color: var(--rc-danger);
}

.rc-alert.is-warning,
.rc-alert.is-info {
	background: #fffbeb;
	color: var(--rc-warning);
}

.rc-panel {
	display: none;
	padding: 22px;
}

.rc-panel.is-active {
	display: block;
}

.rc-layout {
	display: grid;
	gap: 24px;
	grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
}

.rc-column {
	min-width: 0;
}

.rc-column-main {
	display: grid;
	gap: 18px;
}

.rc-field {
	display: grid;
	gap: 8px;
	margin: 0 0 16px;
}

.rc-field label,
.rc-field > label {
	color: #26364a;
	font-size: 0.92rem;
	font-weight: 800;
}

.rc-field label span {
	color: var(--rc-muted);
	font-weight: 600;
}

.rc-field input,
.rc-field select {
	background: #ffffff;
	border: 1px solid var(--rc-border);
	border-radius: 8px;
	color: var(--rc-text);
	font: inherit;
	min-height: 46px;
	padding: 10px 12px;
	width: 100%;
}

.rc-field input:focus,
.rc-field select:focus {
	border-color: var(--rc-primary);
	box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
	outline: 0;
}

.rc-calendar {
	border: 1px solid var(--rc-border);
	border-radius: 8px;
	overflow: hidden;
}

.rc-calendar-head {
	align-items: center;
	background: #0f172a;
	color: #ffffff;
	display: grid;
	grid-template-columns: 44px 1fr 44px;
	min-height: 52px;
}

.rc-calendar-head strong {
	font-size: 1rem;
	text-align: center;
}

.rc-icon-button {
	align-items: center;
	background: transparent;
	border: 0;
	color: #ffffff;
	cursor: pointer;
	display: inline-flex;
	font-size: 1.6rem;
	height: 44px;
	justify-content: center;
	width: 44px;
}

.rc-icon-button:hover {
	background: rgba(255, 255, 255, 0.12);
}

.rc-weekdays,
.rc-calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
}

.rc-weekdays {
	background: #eef4f8;
	border-bottom: 1px solid var(--rc-border);
}

.rc-weekdays span {
	color: var(--rc-muted);
	font-size: 0.78rem;
	font-weight: 800;
	padding: 10px 4px;
	text-align: center;
}

.rc-calendar-grid {
	background: #ffffff;
	gap: 1px;
}

.rc-day,
.rc-day-spacer {
	aspect-ratio: 1 / 0.82;
	min-height: 48px;
}

.rc-day {
	background: #ffffff;
	border: 0;
	color: var(--rc-text);
	cursor: pointer;
	font: inherit;
	font-weight: 800;
	position: relative;
}

.rc-day:hover:not(:disabled),
.rc-day.is-selected {
	background: #dff8f5;
	color: var(--rc-primary-strong);
}

.rc-day.is-selected::after {
	background: var(--rc-primary);
	border-radius: 999px;
	bottom: 8px;
	content: "";
	height: 5px;
	left: 50%;
	position: absolute;
	transform: translateX(-50%);
	width: 20px;
}

.rc-day.is-today {
	color: var(--rc-blue);
}

.rc-day:disabled {
	background: #f1f5f9;
	color: #a0aec0;
	cursor: not-allowed;
}

.rc-day-spacer {
	background: #f8fafc;
}

.rc-slots {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	min-height: 112px;
}

.rc-slots-compact {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	min-height: 60px;
}

.rc-slot {
	background: #f8fafc;
	border: 1px solid var(--rc-border);
	border-radius: 8px;
	color: var(--rc-text);
	cursor: pointer;
	font: inherit;
	font-weight: 800;
	min-height: 44px;
	padding: 8px;
}

.rc-slot:hover:not(:disabled),
.rc-slot.is-selected {
	background: #e6f7f4;
	border-color: var(--rc-primary);
	color: var(--rc-primary-strong);
}

.rc-slot:disabled {
	background: #f1f5f9;
	color: #98a2b3;
	cursor: not-allowed;
	text-decoration: line-through;
}

.rc-empty {
	align-items: center;
	background: #f8fafc;
	border: 1px dashed var(--rc-border);
	border-radius: 8px;
	color: var(--rc-muted);
	display: flex;
	grid-column: 1 / -1;
	justify-content: center;
	margin: 0;
	min-height: 74px;
	padding: 14px;
	text-align: center;
}

.rc-person-fields {
	display: grid;
	gap: 0;
}

.rc-primary,
.rc-secondary,
.rc-danger {
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	font: inherit;
	font-weight: 800;
	min-height: 48px;
	padding: 12px 16px;
	width: 100%;
}

.rc-primary {
	background: var(--rc-primary);
	color: #ffffff;
}

.rc-primary:hover {
	background: var(--rc-primary-strong);
}

.rc-secondary {
	background: #1d4ed8;
	color: #ffffff;
}

.rc-danger {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: var(--rc-danger);
}

.rc-primary:disabled,
.rc-secondary:disabled,
.rc-danger:disabled {
	cursor: progress;
	opacity: 0.7;
}

.rc-confirmation {
	background: #ecfdf3;
	border: 1px solid #bbf7d0;
	border-radius: 8px;
	margin-top: 20px;
	padding: 18px;
}

.rc-confirmation p {
	color: var(--rc-success);
	font-weight: 800;
	margin: 0 0 4px;
}

.rc-confirmation strong {
	color: #14532d;
	display: block;
	font-size: 1.55rem;
	line-height: 1.2;
	margin-bottom: 4px;
}

.rc-confirmation span {
	color: #166534;
	display: block;
}

.rc-manage-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: minmax(260px, 0.6fr) minmax(0, 1fr);
}

.rc-lookup,
.rc-manage-result {
	border: 1px solid var(--rc-border);
	border-radius: 8px;
	padding: 18px;
}

.rc-booking-summary {
	background: #f8fafc;
	border: 1px solid var(--rc-border);
	border-radius: 8px;
	margin-bottom: 18px;
	padding: 14px;
}

.rc-booking-summary p,
.rc-booking-summary strong,
.rc-booking-summary span,
.rc-booking-summary small {
	display: block;
}

.rc-booking-summary p {
	color: var(--rc-primary);
	font-size: 0.78rem;
	font-weight: 800;
	margin: 0 0 4px;
	text-transform: uppercase;
}

.rc-booking-summary strong {
	margin-bottom: 4px;
}

.rc-booking-summary span,
.rc-booking-summary small {
	color: var(--rc-muted);
}

.rc-actions {
	display: grid;
	gap: 10px;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.rc-lock-message {
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 8px;
	color: var(--rc-warning);
	font-weight: 700;
	margin: 0;
	padding: 14px;
}

@media (max-width: 820px) {
	.rc-topbar,
	.rc-layout,
	.rc-manage-grid,
	.rc-actions {
		grid-template-columns: 1fr;
	}

	.rc-topbar {
		align-items: stretch;
		display: grid;
	}

	.rc-tablist {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.rc-slots,
	.rc-slots-compact {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.rc-panel,
	.rc-topbar {
		padding: 16px;
	}

	.rc-tab {
		font-size: 0.9rem;
		padding: 8px;
	}

	.rc-day,
	.rc-day-spacer {
		min-height: 42px;
	}

	.rc-slots,
	.rc-slots-compact {
		grid-template-columns: 1fr;
	}
}
