/* AZ Popup Manager — Popup Styles
 * Selectores con .az-pm-overlay y !important para sobreescribir estilos de tema. */

/* ---- Overlay ---- */
.az-pm-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 999999;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.az-pm-overlay--open {
	display: flex;
}

/* ---- Modal container ---- */
.az-pm-overlay .az-pm-modal {
	position: relative;
	background: #ece8e0;
	width: 100%;
	max-width: 490px;
	padding: 52px 44px 44px;
	text-align: center;
	box-sizing: border-box;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* ---- Close button ---- */
.az-pm-overlay .az-pm-close {
	position: absolute;
	top: 14px;
	right: 18px;
	background: none !important;
	border: none !important;
	font-size: 24px !important;
	line-height: 1 !important;
	cursor: pointer;
	color: #1a1a1a !important;
	padding: 0 !important;
	font-family: Arial, sans-serif !important;
	width: auto !important;
	height: auto !important;
	box-shadow: none !important;
}

.az-pm-overlay .az-pm-close:hover {
	color: #000 !important;
	background: none !important;
}

/* ---- Label superior ---- */
.az-pm-overlay .az-pm-label {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: #2a2a2a;
	margin: 0 0 14px;
}

/* ---- Título ---- */
.az-pm-overlay .az-pm-title {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 46px;
	font-weight: 400;
	line-height: 1.05;
	color: #1a1a1a;
	margin: 0 0 22px;
	padding: 0;
}

.az-pm-overlay .az-pm-title em {
	font-style: italic;
	font-weight: 400;
}

/* ---- Divisor teal ---- */
.az-pm-overlay .az-pm-divider {
	width: 62%;
	height: 1px;
	background: #4aaba0;
	margin: 0 auto 22px;
}

/* ---- Descripción ---- */
.az-pm-overlay .az-pm-description {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	color: #555;
	line-height: 1.55;
	margin: 0 auto 26px;
	max-width: 320px;
}

/* ---- Campos ---- */
.az-pm-overlay .az-pm-field {
	margin-bottom: 10px;
}

.az-pm-overlay .az-pm-field input[type="text"],
.az-pm-overlay .az-pm-field input[type="email"],
.az-pm-overlay .az-pm-field input[type="tel"] {
	width: 100% !important;
	height: 48px !important;
	border: 1px solid #ccc8c0 !important;
	background: #ffffff !important;
	padding: 0 16px !important;
	font-size: 14px !important;
	color: #555 !important;
	font-family: Arial, Helvetica, sans-serif !important;
	outline: none !important;
	box-sizing: border-box !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	margin: 0 !important;
	line-height: normal !important;
}

.az-pm-overlay .az-pm-field input::placeholder {
	color: #aaa;
	opacity: 1;
}

.az-pm-overlay .az-pm-field input:focus {
	border-color: #4aaba0 !important;
}

/* ---- Campo teléfono ---- */
.az-pm-overlay .az-pm-field--phone {
	display: flex;
	align-items: stretch;
}

.az-pm-overlay .az-pm-phone-prefix {
	position: relative;
	flex-shrink: 0;
	border: 1px solid #ccc8c0;
	border-right: none;
	background-color: #ffffff;
	background-repeat: no-repeat;
	background-position: 12px center;
	background-size: 22px 14px;
	display: flex;
	align-items: center;
	width: 64px;
	box-sizing: border-box;
}

/* Banderas SVG inline por atributo data-country */
.az-pm-overlay .az-pm-phone-prefix[data-country="py"] { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 4' preserveAspectRatio='none'><rect width='6' height='4' fill='%23ffffff'/><rect width='6' height='1.333' fill='%23D52B1E'/><rect y='2.667' width='6' height='1.333' fill='%230038A8'/></svg>"); }
.az-pm-overlay .az-pm-phone-prefix[data-country="ar"] { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 4' preserveAspectRatio='none'><rect width='6' height='1.333' fill='%2374ACDF'/><rect y='1.333' width='6' height='1.333' fill='%23ffffff'/><rect y='2.667' width='6' height='1.333' fill='%2374ACDF'/></svg>"); }
.az-pm-overlay .az-pm-phone-prefix[data-country="br"] { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 4' preserveAspectRatio='none'><rect width='6' height='4' fill='%23009739'/><polygon points='3,0.5 5.5,2 3,3.5 0.5,2' fill='%23FEDD00'/><circle cx='3' cy='2' r='0.7' fill='%23002776'/></svg>"); }
.az-pm-overlay .az-pm-phone-prefix[data-country="cl"] { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 4' preserveAspectRatio='none'><rect width='6' height='2' fill='%23ffffff'/><rect y='2' width='6' height='2' fill='%23D52B1E'/><rect width='2' height='2' fill='%230039A6'/></svg>"); }
.az-pm-overlay .az-pm-phone-prefix[data-country="uy"] { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 4' preserveAspectRatio='none'><rect width='6' height='4' fill='%23ffffff'/><rect y='0.444' width='6' height='0.444' fill='%230038A8'/><rect y='1.333' width='6' height='0.444' fill='%230038A8'/><rect y='2.222' width='6' height='0.444' fill='%230038A8'/><rect y='3.111' width='6' height='0.444' fill='%230038A8'/><rect width='2.4' height='2' fill='%23ffffff'/></svg>"); }
.az-pm-overlay .az-pm-phone-prefix[data-country="bo"] { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 4' preserveAspectRatio='none'><rect width='6' height='1.333' fill='%23D52B1E'/><rect y='1.333' width='6' height='1.333' fill='%23F9E300'/><rect y='2.667' width='6' height='1.333' fill='%23007A33'/></svg>"); }
.az-pm-overlay .az-pm-phone-prefix[data-country="us"] { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 4' preserveAspectRatio='none'><rect width='6' height='4' fill='%23ffffff'/><rect y='0' width='6' height='0.31' fill='%23B22234'/><rect y='0.62' width='6' height='0.31' fill='%23B22234'/><rect y='1.23' width='6' height='0.31' fill='%23B22234'/><rect y='1.85' width='6' height='0.31' fill='%23B22234'/><rect y='2.46' width='6' height='0.31' fill='%23B22234'/><rect y='3.08' width='6' height='0.31' fill='%23B22234'/><rect y='3.69' width='6' height='0.31' fill='%23B22234'/><rect width='2.4' height='2.15' fill='%233C3B6E'/></svg>"); }
.az-pm-overlay .az-pm-phone-prefix[data-country="es"] { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 4' preserveAspectRatio='none'><rect width='6' height='4' fill='%23C60B1E'/><rect y='1' width='6' height='2' fill='%23FFC400'/></svg>"); }

.az-pm-overlay .az-pm-country-select {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	border: none !important;
	background: transparent !important;
	color: transparent !important;
	font-size: 0 !important;
	cursor: pointer !important;
	outline: none !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
}

/* Las opciones del dropdown sí deben verse */
.az-pm-overlay .az-pm-country-select option {
	color: #333 !important;
	background: #fff !important;
	font-size: 13px !important;
}

.az-pm-overlay .az-pm-phone-prefix::after {
	content: '';
	position: absolute;
	right: 8px;
	top: 50%;
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid #888;
	transform: translateY(-50%);
	pointer-events: none;
}

.az-pm-overlay .az-pm-field--phone input[type="tel"] {
	flex: 1 !important;
	border-left: 1px solid #ccc8c0 !important;
}

/* ---- Botón CTA (forzar override de tema) ---- */
.az-pm-overlay .az-pm-submit,
.az-pm-overlay button.az-pm-submit,
.az-pm-overlay .az-pm-form .az-pm-submit {
	width: 100% !important;
	height: 52px !important;
	background: #4aaba0 !important;
	background-color: #4aaba0 !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 0 !important;
	font-family: Arial, Helvetica, sans-serif !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: 3px !important;
	text-transform: uppercase !important;
	cursor: pointer !important;
	margin-top: 4px !important;
	padding: 0 16px !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	box-shadow: none !important;
	text-shadow: none !important;
	outline: none !important;
	line-height: 52px !important;
	display: block !important;
}

.az-pm-overlay .az-pm-submit:hover,
.az-pm-overlay button.az-pm-submit:hover {
	background: #3d9990 !important;
	background-color: #3d9990 !important;
	color: #ffffff !important;
}

.az-pm-overlay .az-pm-submit:focus,
.az-pm-overlay button.az-pm-submit:focus,
.az-pm-overlay .az-pm-submit:active {
	background: #4aaba0 !important;
	color: #ffffff !important;
	outline: none !important;
}

.az-pm-overlay .az-pm-submit:disabled {
	background: #8ecbc5 !important;
	background-color: #8ecbc5 !important;
	cursor: not-allowed !important;
}

/* ---- Mensaje de feedback ---- */
.az-pm-overlay .az-pm-message {
	margin-top: 12px;
	font-size: 13px;
	font-family: Arial, Helvetica, sans-serif;
	padding: 10px 14px;
	text-align: center;
}

.az-pm-overlay .az-pm-message--success {
	color: #1d6b62;
	background: #e4f4f2;
}

.az-pm-overlay .az-pm-message--error {
	color: #b72b2b;
	background: #fde8e6;
}

/* ---- Botón trigger generado por shortcode ---- */
.az-pm-trigger {
	cursor: pointer;
}
