/* Escape Booking Requests */

/* Header side tab: the theme hid it at the top of the page (where the old RCM
   iframe panel slid out). There is no panel now, so keep the tab visible. */
#rcm-widget.ebr-header.fc-active .rcm-widget-wrap a.regular-booking:not(.scroll-on) {
	right: 25px;
}

/* Inline form on the /book/ page */
.ebr-inline {
	max-width: 820px;
	margin: 0 auto 48px;
	scroll-margin-top: 120px;
}

.ebr-fallback {
	padding: 16px;
	border: 1px solid #d5dae1;
	border-radius: 10px;
	background: #fff;
}

/* Modal */
.ebr-dialog {
	position: fixed;
	inset: 0;
	margin: auto; /* theme reset zeroes the UA dialog margin, which un-centres it */
	width: min(780px, calc(100vw - 32px));
	max-width: none;
	height: fit-content;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	padding: 0;
	border: 0;
	border-radius: 14px;
	background: transparent;
	overflow: auto;
	overscroll-behavior: contain;
	/* Still scrolls (wheel, touch, keyboard) on short screens; just no visible scrollbar. */
	scrollbar-width: none;
}

.ebr-dialog::-webkit-scrollbar {
	display: none;
}

.ebr-dialog::backdrop {
	background: rgba(0, 45, 116, 0.6);
}

html:has(.ebr-dialog[open]) {
	overflow: hidden;
}

.ebr-dialog .ebr-close {
	position: sticky;
	top: 10px;
	z-index: 2;
	float: right;
	margin: 10px 10px -50px 0;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #002d74;
	font-size: 28px;
	line-height: 40px;
	text-align: center;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
}

.ebr-dialog .ebr-close:hover,
.ebr-dialog .ebr-close:focus-visible {
	background: #002d74;
	color: #fff;
	outline: none;
}

@media (max-width: 600px) {
	.ebr-dialog {
		width: 100vw;
		height: 100vh;
		height: 100dvh;
		max-height: none;
		margin: 0;
		border-radius: 0;
		background: #fff;
	}
}
