.beriox-rv-page-wrap,
.beriox-rv-booking {
	max-width: 920px;
	margin: 0 auto;
	padding: 0 1.5rem 4rem;
}

.beriox-rv-card {
	background: var(--bg-card, #fff);
	border: 1px solid rgba(90, 95, 202, 0.15);
	border-radius: 16px;
	padding: 1.75rem;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .beriox-rv-card {
	background: #1a162e;
	border-color: rgba(255, 255, 255, 0.08);
}

.beriox-rv-step h2 {
	font-size: 1.1rem;
	margin: 0 0 1rem;
	color: #5a5fca;
}

.beriox-rv-step {
	margin-bottom: 1.75rem;
}

.beriox-rv-dates,
.beriox-rv-times {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.beriox-rv-calendar {
	border: 1px solid rgba(90, 95, 202, 0.15);
	border-radius: 14px;
	padding: 1rem;
	background: rgba(90, 95, 202, 0.035);
}

[data-theme="dark"] .beriox-rv-calendar {
	background: rgba(255, 255, 255, 0.03);
	border-color: rgba(255, 255, 255, 0.08);
}

.beriox-rv-calendar-head {
	display: grid;
	grid-template-columns: 2.5rem 1fr 2.5rem;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.85rem;
}

.beriox-rv-calendar-month {
	text-align: center;
	font-weight: 800;
	text-transform: capitalize;
	color: #1f2937;
}

[data-theme="dark"] .beriox-rv-calendar-month {
	color: #f8fafc;
}

.beriox-rv-calendar-nav {
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid rgba(90, 95, 202, 0.2);
	border-radius: 999px;
	background: #fff;
	color: #5a5fca;
	font-size: 1.45rem;
	line-height: 1;
	cursor: pointer;
}

.beriox-rv-calendar-nav:hover {
	border-color: #5a5fca;
	background: rgba(90, 95, 202, 0.08);
}

[data-theme="dark"] .beriox-rv-calendar-nav {
	background: #0e0c18;
	border-color: rgba(255, 255, 255, 0.12);
	color: #f8fafc;
}

.beriox-rv-calendar-weekdays,
.beriox-rv-dates {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 0.45rem;
}

.beriox-rv-calendar-weekdays {
	margin-bottom: 0.45rem;
	color: #64748b;
	font-size: 0.72rem;
	font-weight: 800;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0;
}

[data-theme="dark"] .beriox-rv-calendar-weekdays {
	color: #94a3b8;
}

.beriox-rv-calendar-spacer,
.beriox-rv-calendar-day {
	aspect-ratio: 1;
	min-width: 0;
	border-radius: 10px;
}

.beriox-rv-calendar-day {
	position: relative;
	display: grid;
	place-items: center;
	border: 1px solid rgba(148, 163, 184, 0.28);
	background: #fff;
	color: #475569;
	font: inherit;
	font-weight: 800;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}

.beriox-rv-calendar-day.has-slots {
	border-color: rgba(90, 95, 202, 0.32);
	color: #20246f;
}

.beriox-rv-calendar-day.has-slots:hover {
	border-color: #5a5fca;
	background: rgba(90, 95, 202, 0.1);
	transform: translateY(-1px);
}

.beriox-rv-calendar-day.is-selected {
	background: #5a5fca;
	border-color: #5a5fca;
	color: #fff;
}

.beriox-rv-calendar-day.is-today:not(.is-selected)::after {
	content: "";
	position: absolute;
	bottom: 0.35rem;
	left: 50%;
	width: 0.35rem;
	height: 0.35rem;
	border-radius: 999px;
	background: #ff8500;
	transform: translateX(-50%);
}

.beriox-rv-calendar-day.is-unavailable {
	background: rgba(148, 163, 184, 0.08);
	color: #a1a8b3;
	cursor: not-allowed;
}

.beriox-rv-day-number {
	line-height: 1;
}

.beriox-rv-day-count {
	position: absolute;
	top: 0.28rem;
	right: 0.3rem;
	min-width: 1.15rem;
	padding: 0.1rem 0.25rem;
	border-radius: 999px;
	background: rgba(255, 133, 0, 0.14);
	color: #b45309;
	font-size: 0.65rem;
	line-height: 1;
}

.beriox-rv-calendar-day.is-selected .beriox-rv-day-count {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

[data-theme="dark"] .beriox-rv-calendar-day {
	background: #0e0c18;
	border-color: rgba(255, 255, 255, 0.1);
	color: #cbd5e1;
}

[data-theme="dark"] .beriox-rv-calendar-day.has-slots {
	color: #f8fafc;
	border-color: rgba(116, 122, 245, 0.45);
}

[data-theme="dark"] .beriox-rv-calendar-day.is-selected {
	background: #747af5;
	border-color: #747af5;
	color: #fff;
}

[data-theme="dark"] .beriox-rv-calendar-day.is-unavailable {
	background: rgba(255, 255, 255, 0.025);
	color: #64748b;
}

.beriox-rv-pill {
	border: 1px solid rgba(90, 95, 202, 0.25);
	background: transparent;
	color: inherit;
	border-radius: 10px;
	padding: 0.55rem 0.85rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.beriox-rv-pill:hover {
	border-color: #5a5fca;
	background: rgba(90, 95, 202, 0.08);
}

.beriox-rv-pill.is-selected {
	background: #5a5fca;
	border-color: #5a5fca;
	color: #fff;
}

.beriox-rv-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.beriox-rv-form input,
.beriox-rv-form textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	font: inherit;
	margin-bottom: 1rem;
	box-sizing: border-box;
}

[data-theme="dark"] .beriox-rv-form input,
[data-theme="dark"] .beriox-rv-form textarea {
	background: #0e0c18;
	border-color: rgba(255, 255, 255, 0.12);
	color: #f1f5f9;
}

.beriox-rv-submit {
	width: 100%;
	padding: 0.85rem 1rem;
	border: none;
	border-radius: 10px;
	background: #5a5fca;
	color: #fff;
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
}

.beriox-rv-submit:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.beriox-rv-submit:not(:disabled):hover {
	background: #4549a8;
}

.beriox-rv-status {
	padding: 0.85rem 1rem;
	border-radius: 10px;
	margin-bottom: 1rem;
	font-weight: 600;
}

.beriox-rv-status.is-error {
	background: rgba(239, 68, 68, 0.12);
	color: #b91c1c;
}

.beriox-rv-status.is-success {
	background: rgba(34, 197, 94, 0.12);
	color: #15803d;
}

.beriox-rv-status.is-info {
	background: rgba(90, 95, 202, 0.12);
	color: #5a5fca;
}

.beriox-rv-empty {
	color: #64748b;
	font-size: 0.95rem;
}

[data-theme="dark"] .beriox-rv-empty {
	color: #94a3b8;
}

.beriox-rv-booking.is-success .beriox-rv-step,
.beriox-rv-booking.is-success .beriox-rv-form {
	display: none;
}

@media (max-width: 640px) {
	.beriox-rv-page-wrap,
	.beriox-rv-booking {
		padding-inline: 1rem;
	}

	.beriox-rv-card {
		padding: 1rem;
	}

	.beriox-rv-calendar {
		padding: 0.75rem;
	}

	.beriox-rv-calendar-weekdays,
	.beriox-rv-dates {
		gap: 0.25rem;
	}

	.beriox-rv-calendar-day,
	.beriox-rv-calendar-spacer {
		border-radius: 8px;
	}

	.beriox-rv-day-count {
		top: 0.18rem;
		right: 0.18rem;
		font-size: 0.58rem;
	}
}
