/* Stronger than WooCommerce's ".woocommerce img { height: auto; max-width: 100% }". */
img.crl-logo,
.woocommerce img.crl-logo,
.woocommerce-page img.crl-logo {
	display: inline-block;
	height: 22px;
	width: auto;
	max-width: 72px;
	margin-right: 8px;
	vertical-align: middle;
}
.crl-delay {
	display: block;
	margin-top: 2px;
	font-size: 0.85em;
	opacity: 0.75;
}
.crl-pickup {
	margin: 10px 0 6px;
}
.crl-pickup-open,
.crl-pickup-change {
	margin-bottom: 8px;
}
.crl-pickup-point {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 12px;
	margin-bottom: 8px;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 4px;
}

/* Pop-up with the pickup point map */
html.crl-modal-open,
html.crl-modal-open body {
	overflow: hidden !important;
}
.crl-modal[hidden] {
	display: none !important;
}
.crl-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2vh 2vw;
	box-sizing: border-box;
}
.crl-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
}
.crl-modal-panel {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(1200px, 96vw);
	height: min(860px, 94vh);
	background: #fff;
	color: #222;
	border-radius: 8px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
	overflow: hidden;
}
.crl-modal-head {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	padding: 6px 8px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
	flex: none;
}
.crl-modal .crl-modal-close {
	flex: none;
	width: 40px;
	height: 40px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #333;
	font-size: 28px;
	line-height: 40px;
	text-align: center;
	cursor: pointer;
	box-shadow: none;
}
.crl-modal .crl-modal-close:hover,
.crl-modal .crl-modal-close:focus {
	background: rgba(0, 0, 0, 0.08);
	color: #000;
}
.crl-modal-body {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
}
.crl-modal-body > div,
.crl-modal-body iframe {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	border: 0 !important;
	display: block;
}
.crl-modal-body.crl-pickup-error {
	padding: 24px;
}
@media (max-width: 700px) {
	.crl-modal {
		padding: 0;
	}
	.crl-modal-panel {
		width: 100vw;
		height: 100vh;
		height: 100dvh;
		border-radius: 0;
	}
}
