html:has(.asv-dialog:modal) {
	overflow: hidden;
}

.asv-form,
.asv-dialog {
	scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--wp--custom--header-height, 0px) + 16px);
}

.asv-form [hidden],
.asv-dialog [hidden] {
	display: none !important;
}

.asv-form__form {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--lg);
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--s-5);
	padding: var(--wp--preset--spacing--s-6);
}

.asv-form__form > *,
.asv-form__head > * {
	margin: 0;
}

.asv-form__head {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.asv-form__title {
	font-family: var(--wp--preset--font-family--geist);
	font-size: 26px;
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1.2;
}

.asv-form__lede {
	color: var(--wp--preset--color--muted);
	font-size: 15px;
}

.asv-form__grid {
	display: grid;
	gap: var(--wp--preset--spacing--s-4);
	grid-template-columns: 1fr 1fr;
}

.asv-form__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.asv-form__field--wide {
	grid-column: 1 / -1;
}

.asv-form__label {
	color: var(--wp--preset--color--muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.asv-form__optional {
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
}

.asv-form__input {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--faint);
	border-radius: var(--wp--custom--radius--md);
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--inter);
	font-size: 15px;
	line-height: normal;
	outline: none;
	padding: 11px 13px;
	resize: vertical;
	transition: border-color var(--wp--custom--duration--fast) var(--wp--custom--ease--out), box-shadow var(--wp--custom--duration--fast) var(--wp--custom--ease--out);
	width: 100%;
}

.asv-form__input::placeholder {
	color: var(--wp--preset--color--faint);
}

.asv-form__input:hover {
	border-color: var(--wp--preset--color--muted);
}

.asv-form__input:focus {
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--primary) 15%, transparent);
}

.asv-form__input:user-invalid,
.asv-form__input[aria-invalid="true"] {
	border-color: var(--wp--custom--color--danger);
}

.asv-form__input:user-invalid:focus,
.asv-form__input[aria-invalid="true"]:focus {
	border-color: var(--wp--custom--color--danger);
	box-shadow: 0 0 0 3px rgba(166, 48, 31, 0.15);
}

.asv-form__select {
	appearance: none;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235A6067' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-position: right 13px center;
	background-repeat: no-repeat;
	cursor: pointer;
	padding-right: 38px;
}

.asv-form__error {
	color: var(--wp--custom--color--danger);
	font-size: 13px;
	line-height: 1.5;
	margin: 0;
}

.asv-form__checks {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--s-3);
}

.asv-form__check {
	align-items: center;
	cursor: pointer;
	display: flex;
	font-size: 14px;
	gap: 10px;
	user-select: none;
}

.asv-form__check input {
	appearance: none;
	background: var(--wp--preset--color--base);
	border: 1.5px solid var(--wp--preset--color--faint);
	border-radius: var(--wp--custom--radius--xs);
	cursor: pointer;
	flex-shrink: 0;
	height: 18px;
	margin: 0;
	position: relative;
	transition: background 120ms, border-color 120ms;
	width: 18px;
}

.asv-form__check input:checked {
	background: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
}

.asv-form__check input:checked::after {
	border: solid var(--wp--preset--color--base);
	border-width: 0 2px 2px 0;
	content: "";
	height: 9px;
	left: 5.5px;
	position: absolute;
	top: 1.5px;
	transform: rotate(45deg);
	width: 4px;
}

.asv-form__message {
	background: var(--wp--custom--color--notice-wash);
	border: 1px solid #efc9c2;
	border-radius: var(--wp--custom--radius--md);
	color: var(--wp--preset--color--contrast);
	font-size: 14px;
	line-height: 1.55;
	padding: var(--wp--preset--spacing--s-3) var(--wp--preset--spacing--s-4);
}

.asv-form__actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--s-4);
}

.asv-form__privacy {
	color: var(--wp--preset--color--faint);
	font-size: 13px;
}

.asv-form__submit,
.asv-form__button {
	align-items: center;
	cursor: pointer;
	display: inline-flex;
	gap: 8px;
	justify-content: center;
	white-space: nowrap;
}

.asv-form__submit.wp-element-button,
button.asv-form__button {
	line-height: normal;
}

