/* Ajustes de encaje separados para conservar el CSS base estable. */
.apm-popup__dialog picture {
	display: flex;
	height: 100%;
	min-height: 0;
	background: #f3e8d7;
}

@media (min-width: 701px) {
	.apm-popup__dialog {
		min-height: 600px;
	}
}

.apm-popup--success .apm-popup__content > h2,
.apm-popup--success .apm-popup__content > p {
	display: none;
}

.apm-popup__image {
	height: 100%;
	min-height: 0 !important;
	object-fit: contain !important;
}

.apm-popup__form button {
	display: flex;
	margin: 18px auto 0;
}

@media (max-width: 700px) {
	.apm-popup__dialog picture {
		height: auto;
	}

	.apm-popup__image {
		height: auto !important;
		width: 100%;
		object-fit: contain !important;
	}

	.apm-popup--success .apm-popup__content {
		padding: 20px 16px;
	}

	.apm-popup--success .apm-popup__message.is-success {
		padding: 18px 14px;
	}
}

.apm-popup__message.is-success {
	display: flex !important;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 22px 18px;
	border: 1px solid rgba(212, 175, 55, .55);
	border-radius: 12px;
	background: linear-gradient(145deg, #fffdf8, #f8f1df);
	text-align: center;
}

.apm-popup__success-kicker {
	color: #8a6810;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .14em;
}

.apm-popup__success-title {
	max-width: 310px;
	font-family: Georgia, serif;
	font-size: 22px;
	line-height: 1.25;
}

.apm-popup__code-row {
	display: flex;
	width: 100%;
	max-width: 330px;
	overflow: hidden;
	border: 1px dashed #b58c20;
	border-radius: 8px;
	background: #fff;
}

.apm-popup__code-row code {
	flex: 1;
	min-width: 0;
	padding: 13px 10px;
	color: #17243d;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .035em;
	line-height: 1.3;
	white-space: nowrap;
}

.apm-popup__copy {
	flex: 0 0 72px;
	margin: 0 !important;
	padding: 0 14px !important;
	border-radius: 0 !important;
	font-size: 12px;
}

.apm-popup__copy:hover,
.apm-popup__copy:focus,
.apm-popup__form button:hover,
.apm-popup__form button:focus,
.apm-popup__success-cta:hover,
.apm-popup__success-cta:focus {
	background: #b98d18 !important;
	color: #111 !important;
	text-decoration: none !important;
}

.apm-popup__success-terms,
.apm-popup__success-mail {
	color: #5f6470;
	font-size: 12px;
	line-height: 1.4;
}

.apm-popup__returning-text {
	max-width: 310px;
	margin: 2px 0 6px !important;
	color: #525967;
	font-size: 14px;
	line-height: 1.55;
}

.apm-popup__success-cta {
	display: inline-flex;
	justify-content: center;
	width: 100%;
	max-width: 260px;
	padding: 13px 20px;
	border-radius: 7px;
	background: var(--apm-accent);
	color: #111;
	font-weight: 800;
	text-decoration: none;
}
