/* Harmoonie Core: the dialog that holds Eventnetic's booking form. */
html.hm-book-open { overflow: hidden; }
.hm-book {
	position: fixed;
	inset: 0;
	margin: auto;
	width: min(640px, calc(100vw - 32px));
	height: fit-content;
	max-height: min(860px, calc(100dvh - 48px));
	padding: 0;
	border: 0;
	border-radius: var(--h-r-xl, 28px);
	background: var(--h-surface, #fff);
	color: var(--h-ink, #222);
	box-shadow: 0 24px 64px rgba(0, 0, 0, .22);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.hm-book:not([open]) { display: none; }
.hm-book::backdrop { background: color-mix(in srgb, var(--h-ink, #222) 55%, transparent); }
.hm-book__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 14px 14px 24px;
	border-bottom: 1px solid var(--h-line, #e5e5e5);
	background: var(--h-surface, #fff);
}
.hm-book__titles { min-width: 0; }
.hm-book__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0; }
.hm-book__sub { margin: 0; font-size: 15px; font-weight: 600; color: var(--h-ink, #222); overflow-wrap: anywhere; }
.hm-book__close {
	flex: none;
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: var(--h-bg, #f4f4f4);
	color: var(--h-ink, #222);
	cursor: pointer;
	transition: transform .12s ease, background-color .15s ease;
}
@media (hover: hover) and (pointer: fine) {
	.hm-book__close:hover { background: var(--h-tint, #eee); }
}
.hm-book__close:active { transform: scale(.94); }
.hm-book__close:focus-visible { outline: 2px solid var(--h-accent, #333); outline-offset: 2px; }
.hm-book__body { overflow: auto; overscroll-behavior: contain; padding: 8px 12px 16px; min-height: 240px; }
@media (max-width: 600px) {
	.hm-book {
		width: 100vw;
		max-width: 100vw;
		height: 100dvh;
		max-height: 100dvh;
		margin: 0;
		inset: 0;
		border-radius: 0;
	}
	.hm-book__head { padding: 10px 10px 10px 18px; }
	.hm-book__body { flex: 1; padding: 4px 4px 24px; }
}
@media (prefers-reduced-motion: no-preference) {
	.hm-book[open] { animation: hm-book-in .22s cubic-bezier(.2, .8, .2, 1); }
}
@keyframes hm-book-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