.asv-form__submit[disabled] {
	cursor: progress;
	opacity: 0.55;
}

.asv-form__button {
	border: 1px solid transparent;
	border-radius: var(--wp--custom--radius--md);
	font-family: var(--wp--preset--font-family--inter);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.005em;
	line-height: 1.6;
	padding: 12px 20px;
	text-decoration: none;
	transition: border-color var(--wp--custom--duration--fast) var(--wp--custom--ease--out), color var(--wp--custom--duration--fast) var(--wp--custom--ease--out);
}

.asv-form__button--secondary {
	background: var(--wp--preset--color--base);
	border-color: var(--wp--preset--color--line-strong);
	color: var(--wp--preset--color--contrast);
}

.asv-form__button--secondary:hover {
	border-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--contrast);
}

.asv-form__button--ghost {
	background: transparent;
	color: var(--wp--preset--color--muted);
}

.asv-form__button--ghost:hover {
	color: var(--wp--preset--color--contrast);
}

.asv-form__icon {
	flex: none;
}

.asv-form__trap {
	height: 1px;
	left: -9999px;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

.asv-form__done {
	align-items: center;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--lg);
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--s-3);
	padding: var(--wp--preset--spacing--s-7) var(--wp--preset--spacing--s-6);
	text-align: center;
}

.asv-form__done > *,
.asv-booking__done > * {
	margin: 0;
}

.asv-form__done-icon {
	align-items: center;
	background: var(--wp--custom--color--ok-wash);
	border: 1px solid #cde2d3;
	border-radius: var(--wp--custom--radius--pill);
	color: var(--wp--custom--color--ok);
	display: flex;
	height: 56px;
	justify-content: center;
	width: 56px;
}

.asv-form__done-title {
	font-family: var(--wp--preset--font-family--geist);
	font-size: 24px;
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1.2;
}

.asv-form__done-title:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 4px;
}

.asv-form__done .asv-form__done-text,
.asv-booking__done .asv-form__done-text {
	color: var(--wp--preset--color--muted);
	font-size: 15px;
	margin-bottom: var(--wp--preset--spacing--s-3);
	max-width: 44ch;
}

.asv-dialog {
	background: var(--wp--preset--color--base);
	border: 0;
	border-radius: var(--wp--custom--radius--xl);
	box-shadow: var(--wp--preset--shadow--lg);
	color: var(--wp--preset--color--contrast);
	max-height: min(88vh, 900px);
	overflow: hidden;
	padding: 0;
	width: min(560px, calc(100vw - 32px));
}

:root .asv-dialog:modal {
	margin: auto;
	max-width: calc(100% - 6px - 2em);
}

.asv-dialog:focus-visible {
	outline: none;
}

.asv-dialog::backdrop {
	backdrop-filter: blur(2px);
	background: rgba(20, 22, 26, 0.45);
}

.asv-dialog:not([open]) .asv-dialog__close {
	display: none;
}

.asv-dialog__body {
	max-height: inherit;
	overflow-y: auto;
}

.asv-dialog .asv-form__form,
.asv-dialog .asv-form__done {
	border: 0;
	border-radius: var(--wp--custom--radius--xl);
}

.asv-booking {
	width: min(720px, calc(100vw - 32px));
}

.asv-booking__form,
.asv-booking__done {
	max-height: inherit;
	overflow-y: auto;
}

.asv-booking__form {
	display: flex;
	flex-direction: column;
}

.asv-booking__head {
	align-items: flex-start;
	background: var(--wp--preset--color--base);
	border-bottom: 1px solid var(--wp--preset--color--line);
	display: flex;
	gap: var(--wp--preset--spacing--s-5);
	padding: var(--wp--preset--spacing--s-5) var(--wp--preset--spacing--s-6) var(--wp--preset--spacing--s-4);
	position: sticky;
	top: 0;
	z-index: 2;
}

.asv-booking__head-copy {
	flex: 1;
	min-width: 0;
}

.asv-booking__title {
	font-family: var(--wp--preset--font-family--geist);
	font-size: 26px;
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1.2;
	margin: 0;
}

