@font-face {
	font-family: BelforLocatorGabarito;
	font-style: normal;
	font-weight: 400 900;
	font-display: swap;
	src: url("gabarito.woff2") format("woff2");
}

.belfor-locator-count {
	line-height: 1;
}

/* The theme's fixed navigation also appears on pages that open this popup directly. */
#location-modal[is="location-not-found"] {
	z-index: 10000;
}

html.belfor-locator-popup-open {
	overflow: hidden;
}

dialog.belfor-locator-dialog[open] {
	display: block;
	position: fixed;
	inset: 0;
	z-index: 10000;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	height: 100dvh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	overflow: hidden;
	background: transparent;
}

dialog.belfor-locator-dialog::backdrop {
	background: transparent;
}

.belfor-locator-dialog #location-modal {
	position: absolute;
	inset: 0;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	padding: 16px;
	overflow: auto;
	overscroll-behavior: contain;
}

.belfor-locator-dialog #location-modal .modal-content {
	position: relative;
	box-sizing: border-box;
	flex: none;
	width: min(80vw, 100%);
	min-height: min(550px, calc(100vh - 32px));
	height: auto;
	margin: auto;
}

.belfor-locator-dialog #location-modal .modal-content .close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: grid;
	place-items: center;
	box-sizing: border-box;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0 !important;
	background: #fff;
	line-height: 1;
	cursor: pointer;
}

.belfor-locator-dialog #location-modal .modal-content .close:hover,
.belfor-locator-dialog #location-modal .modal-content .close:focus {
	color: #fff;
	background-color: #0061af;
	border-color: #0061af;
}

.belfor-locator-dialog .close:focus-visible {
	outline: 3px solid #0061af;
	outline-offset: 2px;
}

@media (max-width: 768px) {
	.belfor-locator-dialog #location-modal .modal-content {
		width: 100%;
		min-height: 0;
		padding: 52px 20px 24px;
		background-image: none !important;
	}
}
