.cdenes-admin-booking-calendar {
	--cdenes-admin-dark: #244f18;
	--cdenes-admin-free: #c9f46d;
	--cdenes-admin-booked: #ffabab;
	--cdenes-admin-selected: #1d2327;
	max-width: 980px;
	padding: 18px;
	border: 1px solid #c3c4c7;
	border-radius: 8px;
	background: #fff;
}

.cdenes-admin-booking-calendar__summary {
	margin-bottom: 14px;
	font-size: 16px;
	font-weight: 700;
}

.cdenes-admin-booking-calendar__nav {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 18px;
}

.cdenes-admin-booking-calendar__months {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.cdenes-admin-booking-calendar__month-title {
	margin: 0 0 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid #dcdcde;
	text-align: center;
	font-size: 14px;
	font-weight: 700;
}

.cdenes-admin-booking-calendar__weekdays,
.cdenes-admin-booking-calendar__days {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 6px;
}

.cdenes-admin-booking-calendar__weekdays {
	margin-bottom: 8px;
	color: #50575e;
	font-size: 10px;
	font-weight: 700;
	text-align: center;
}

.cdenes-admin-booking-calendar__day,
.cdenes-admin-booking-calendar__placeholder {
	width: 32px;
	height: 32px;
	justify-self: center;
}

.cdenes-admin-booking-calendar__day {
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #646970;
	font-size: 13px;
	line-height: 32px;
	text-align: center;
	cursor: default;
}

.cdenes-admin-booking-calendar__day.is-free,
.cdenes-admin-booking-calendar__day.is-in-range {
	background: var(--cdenes-admin-free);
	color: #1d2327;
	cursor: pointer;
}

.cdenes-admin-booking-calendar__day.is-past {
	background: transparent;
	color: #8c8f94;
}

.cdenes-admin-booking-calendar__day.is-booked {
	background: var(--cdenes-admin-booked);
	color: #d63638;
}

.cdenes-admin-booking-calendar__day.is-selected {
	background: var(--cdenes-admin-dark);
	color: #fff;
	box-shadow: none;
	cursor: pointer;
}

.cdenes-admin-booking-calendar__day.is-in-range {
	background: var(--cdenes-admin-dark);
	color: #fff;
}

.cdenes-booking-calendar {
	--cdenes-dark: #244f18;
	--cdenes-free: #c9f46d;
	--cdenes-booked: #ffabab;
	--cdenes-ink: #1f1f1f;
	--cdenes-muted: #8f8f8f;
	--cdenes-past: #8f8f8f;
	position: relative;
	max-width: 1136px;
	margin: 0 auto;
	padding: 30px 44px 28px;
	border: 1px solid var(--cdenes-ink);
	border-radius: 10px;
	background: #fff;
	color: var(--cdenes-ink);
	font-family: inherit;
}

.cdenes-booking-calendar__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 48px;
	padding: 0 0 24px;
}

.cdenes-booking-calendar__range {
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.2;
}

