.hmr-calendar {
	--hmr-free: #37dc48;
	--hmr-partial: #ffd54a;
	--hmr-booked: #ffd6d6;
	--hmr-blocked: #e5e7eb;
	--hmr-ink: #08213f;
	border: 1px solid #d9e0e7;
	border-radius: 8px;
	padding: 18px;
	background: #fff;
	display: grid;
	gap: 14px;
	box-shadow: 0 12px 34px rgba(8, 33, 63, .08);
	max-width: 640px;
}

.hmr-calendar__head,
.hmr-calendar__selected,
.hmr-calendar__monthbar,
.hmr-calendar__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.hmr-calendar__eyebrow {
	color: #6a7788;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
}

.hmr-calendar__title {
	color: var(--hmr-ink);
	font-size: 22px;
	font-weight: 800;
	line-height: 1.2;
}

.hmr-calendar__qty {
	display: grid;
	gap: 4px;
	min-width: 96px;
	color: #5e6b7a;
	font-size: 13px;
	font-weight: 700;
}

.hmr-calendar__qty input {
	border: 1px solid #cad3dd;
	min-height: 40px;
	padding: 0 10px;
	text-align: center;
}

.hmr-calendar__selected {
	background: #f6f8fa;
	border: 1px solid #e1e7ed;
	border-radius: 8px;
	padding: 10px;
}

.hmr-calendar__selected div {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.hmr-calendar__selected span {
	color: #6a7788;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
}

.hmr-calendar__selected strong {
	color: var(--hmr-ink);
	font-size: 16px;
}

.hmr-calendar__monthbar {
	border-top: 1px solid #edf1f5;
	padding-top: 8px;
}

.hmr-calendar__month {
	color: var(--hmr-ink);
	font-size: 20px;
	font-weight: 800;
	text-align: center;
}

.hmr-calendar__nav {
	width: 38px;
	height: 38px;
	border: 1px solid #d4dce5;
	border-radius: 8px;
	background: #fff;
	color: var(--hmr-ink);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.hmr-calendar__weekdays,
.hmr-calendar__grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
}

.hmr-calendar__weekdays {
	gap: 1px;
	color: #435168;
	font-size: 13px;
	font-weight: 900;
	text-align: center;
	text-transform: uppercase;
}

.hmr-calendar__weekdays span {
	padding: 8px 0;
}

.hmr-calendar__grid {
	border: 1px solid #d9e0e7;
	background: #d9e0e7;
	gap: 1px;
}

.hmr-day {
	position: relative;
	aspect-ratio: 1 / .82;
	border: 0;
	background: #fff;
	color: #0b1630;
	display: grid;
	align-content: center;
	justify-items: center;
	gap: 2px;
	font-weight: 900;
	cursor: pointer;
	transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.hmr-day span {
	font-size: 18px;
	line-height: 1;
}

.hmr-day small {
	font-size: 9px;
	font-weight: 800;
	line-height: 1;
	min-height: 10px;
	text-transform: uppercase;
}

.hmr-day:not(:disabled):hover {
	z-index: 2;
	transform: translateY(-1px);
	box-shadow: 0 8px 16px rgba(8, 33, 63, .15);
}

.hmr-day--available {
	background: var(--hmr-free);
}

.hmr-day--partially_available {
	background: var(--hmr-partial);
}

.hmr-day--unavailable,
.hmr-day--not_bookable {
	background: var(--hmr-booked);
	color: #8a1020;
	cursor: not-allowed;
}

.hmr-day--blocked {
	background: var(--hmr-blocked);
	color: #6b7280;
	cursor: not-allowed;
}

.hmr-day--empty {
	background: #f6f8fa;
	cursor: default;
}

.hmr-day--selected {
	outline: 3px solid var(--hmr-primary, #12355b);
	outline-offset: -3px;
}

.hmr-day--today::after {
	content: "";
	position: absolute;
	right: 7px;
	top: 7px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--hmr-primary, #12355b);
}

.hmr-calendar__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 14px;
	color: #526071;
	font-size: 13px;
	font-weight: 700;
}

.hmr-calendar__legend span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.hmr-dot {
	width: 13px;
	height: 13px;
	border-radius: 3px;
	display: inline-block;
}

.hmr-dot--available {
	background: var(--hmr-free);
}

.hmr-dot--partial {
	background: var(--hmr-partial);
}

.hmr-dot--unavailable {
	background: var(--hmr-booked);
}

.hmr-dot--blocked {
	background: var(--hmr-blocked);
}

.hmr-calendar__summary {
	align-items: stretch;
	background: #f7f9fb;
	border-radius: 8px;
	padding: 12px;
}

.hmr-calendar__status {
	color: #246b32;
	font-size: 16px;
	font-weight: 900;
	min-height: 24px;
}

.hmr-calendar__status[data-status="unavailable"],
.hmr-calendar__status[data-status="blocked"],
.hmr-calendar__status[data-status="not_bookable"] {
	color: #a4162a;
}

.hmr-calendar__price {
	color: #e71967;
	font-size: 24px;
	font-weight: 900;
	white-space: nowrap;
}

.hmr-calendar__add {
	align-self: center;
	border: 0;
	border-radius: 4px;
	background: var(--hmr-primary, #08213f);
	color: #fff;
	font-weight: 900;
	min-height: 48px;
	padding: 0 20px;
	text-transform: uppercase;
}

.hmr-calendar__add:disabled {
	background: #aeb8c4;
	cursor: not-allowed;
}

.hmr-calendar__notes {
	color: #526071;
	margin: 0;
}

@media (max-width: 640px) {
	.hmr-calendar {
		padding: 14px;
	}

	.hmr-calendar__head,
	.hmr-calendar__summary {
		display: grid;
	}

	.hmr-calendar__selected {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.hmr-day {
		aspect-ratio: 1 / 1;
	}

	.hmr-day span {
		font-size: 15px;
	}

	.hmr-day small {
		display: none;
	}

	.hmr-calendar__add {
		width: 100%;
	}
}
