/* Booking popup. Full screen on phones, a centred panel from 768 px. */

html.rogass-scroll-lock,
html.rogass-scroll-lock body {
	overflow: hidden;
}

.rogass-dialog {
	width: min(760px, calc(100% - 32px));
	max-height: calc(100dvh - 32px);
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: #ffffff;
	color: #303133;
	box-shadow: 0 24px 80px rgba(20, 29, 66, 0.4);
	overflow: hidden;
}

.rogass-dialog[open] {
	display: flex;
	flex-direction: column;
}

.rogass-dialog::backdrop {
	background: rgba(20, 29, 66, 0.7);
}

.rogass-dialog__header {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 20px 16px 40px;
	border-bottom: 1px solid #dddddd;
	background: #ffffff;
}

/* The theme sizes h2 with higher specificity. */
.rogass-dialog .rogass-dialog__title {
	margin: 0 !important;
	font-size: 22px !important;
	line-height: 1.25 !important;
	color: #1d295b;
}

.rogass-dialog__close {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #1d295b;
	cursor: pointer;
}

.rogass-dialog__close:hover {
	background: #f7f7f7;
}

.rogass-dialog__close:focus-visible {
	outline: 2px solid #f26729;
	outline-offset: 2px;
}

.rogass-dialog__body {
	flex: 1 1 auto;
	padding: 8px 40px 32px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

@media (max-width: 767px) {
	.rogass-dialog {
		width: 100%;
		max-width: 100%;
		height: 100dvh;
		max-height: 100dvh;
		margin: 0;
		border-radius: 0;
	}

	.rogass-dialog__header {
		padding: 8px 8px 8px 20px;
	}

	.rogass-dialog .rogass-dialog__title {
		font-size: 19px !important;
	}

	.rogass-dialog__body {
		padding: 8px 20px 24px;
	}
}
