/* Booking from any page (WBAMS\Appointment\BookingPanel, assets/js/booking-panel.js): the panel the booking opens in,
   over the page. On a computer it slides in from the right; on a phone it is a sheet over the whole screen. In the
   site's colours (the theme's --brand-primary), dark with the theme's dark mode (body.dark-mode). */
.ebp {
	--ebp-accent: var(--brand-primary, #b0532a);
	--ebp-bg: #fffaf7;
	--ebp-ink: #2a2129;
	--ebp-line: rgba(42, 33, 41, .1);
	--ebp-ease: cubic-bezier(.22, .9, .32, 1);
	position: fixed; inset: 0; z-index: 100000;
}
.ebp[hidden] { display: none; }
body.dark-mode .ebp { --ebp-bg: #1d191e; --ebp-ink: #f2edf0; --ebp-line: rgba(255, 255, 255, .1); }
.ebp__backdrop { position: absolute; inset: 0; background: rgba(20, 14, 18, .48); opacity: 0; transition: opacity .26s var(--ebp-ease); }
.ebp__dialog {
	position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); display: flex; flex-direction: column; outline: none;
	background: var(--ebp-bg); color: var(--ebp-ink); box-shadow: -18px 0 48px rgba(20, 14, 18, .22);
	transform: translateX(104%); transition: transform .32s var(--ebp-ease);
}
.ebp.is-open .ebp__backdrop { opacity: 1; }
.ebp.is-open .ebp__dialog { transform: none; }
.ebp__head {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 14px 20px; border-bottom: 1px solid var(--ebp-line);
	background: linear-gradient(180deg, color-mix(in srgb, var(--ebp-accent) 9%, var(--ebp-bg)), var(--ebp-bg));
}
.ebp__title { font-size: 18px; font-weight: 700; }
.ebp__close {
	display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ebp-line); background: transparent;
	color: var(--ebp-ink); cursor: pointer; transition: background .2s, border-color .2s;
}
.ebp__close:hover { background: color-mix(in srgb, var(--ebp-accent) 12%, transparent); border-color: color-mix(in srgb, var(--ebp-accent) 40%, transparent); }
.ebp__close:focus-visible { outline: 3px solid color-mix(in srgb, var(--ebp-accent) 45%, transparent); outline-offset: 2px; }
.ebp__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ebp__body { position: relative; flex: 1; min-height: 0; }
.ebp__frame { display: block; width: 100%; height: 100%; border: 0; background: var(--ebp-bg); transition: opacity .2s; }
.ebp__loading {
	position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
	color: color-mix(in srgb, var(--ebp-ink) 70%, transparent); font-size: 15px;
}
.ebp__spinner {
	width: 36px; height: 36px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--ebp-accent) 22%, transparent); border-top-color: var(--ebp-accent);
	animation: ebp-spin .8s linear infinite;
}
.ebp__dialog.is-loading .ebp__frame { opacity: 0; }
.ebp__dialog.is-loading .ebp__loading { display: flex; }
html.ebp-open, html.ebp-open body { overflow: hidden; }
@keyframes ebp-spin { to { transform: rotate(360deg); } }
/* A phone: the whole screen, sliding up. */
@media (max-width: 640px) {
	.ebp__dialog { width: 100vw; transform: translateY(104%); box-shadow: none; }
	.ebp__head { padding: 10px 10px 10px 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.ebp__backdrop, .ebp__dialog { transition: none; }
	.ebp__spinner { animation-duration: 2s; }
}
