.wp-block-villarot-events-calendar {
	display: grid;
	width: 100%;
	min-width: 0;
	gap: 40px;
}

.villarot-events-calendar__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	width: 100%;
	min-width: 0;
	max-width: 1190px;
	gap: 1rem;
	margin-right: auto;
	margin-left: auto;
}

.villarot-events-calendar__filter {
	box-sizing: border-box;
	width: min(370px, 100%);
	min-width: 0;
	max-width: 100%;
	height: 35px;
	margin: 0 5px;
	padding: 0 3px;
	border: none;
	border-bottom: 2px solid #202020;
	background-color: #ffffff;
	color: #202020;
	font: inherit;
	font-weight: 650;
	text-overflow: ellipsis;
}

.villarot-events-calendar__filter option {
	max-width: 100%;
	overflow-wrap: anywhere;
	white-space: normal;
}

.villarot-events-calendar__title,
.villarot-events-calendar__month-title,
.villarot-events-calendar__event-title {
	margin: 0;
}

.villarot-events-calendar__content {
	display: grid;
	width: 100%;
	gap: 40px;
}

.villarot-events-calendar__month {
	display: grid;
	width: 100%;
	max-width: 1190px;
	gap: 25px;
	margin-right: auto;
	margin-left: auto;
}

.villarot-events-calendar__month-title {
	font-size: 32px;
	font-style: italic;
	font-weight: 850;
	line-height: 36px;
}

.villarot-events-calendar__month-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 380px));
	column-gap: 25px;
	row-gap: 40px;
}

.villarot-events-calendar__event {
	/* Include card padding in the grid track width on narrow viewports. */
	box-sizing: border-box;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	width: 100%;
	min-width: 0;
	padding: 5px;
}

.villarot-events-calendar__date {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	margin: 15px 0;
	border-radius: 50%;
	background-color: #202020;
	color: #ffffff;
}

.villarot-events-calendar__date--today {
	background-color: #920000;
}

.villarot-events-calendar__day {
	color: #ffffff;
	font-size: 20px;
	font-style: normal;
	font-weight: 850;
	line-height: 1;
}

.villarot-events-calendar__body {
	display: grid;
	gap: 0;
}

.villarot-events-calendar__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.villarot-events-calendar__time {
	display: inline-flex;
	align-items: center;
	padding: 0 0 10px;
	color: #202020;
	font-size: 17px;
	font-style: italic;
	font-weight: 850;
	line-height: 26px;
}

.villarot-events-calendar__event-title {
	min-height: 103px;
	padding: 10px 0;
	font-size: 17px;
	font-style: italic;
	font-weight: 850;
	line-height: 26px;
}

.villarot-events-calendar__description,
.villarot-events-calendar__description > :first-child,
.villarot-events-calendar__description > :last-child,
.villarot-events-calendar__status,
.villarot-events-calendar-editor__copy,
.villarot-events-calendar-editor__eyebrow {
	margin: 0;
}

.villarot-events-calendar__description {
	font-size: 17px;
	font-weight: 650;
	line-height: 26px;
}

.villarot-events-calendar__description p {
	margin: 0;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
}

.villarot-events-calendar__description p:not(:last-child) {
	margin-bottom: 1rem;
}

.villarot-events-calendar__booking {
	display: grid;
	gap: var(--wp--preset--spacing--xs, 10px);
	margin-top: var(--wp--preset--spacing--s, 15px);
}

.villarot-events-calendar__booking-status,
.villarot-events-calendar__booking-meta,
.villarot-events-calendar__booking-availability,
.villarot-events-calendar__booking-copy,
.villarot-events-calendar__booking-field-error,
.villarot-events-calendar__booking-label,
.villarot-events-calendar__booking-eyebrow {
	margin: 0;
}

.villarot-events-calendar__booking-status,
.villarot-events-calendar__booking-availability,
.villarot-events-calendar__booking-label,
.villarot-events-calendar__booking-field-error {
	font-size: 0.95rem;
	line-height: 1.4;
}

.villarot-events-calendar__booking-trigger,
.villarot-events-calendar__booking-submit,
.villarot-events-calendar__booking-cancel,
.villarot-events-calendar__booking-close {
	font: inherit;
}

.villarot-events-calendar__booking-trigger,
.villarot-events-calendar__booking-submit,
.villarot-events-calendar__booking-cancel {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	min-height: 46px;
	padding: 0.7rem 1rem;
	border: 1px solid #202020;
	cursor: pointer;
	font-style: italic;
	font-weight: 850;
	line-height: 1.2;
	text-decoration: none;
	transition:
		background-color 150ms ease,
		color 150ms ease,
		opacity 150ms ease;
}