.asv-booking__lede {
	color: var(--wp--preset--color--muted);
	font-size: 14px;
	line-height: 1.55;
	margin: var(--wp--preset--spacing--s-2) 0 0;
	max-width: 52ch;
	text-wrap: pretty;
}

.asv-booking__close {
	background: transparent;
	border: 0;
	border-radius: var(--wp--custom--radius--sm);
	color: var(--wp--preset--color--muted);
	cursor: pointer;
	display: inline-flex;
	flex-shrink: 0;
	margin: -6px -6px 0 0;
	padding: var(--wp--preset--spacing--s-2);
	transition: color var(--wp--custom--duration--fast) var(--wp--custom--ease--out), background var(--wp--custom--duration--fast) var(--wp--custom--ease--out);
}

.asv-booking__close:hover {
	background: var(--wp--preset--color--base-2);
	color: var(--wp--preset--color--contrast);
}

.asv-booking__section {
	padding: var(--wp--preset--spacing--s-5) var(--wp--preset--spacing--s-6);
}

.asv-booking__section + .asv-booking__section {
	border-top: 1px solid var(--wp--preset--color--line);
}

.asv-booking__choose {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--s-5);
}

.asv-booking__block > .asv-form__label,
.asv-booking__group-label {
	display: block;
}

.asv-booking__block > .asv-form__error {
	margin-top: var(--wp--preset--spacing--s-2);
}

.asv-booking__days {
	display: flex;
	gap: var(--wp--preset--spacing--s-2);
	-webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent 100%);
	mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent 100%);
	margin-top: var(--wp--preset--spacing--s-3);
	overflow-x: auto;
	padding-bottom: var(--wp--preset--spacing--s-2);
	scroll-snap-type: x proximity;
	scrollbar-width: none;
}

.asv-booking__days::-webkit-scrollbar {
	display: none;
}

.asv-booking__day {
	align-items: center;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: var(--wp--custom--radius--md);
	cursor: pointer;
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	gap: 3px;
	min-width: 78px;
	padding: 10px 14px;
	position: relative;
	scroll-snap-align: start;
	transition: border-color var(--wp--custom--duration--fast) var(--wp--custom--ease--out), background var(--wp--custom--duration--fast) var(--wp--custom--ease--out);
}

.asv-booking__day input,
.asv-booking__slot input {
	cursor: inherit;
	height: 100%;
	inset: 0;
	margin: 0;
	opacity: 0;
	position: absolute;
	width: 100%;
}

.asv-booking__day-name {
	color: var(--wp--preset--color--muted);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
}

.asv-booking__day-date {
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--geist);
	font-size: 15px;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

.asv-booking__day:hover,
.asv-booking__slot:hover {
	border-color: var(--wp--preset--color--faint);
}

.asv-booking__day:has(input:checked),
.asv-booking__slot:has(input:checked) {
	background: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
}

.asv-booking__day:has(input:checked) .asv-booking__day-name,
.asv-booking__day:has(input:checked) .asv-booking__day-date {
	color: var(--wp--preset--color--base);
}

.asv-booking__day:has(input:focus-visible),
.asv-booking__slot:has(input:focus-visible) {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

.asv-booking__slots {
	display: grid;
	gap: var(--wp--preset--spacing--s-2);
	grid-template-columns: repeat(4, 1fr);
	margin-top: var(--wp--preset--spacing--s-3);
}

.asv-booking__slots:not(:has(.asv-booking__slot)) {
	display: none;
}

.asv-booking__slot {
	align-items: center;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: var(--wp--custom--radius--md);
	color: var(--wp--preset--color--contrast);
	cursor: pointer;
	display: flex;
	font-family: var(--wp--preset--font-family--geist);
	font-size: 15px;
	font-variant-numeric: tabular-nums;
	font-weight: 500;
	justify-content: center;
	letter-spacing: -0.01em;
	padding: 12px 8px;
	position: relative;
	transition: border-color var(--wp--custom--duration--fast) var(--wp--custom--ease--out), background var(--wp--custom--duration--fast) var(--wp--custom--ease--out), color var(--wp--custom--duration--fast) var(--wp--custom--ease--out);
}

.asv-booking__note {
	color: var(--wp--preset--color--muted);
	font-size: 14px;
	line-height: 1.55;
	margin: var(--wp--preset--spacing--s-4) 0 0;
}

.asv-booking__foot {
	background: var(--wp--preset--color--base);
	border-top: 1px solid var(--wp--preset--color--line);
	bottom: 0;
	margin-top: auto;
	padding: var(--wp--preset--spacing--s-4) var(--wp--preset--spacing--s-6) var(--wp--preset--spacing--s-5);
	position: sticky;
	z-index: 2;
}

.asv-booking__foot::before {
	background: linear-gradient(to top, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
	bottom: 100%;
	content: "";
	height: 28px;
	left: 0;
	pointer-events: none;
	position: absolute;
	right: 0;
}

.asv-booking__foot .asv-form__message {
	margin: 0 0 var(--wp--preset--spacing--s-3);
}

.asv-booking__actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--s-3);
}

