#callback-popup-open {
	position: fixed;
	right: calc(50px + env(safe-area-inset-right, 0px));
	bottom: calc(50px + env(safe-area-inset-bottom, 0px));
	z-index: 120;
	box-sizing: border-box;
	width: 3.25rem;
	height: 3.25rem;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #01559c;
	color: #fff;
	box-shadow: 0 0 0 3px rgb(1 85 156 / 22%), 0 3px 12px rgb(0 0 0 / 18%);
	font-size: 1.2rem;
	cursor: pointer;
}

#callback-popup-open:not([hidden]) {
	display: grid;
	place-items: center;
}

#callback-popup-open:hover {
	background: #00447d;
}

#callback-popup-open:focus-visible {
	outline: 2px solid #01559c;
	outline-offset: 5px;
}

#callback-popup-open:not([hidden])::before,
#callback-popup-open:not([hidden])::after {
	position: absolute;
	inset: -3px;
	border: 2px solid rgb(1 85 156 / 45%);
	border-radius: 50%;
	content: '';
	pointer-events: none;
	animation: callback-popup-ring 2.8s ease-out infinite;
}

#callback-popup-open:not([hidden])::after {
	animation-delay: -1.4s;
}

@keyframes callback-popup-ring {
	from {
		transform: scale(1);
		opacity: 0.85;
	}

	to {
		transform: scale(1.7);
		opacity: 0;
	}
}

#callback-popup {
	position: fixed;
	inset: 0;
	box-sizing: border-box;
	width: min(30rem, calc(100% - 2rem));
	max-height: calc(100% - 2rem);
	margin: auto;
	padding: 1.5rem;
	overflow: auto;
	border: 0;
	border-radius: 0.5rem;
	background: #fff;
	color: #212529;
}

#callback-popup::backdrop {
	background: rgb(0 0 0 / 55%);
}

#callback-popup .callback-popup-logo {
	display: block;
	width: 7rem;
	height: auto;
	margin: 0 auto 0.75rem;
}

#callback-popup-title {
	margin: 0 0 1.25rem;
	font-size: 1.5rem;
	line-height: 1.25;
	text-align: center;
}

#callback-popup .callback-popup-close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	width: 2.75rem;
	height: 2.75rem;
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

#callback-popup .contact_form {
	margin: 0;
}

#callback-popup .callback-popup-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
}

#callback-popup .callback-popup-field-wide {
	grid-column: 1 / -1;
}

#callback-popup .callback-popup-field label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

#callback-popup .callback-popup-field input,
#callback-popup .callback-popup-field textarea {
	display: block;
	box-sizing: border-box;
	width: 100%;
	margin: 0;
}

#callback-popup .callback-popup-field textarea {
	height: 180px;
	min-height: 8rem;
	resize: vertical;
}

#callback-popup .contact_form .btn {
	width: min(195px, 100%);
	margin: 1.125rem auto 0;
}

#callback-popup .callback-popup-response:not(:empty) {
	margin-top: 0.75rem;
	text-align: center;
}

#callback-popup .callback-popup-response[data-result="error"] {
	color: #a12525;
}

#callback-popup .callback-popup-response[data-result="success"] {
	color: #286334;
}

@media (max-width: 440px) {
	#callback-popup .callback-popup-fields {
		grid-template-columns: minmax(0, 1fr);
	}

	#callback-popup .callback-popup-field textarea {
		height: 9rem;
	}
}