.villarot-events-calendar__booking-trigger,
.villarot-events-calendar__booking-submit {
	background-color: #202020;
	color: #ffffff;
}

.villarot-events-calendar__booking-cancel {
	background-color: transparent;
	color: #202020;
}

.villarot-events-calendar__booking-trigger:hover,
.villarot-events-calendar__booking-trigger:focus-visible,
.villarot-events-calendar__booking-submit:hover,
.villarot-events-calendar__booking-submit:focus-visible {
	background-color: #920000;
	border-color: #920000;
}

.villarot-events-calendar__booking-cancel:hover,
.villarot-events-calendar__booking-cancel:focus-visible {
	background-color: #f1ece5;
}

.villarot-events-calendar__booking-trigger:disabled,
.villarot-events-calendar__booking-submit:disabled,
.villarot-events-calendar__booking-cancel:disabled {
	cursor: default;
	opacity: 0.45;
}

.villarot-events-calendar__booking-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 5vh 5vw;
	animation: villarot-booking-modal-in 300ms ease both;
}

.villarot-events-calendar__booking-backdrop {
	position: absolute;
	inset: 0;
	background: rgb(0 0 0 / 35%);
}

.villarot-events-calendar__booking-dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: min(500px, 100%);
	max-height: 90vh;
	padding: 25px;
	overflow-y: auto;
	background: #ffffff;
	color: #202020;
	box-shadow: 5px 5px 0 #202020;
	gap: 25px;
	outline: none;
}

.villarot-events-calendar__booking-close {
	position: relative;
	align-self: flex-end;
	width: 25px;
	height: 25px;
	padding: 0;
	border: 0;
	background: transparent;
	color: transparent;
	cursor: pointer;
	font-size: 0;
	flex: 0 0 auto;
}

.villarot-events-calendar__booking-close::before,
.villarot-events-calendar__booking-close::after {
	position: absolute;
	top: 12px;
	left: 1px;
	width: 23px;
	height: 2px;
	background: #202020;
	content: "";
	transition: background-color 150ms ease;
}

.villarot-events-calendar__booking-close::before {
	transform: rotate(45deg);
}

.villarot-events-calendar__booking-close::after {
	transform: rotate(-45deg);
}

.villarot-events-calendar__booking-close:hover::before,
.villarot-events-calendar__booking-close:hover::after,
.villarot-events-calendar__booking-close:focus-visible::before,
.villarot-events-calendar__booking-close:focus-visible::after {
	background: #920000;
}

.villarot-events-calendar__booking-header,
.villarot-events-calendar__booking-success {
	display: grid;
	gap: 8px;
}