.asv-booking__actions .asv-form__button--secondary {
	margin-left: auto;
}

.asv-booking__privacy {
	color: var(--wp--preset--color--faint);
	display: block;
	font-size: 13px;
	margin-top: var(--wp--preset--spacing--s-3);
}

.asv-booking__done {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--s-3);
	padding: var(--wp--preset--spacing--s-8) var(--wp--preset--spacing--s-6);
	text-align: center;
}

.asv-booking__summary {
	color: var(--wp--preset--color--primary);
	font-family: var(--wp--preset--font-family--geist);
	font-size: 17px;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.asv-booking__done-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--s-3);
	justify-content: center;
	margin-top: var(--wp--preset--spacing--s-3);
}

@media (scripting: none) {
	.asv-dialog:target {
		display: block;
		margin: var(--wp--preset--spacing--s-6) auto 0;
		max-height: none;
		position: static;
	}
}

@media (pointer: fine) {
	.asv-booking__days {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
		-webkit-mask-image: none;
		mask-image: none;
		overflow: visible;
		padding-bottom: 0;
		scroll-snap-type: none;
	}
}

@media (max-width: 720px) {
	.asv-form__grid {
		grid-template-columns: 1fr;
	}

	.asv-form__form {
		padding: var(--wp--preset--spacing--s-5);
	}
}

@media (max-width: 600px) {
	.asv-booking,
	:root .asv-booking:modal {
		border-radius: var(--wp--custom--radius--xl) var(--wp--custom--radius--xl) 0 0;
		margin: auto 0 0;
		max-height: 92dvh;
		max-width: none;
		width: 100%;
	}

	.asv-booking__head {
		padding: var(--wp--preset--spacing--s-4) var(--wp--preset--spacing--s-5);
	}

	.asv-booking__title {
		font-size: 22px;
	}

	.asv-booking__section {
		padding: var(--wp--preset--spacing--s-4) var(--wp--preset--spacing--s-5);
	}

	.asv-booking__choose {
		gap: var(--wp--preset--spacing--s-4);
	}

	.asv-booking__slots {
		grid-template-columns: repeat(3, 1fr);
	}

	.asv-booking__foot {
		padding: var(--wp--preset--spacing--s-4) var(--wp--preset--spacing--s-5) calc(var(--wp--preset--spacing--s-4) + env(safe-area-inset-bottom));
	}

	.asv-booking__actions > * {
		flex: 1 1 auto;
	}
}

@media (forced-colors: active) {
	.asv-form__form,
	.asv-form__done,
	.asv-dialog,
	.asv-booking__day,
	.asv-booking__slot {
		border: 1px solid CanvasText;
	}

	.asv-form__input:focus {
		outline: 2px solid Highlight;
	}

	.asv-form__check input:checked,
	.asv-booking__day:has(input:checked),
	.asv-booking__slot:has(input:checked) {
		background: Highlight;
		border-color: Highlight;
		color: HighlightText;
		forced-color-adjust: none;
	}

	.asv-booking__day:has(input:checked) .asv-booking__day-name,
	.asv-booking__day:has(input:checked) .asv-booking__day-date {
		color: HighlightText;
	}
}
