/*
 * Finestre senza Elementor (inc/ifs-popup.php). Valori del popup Elementor 32
 * ("Apply to Work With Us", uploads/elementor/css/post-32.css).
 *
 * @author    Wave Digital <info@wavedigital.it>
 * @copyright Wave Srl, Firenze
 * @link      https://www.wavedigital.it
 */
html.ifs-popup-open {
	overflow: hidden;
}
dialog.ifs-popup {
	box-sizing: border-box;
	width: 640px;
	max-width: 100%;
	max-height: 100%;
	margin: auto;
	padding: 0;
	overflow: visible;
	border: 0;
	background: transparent;
	color: #2e2e2e;
}
dialog.ifs-popup::backdrop {
	background-color: rgba(0, 0, 0, .8);
}
dialog.ifs-popup[open] {
	animation: ifs-popup-in .3s ease;
}
@keyframes ifs-popup-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}
dialog.ifs-popup .ifs-popup__box {
	position: relative;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-height: calc(100vh - 20px);
	overflow-y: auto;
	padding: 60px;
	background-color: #fff;
	box-shadow: 2px 8px 23px 3px rgba(0, 0, 0, .2);
}
dialog.ifs-popup .ifs-popup__close {
	position: absolute;
	top: 15px;
	right: 15px;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 30px;
	height: 30px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: #1f2124;
	cursor: pointer;
}
dialog.ifs-popup .ifs-popup__close:hover,
dialog.ifs-popup .ifs-popup__close:focus {
	background: none;
	color: #898766;
}
dialog.ifs-popup .ifs-popup__close svg {
	display: block;
	width: 15px;
	height: 20px;
	fill: currentColor;
}
dialog.ifs-popup .ifs-popup__title {
	margin: 0;
	padding: 0;
	font-family: "Lato", sans-serif;
	font-size: 32px;
	font-weight: 600;
	line-height: 36px;
	text-transform: uppercase;
	text-align: center;
	color: #8c8464;
}
dialog.ifs-popup .ifs-popup__text {
	font-family: "Kanit", sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 27px;
	color: #2e2e2e;
}
dialog.ifs-popup .ifs-popup__text p {
	margin: 0 0 14.4px;
}
dialog.ifs-popup .ifs-popup__form .ifsf-wrap {
	--ifsf-field-h: 43px;
	--ifsf-field-fs: 16px;
	--ifsf-field-bg: #f4f2e4;
	--ifsf-border: #8c8464;
	--ifsf-text: #444;
	--ifsf-radius: 30px;
	--ifsf-radius-box: 18px;
	--ifsf-label: #8c8464;
	--ifsf-muted: #57554c;
	--ifsf-error: #f00;
	--ifsf-accent: #8c8464;
	--ifsf-btn-bg: #8c8464;
	--ifsf-accent-dark: #736c52;
	--ifsf-btn-border: #8c8464;
	--ifsf-btn-text: #fff;
	--ifsf-btn-radius: 30px;
}
/* Finestra grande con un testo legale (es. i Termini), come il popup 2152 */
dialog.ifs-popup--large {
	width: 65vw;
}
dialog.ifs-popup--large .ifs-popup__box {
	height: 90vh;
	max-height: 90vh;
	padding: 20px;
}
@media (max-width: 1024px) {
	dialog.ifs-popup--large {
		width: 90vw;
	}
}
@media (max-width: 767px) {
	dialog.ifs-popup--large {
		width: 87vw;
	}
	dialog.ifs-popup .ifs-popup__box {
		padding: 15px;
	}
	/* Come oggi: su mobile il modulo è largo al massimo 320px */
	dialog.ifs-popup .ifs-popup__form {
		width: 320px;
		max-width: 100%;
	}
	dialog.ifs-popup .ifs-popup__close {
		top: 5px;
		right: 5px;
	}
}