.villarot-events-calendar__booking-eyebrow {
	font-size: 0.95rem;
	font-style: italic;
	font-weight: 850;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.villarot-events-calendar__booking-title {
	margin: 0;
	color: #920000;
	font-size: 1rem;
	font-style: italic;
	font-weight: 850;
	line-height: 1.6;
}

.villarot-events-calendar__booking-meta,
.villarot-events-calendar__booking-copy,
.villarot-events-calendar__booking-consent {
	font-size: 1rem;
	font-weight: 650;
	line-height: 1.6;
}

.villarot-events-calendar__booking-notice {
	padding: 0.85rem 1rem;
	border-left: 4px solid #920000;
	background: #f7ecec;
	font-size: 1rem;
	font-weight: 650;
	line-height: 1.5;
}

.villarot-events-calendar__booking-form {
	display: flex;
	flex-direction: column;
	gap: 25px;
}

.villarot-events-calendar__booking-grid {
	display: flex;
	flex-direction: column;
	gap: 25px;
}

.villarot-events-calendar__booking-field {
	display: grid;
	gap: 4px;
}

.villarot-events-calendar__booking-field--full {
	grid-column: 1 / -1;
}

.villarot-events-calendar__booking-label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.villarot-events-calendar__booking-input {
	width: 100%;
	height: 35px;
	min-height: 35px;
	padding: 0 5px;
	border: 0;
	border-bottom: 1px solid #202020;
	border-radius: 0;
	background: #ffffff;
	color: #202020;
	font: inherit;
}

.villarot-events-calendar__booking-input:focus {
	border-bottom-width: 2px;
	outline: none;
}

.villarot-events-calendar__booking-input[aria-invalid="true"] {
	border-color: #920000;
}

.villarot-events-calendar__booking-field-error {
	color: #920000;
	font-weight: 650;
}

.villarot-events-calendar__booking-honeypot {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.villarot-events-calendar__booking-consent {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.villarot-events-calendar__booking-consent input {
	width: 18px;
	height: 18px;
	margin-top: 0.2rem;
	flex: 0 0 auto;
}

.villarot-events-calendar__booking-consent a {
	color: inherit;
	text-decoration-line: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.16em;
	transition: text-decoration-thickness var(--t-mid, 300ms) var(--ease-standard, ease);
}

.villarot-events-calendar__booking-consent a:visited {
	color: inherit;
}

.villarot-events-calendar__booking-consent a:hover,
.villarot-events-calendar__booking-consent a:focus-visible {
	text-decoration-thickness: 4px;
}

.villarot-events-calendar__booking-actions {
	display: block;
}

.villarot-events-calendar__booking-actions .villarot-events-calendar__booking-submit {
	width: 100%;
	min-height: 35px;
	padding: 0 5px;
	border: 0;
}

.villarot-events-calendar__booking-success .villarot-events-calendar__booking-submit {
	width: 100%;
	min-height: 35px;
	padding: 0 5px;
	border: 0;
}

.villarot-events-calendar__booking-actions .villarot-events-calendar__booking-cancel {
	display: none;
}

@keyframes villarot-booking-modal-in {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.villarot-events-calendar__pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	column-gap: 25px;
	margin-top: 10px;
}

.villarot-events-calendar__pagination-control {
	padding: 0;
	border: 0;
	background: transparent;
	color: #202020;
	cursor: pointer;
	font: inherit;
	font-style: italic;
	font-weight: 850;
	line-height: 26px;
}

.villarot-events-calendar__pagination-control:hover,
.villarot-events-calendar__pagination-control:focus-visible {
	text-decoration: underline;
	text-decoration-thickness: 4px;
}

.villarot-events-calendar__pagination-control:disabled {
	cursor: default;
	opacity: 0.35;
	text-decoration: none;
}

.villarot-events-calendar__page-count {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 60px;
	height: 60px;
	border-radius: 50%;
	background-color: #202020;
	color: #ffffff;
}

.villarot-events-calendar__page-count-label {
	margin: 0;
	color: inherit;
	font-size: 20px;
	font-weight: 850;
	line-height: 1;
	text-transform: uppercase;
}

.villarot-events-calendar-editor {
	padding: 1.5rem;
	border: 1px dashed currentColor;
}

.villarot-events-calendar-editor__title {
	margin: 0.4rem 0;
}

@media screen and (max-width: 1200px) {
	.villarot-events-calendar__header,
	.villarot-events-calendar__month {
		max-width: 785px;
	}

	.villarot-events-calendar__month-list {
		grid-template-columns: repeat(2, minmax(0, 380px));
	}
}

@media screen and (max-width: 785px) {
	.villarot-events-calendar__header {
		flex-direction: column;
		align-items: flex-start;
		min-height: 110px;
		column-gap: 40px;
	}

	.villarot-events-calendar__header,
	.villarot-events-calendar__month {
		max-width: min(380px, 100%);
	}

	.villarot-events-calendar__filter {
		width: min(350px, 100%);
		margin: 25px 0;
	}

	.villarot-events-calendar__month-list {
		grid-template-columns: minmax(0, 1fr);
	}

	.villarot-events-calendar__booking-grid {
		width: 100%;
	}

	.villarot-events-calendar__booking-dialog {
		padding: 25px;
	}

	.villarot-events-calendar__booking-actions,
	.villarot-events-calendar__booking-trigger,
	.villarot-events-calendar__booking-submit {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.villarot-events-calendar__booking-modal {
		animation: none;
	}

	.villarot-events-calendar__booking-trigger,
	.villarot-events-calendar__booking-submit,
	.villarot-events-calendar__booking-cancel,
	.villarot-events-calendar__booking-close::before,
	.villarot-events-calendar__booking-close::after,
	.villarot-events-calendar__booking-consent a {
		transition: none;
	}
}

@media (forced-colors: active) {
	.villarot-events-calendar__date,
	.villarot-events-calendar__page-count {
		border: 1px solid CanvasText;
	}

	.villarot-events-calendar__booking-close {
		width: auto;
		min-width: 44px;
		height: 44px;
		color: ButtonText;
		font-size: 1rem;
	}

	.villarot-events-calendar__booking-close::before,
	.villarot-events-calendar__booking-close::after {
		display: none;
	}
}