.cdenes-booking-calendar__reserve,
.cdenes-booking-calendar__submit {
	flex: 0 0 auto;
	border: 0;
	border-radius: 999px;
	background: #1f1f1f;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

.cdenes-booking-calendar__reserve {
	min-width: 168px;
	padding: 14px 24px;
}

.cdenes-booking-calendar__submit {
	width: 100%;
	padding: 14px 22px;
}

.cdenes-booking-calendar__reserve:disabled,
.cdenes-booking-calendar__submit:disabled {
	cursor: not-allowed;
	opacity: .45;
}

.cdenes-booking-calendar__divider {
	height: 1px;
	background: #d9d9d9;
	margin-bottom: 30px;
}

.cdenes-booking-calendar__nav {
	pointer-events: none;
	position: absolute;
	top: 118px;
	left: 48px;
	right: 48px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	z-index: 2;
}

.cdenes-booking-calendar__arrow {
	pointer-events: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 0;
	background: transparent;
	color: #111;
	font-size: 0;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

.cdenes-booking-calendar__arrow::before {
	color: #111;
	font-size: 34px;
	line-height: 1;
}

.cdenes-booking-calendar__arrow[data-action="prev"]::before {
	content: "\2039";
}

.cdenes-booking-calendar__arrow[data-action="next"]::before {
	content: "\203A";
}

.cdenes-booking-calendar button.cdenes-booking-calendar__arrow:hover,
.cdenes-booking-calendar button.cdenes-booking-calendar__arrow:focus,
.cdenes-booking-calendar button.cdenes-booking-calendar__arrow:focus-visible,
.cdenes-booking-calendar button.cdenes-booking-calendar__arrow:active {
	background: transparent !important;
	background-color: transparent !important;
	color: #111 !important;
	box-shadow: none !important;
	outline: 0;
}

.cdenes-booking-calendar button.cdenes-booking-calendar__arrow:hover::before,
.cdenes-booking-calendar button.cdenes-booking-calendar__arrow:focus::before,
.cdenes-booking-calendar button.cdenes-booking-calendar__arrow:focus-visible::before,
.cdenes-booking-calendar button.cdenes-booking-calendar__arrow:active::before {
	color: grey;
}

.cdenes-booking-calendar__months {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 44px;
}

.cdenes-booking-calendar__month-title {
	margin: 0 0 20px;
	padding-bottom: 22px;
	border-bottom: 1px solid #d9d9d9;
	text-align: center;
	font-size: 20px;
	font-weight: 700;
}

.cdenes-booking-calendar__weekdays,
.cdenes-booking-calendar__days {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 10px;
}

.cdenes-booking-calendar__weekdays {
	margin-bottom: 18px;
	font-size: 11px;
	font-weight: 700;
	text-align: center;
}

.cdenes-booking-calendar__day {
	width: 37px;
	height: 37px;
	justify-self: center;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--cdenes-muted);
	font-size: 18px;
	font-weight: 500;
	line-height: 37px;
	text-align: center;
	cursor: default;
	padding: 0;
}

.cdenes-booking-calendar__day.is-free,
.cdenes-booking-calendar__day.is-selected,
.cdenes-booking-calendar__day.is-in-range {
	background: var(--cdenes-free);
	color: var(--cdenes-ink);
	cursor: pointer;
}

.cdenes-booking-calendar__day.is-past {
	background: transparent;
	color: var(--cdenes-past);
}

.cdenes-booking-calendar__day.is-booked {
	background: var(--cdenes-booked);
	color: #ff1717;
}

.cdenes-booking-calendar__day.is-selected {
	background: var(--cdenes-dark);
	color: #fff;
	box-shadow: none;
}

.cdenes-booking-calendar__day.is-in-range {
	background: var(--cdenes-dark);
	color: #fff;
}

.cdenes-booking-calendar__day-placeholder {
	width: 37px;
	height: 37px;
}

.cdenes-booking-calendar__modal {
	position: fixed;
	z-index: 9999;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(0, 0, 0, .42);
}

.cdenes-booking-calendar__modal[hidden] {
	display: none;
}

.cdenes-booking-calendar__modal-panel {
	position: relative;
	width: min(100%, 500px);
	max-height: calc(100vh - 40px);
	overflow: auto;
	padding: 26px;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 18px 54px rgba(0, 0, 0, .22);
}

.cdenes-booking-calendar__modal-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 30px;
	height: 30px;
	border: 0;
	border-radius: 50%;
	background: #f0f0f0;
	color: #1f1f1f;
	font-size: 18px;
	line-height: 30px;
	cursor: pointer;
	padding: 0;
}

.cdenes-booking-calendar__form-head {
	margin: 0 38px 20px 0;
}

.cdenes-booking-calendar__form-head h3 {
	margin: 0 0 6px;
	font-size: 21px;
	line-height: 1.2;
}

.cdenes-booking-calendar__form-head p {
	margin: 0;
	color: #666;
	font-size: 13px;
	line-height: 1.45;
}

.cdenes-booking-calendar__field {
	display: grid;
	gap: 7px;
	margin-bottom: 14px;
}

.cdenes-booking-calendar__field label {
	font-size: 13px;
	font-weight: 700;
}

