/* TidyCal iframe: their embed.js resizes height; we only own the frame. */
.spl-tidycal,
.spl-tidycal .tidycal-embed {
	display: block;
	width: 100%;
	min-width: 0;
}

.spl-tidycal iframe.tidycal-embed {
	display: block;
	width: 100%;
	min-width: 100%;
	min-height: 640px;
	border: 0;
	border-radius: 12px;
	background-color: #ffffff;
}

html[data-theme="light"] .spl-tidycal iframe.tidycal-embed {
	background-color: #ffffff;
	color-scheme: light;
}

body.spl-book-modal-open {
	overflow: hidden;
}

.spl-book-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.spl-book-modal.is-open {
	display: flex;
}

.spl-book-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 10, 16, 0.72);
}

.spl-book-modal__panel {
	position: relative;
	z-index: 1;
	width: min(760px, 100%);
	max-height: min(92vh, 900px);
	overflow: auto;
	padding: 28px 24px 20px;
	border-radius: 20px;
	border: 1px solid #2a2e37;
	background: #171a21;
	color: #d7dbe3;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.spl-book-modal__title {
	margin: 0 40px 16px 0;
	font-family: Poppins, sans-serif;
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: #ffffff;
}

.spl-book-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid #2a2e37;
	border-radius: 10px;
	background: transparent;
	color: #d7dbe3;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
}

.spl-book-modal__close:hover {
	border-color: #ffffff;
	color: #ffffff;
}

.spl-book-modal__body {
	min-height: 520px;
}

html[data-theme="light"] .spl-book-modal__panel {
	background: #ffffff;
	border-color: #d5d9e2;
	color: #3a404c;
}

html[data-theme="light"] .spl-book-modal__title {
	color: #12151c;
}

html[data-theme="light"] .spl-book-modal__close {
	border-color: #d5d9e2;
	color: #3a404c;
}

html[data-theme="light"] .spl-book-modal__close:hover {
	border-color: #12151c;
	color: #12151c;
}

@media (max-width: 767px) {
	.spl-book-modal {
		padding: 12px;
	}

	.spl-book-modal__panel {
		width: 100%;
		max-height: 96vh;
		padding: 56px 12px 12px;
		border-radius: 16px;
	}
}
