/* Réplica estructural de Precio + Cotizar por WhatsApp.
   Los valores visuales son controlados por Elementor. */

.esg-price-cta-widget {
	display: flex;
	flex-direction: column;
}

.esg-price-block {
	display: flex;
	flex-direction: column;
}

.esg-price-title {
	margin: 0;
}

.esg-price-note {
	margin: 0;
}

.esg-whatsapp-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	cursor: pointer;
	box-sizing: border-box;
}

.esg-whatsapp-btn svg {
	flex-shrink: 0;
}

.esg-location-note {
	display: flex;
	align-items: center;
	gap: 6px;
}

.esg-location-note svg {
	flex-shrink: 0;
}

.eme-atc-direct-btn {
	position: relative;
}

.eme-atc-direct-btn.is-loading {
	cursor: wait;
	opacity: .88;
	pointer-events: none;
}

.eme-atc-direct-btn.is-loading > svg,
.eme-atc-direct-btn.is-added > svg {
	display: none;
}

.eme-atc-direct-btn.is-loading::before {
	animation: eme-atc-spin .72s linear infinite;
	border: 2px solid currentColor;
	border-radius: 50%;
	border-right-color: transparent;
	content: '';
	display: block;
	height: 18px;
	width: 18px;
}

.eme-atc-direct-btn.is-added {
	animation: eme-atc-button-success .34s ease both;
}

.eme-atc-direct-btn.is-added::before {
	animation: eme-atc-check-in .34s ease both;
	content: '✓';
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
}

.eme-atc-feedback {
	align-items: center;
	border: 1px solid transparent;
	border-radius: 10px;
	display: none;
	font-size: 14px;
	gap: 16px;
	justify-content: space-between;
	line-height: 1.4;
	margin-top: 12px;
	padding: 11px 14px;
}

.eme-atc-feedback.is-visible {
	animation: eme-atc-feedback-in .35s ease both;
	display: flex;
}

.eme-atc-feedback.is-success {
	background: #eaf8f3;
	border-color: #bfe7d7;
	color: #176b4f;
}

.eme-atc-feedback.is-error {
	background: #fff0f0;
	border-color: #f1c4c4;
	color: #982f2f;
}

.eme-atc-feedback__message::before {
	content: '✓';
	font-weight: 700;
	margin-right: 8px;
}

.eme-atc-feedback.is-error .eme-atc-feedback__message::before {
	content: '!';
}

.eme-atc-feedback__link {
	color: currentColor;
	font-weight: 600;
	white-space: nowrap;
}

@keyframes eme-atc-spin {
	to { transform: rotate(360deg); }
}

@keyframes eme-atc-button-success {
	0% { transform: scale(1); }
	50% { transform: scale(1.018); }
	100% { transform: scale(1); }
}

@keyframes eme-atc-check-in {
	0% { opacity: 0; transform: scale(.5); }
	100% { opacity: 1; transform: scale(1); }
}

@keyframes eme-atc-feedback-in {
	0% { opacity: 0; transform: translateY(-8px); }
	100% { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	.eme-atc-direct-btn.is-loading::before,
	.eme-atc-direct-btn.is-added,
	.eme-atc-direct-btn.is-added::before,
	.eme-atc-feedback.is-visible {
		animation-duration: .01ms;
		animation-iteration-count: 1;
	}
}