.cdenes-booking-calendar__field input,
.cdenes-booking-calendar__field textarea {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #cfcfcf;
	border-radius: 4px;
	padding: 10px 12px;
	background: #fff;
	color: #1f1f1f;
	font: inherit;
}

.cdenes-booking-calendar__field textarea {
	resize: vertical;
}

.cdenes-booking-calendar__selected-range {
	margin: 0 0 14px;
	padding: 12px 14px;
	border: 1px solid #e1e1e1;
	border-radius: 6px;
	background: #f8f8f8;
	font-size: 15px;
	font-weight: 700;
}

.cdenes-booking-calendar__dates {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.cdenes-booking-calendar__notice {
	min-height: 20px;
	margin: 0 0 14px;
	font-size: 13px;
	font-weight: 700;
}

.cdenes-booking-calendar__notice.is-error {
	color: #b42318;
}

.cdenes-booking-calendar__notice.is-success {
	color: #247018;
}

@media (max-width: 960px) {
	.cdenes-admin-booking-calendar__months {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 860px) {
	.cdenes-booking-calendar {
		padding: 22px;
		border-radius: 20px;
	}

	.cdenes-booking-calendar__toolbar {
		gap: 16px;
		min-height: 48px;
		padding-bottom: 20px;
	}

	.cdenes-booking-calendar__range {
		font-size: clamp(18px, 4.3vw, 24px);
		white-space: nowrap;
	}

	.cdenes-booking-calendar__reserve {
		min-width: 126px;
		padding: 16px 22px;
		font-size: 0;
	}

	.cdenes-booking-calendar__reserve::before {
		content: "R\00E9server";
		font-size: 18px;
		line-height: 1;
	}

	.cdenes-booking-calendar__divider {
		margin-bottom: 34px;
	}

	.cdenes-booking-calendar__months {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.cdenes-booking-calendar__nav {
		top: 107px;
		left: 22px;
		right: 22px;
	}

	.cdenes-booking-calendar__arrow {
		width: 42px;
		height: 42px;
	}

	.cdenes-booking-calendar__arrow::before {
		font-size: 42px;
	}

	.cdenes-booking-calendar__month-title {
		margin: 0 -22px 26px;
		padding: 0 58px 32px;
		font-size: clamp(27px, 6vw, 32px);
	}

	.cdenes-booking-calendar__weekdays,
	.cdenes-booking-calendar__days {
		gap: clamp(8px, 2vw, 13px);
	}

	.cdenes-booking-calendar__weekdays {
		margin-bottom: 22px;
		font-size: clamp(13px, 3vw, 17px);
	}

	.cdenes-booking-calendar__day,
	.cdenes-booking-calendar__day-placeholder {
		width: clamp(38px, 10vw, 60px);
		height: clamp(38px, 10vw, 60px);
	}

	.cdenes-booking-calendar__day {
		font-size: clamp(23px, 5.4vw, 30px);
		line-height: clamp(38px, 10vw, 60px);
	}
}

@media (max-width: 520px) {
	.cdenes-booking-calendar__toolbar {
		align-items: center;
		flex-direction: row;
		gap: 10px;
	}

	.cdenes-booking-calendar__range {
		font-size: 16px;
	}

	.cdenes-booking-calendar__reserve {
		min-width: 102px;
		padding: 14px 18px;
	}

	.cdenes-booking-calendar__reserve::before {
		font-size: 16px;
	}

	.cdenes-booking-calendar__day,
	.cdenes-booking-calendar__day-placeholder {
		width: clamp(34px, 9.2vw, 48px);
		height: clamp(34px, 9.2vw, 48px);
	}

	.cdenes-booking-calendar__month-title {
		font-size: 20px;
	}

	.cdenes-booking-calendar__weekdays {
		font-size: 12px;
	}

	.cdenes-booking-calendar__day {
		font-size: 15px;
		line-height: clamp(34px, 9.2vw, 48px);
	}

	.cdenes-booking-calendar__dates {
		grid-template-columns: 1fr;
		gap: 0;
	}
}
