/**
 * Modal de regalo y marcas en el carrito.
 * Paleta Avanxa: violeta #551D87 (identidad), lima #E3F853 (acción).
 */

.avxg-modal[hidden] {
	display: none;
}

.avxg-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.avxg-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(28, 10, 46, 0.6);
	backdrop-filter: blur(2px);
}

.avxg-modal__box {
	position: relative;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 24px 60px rgba(28, 10, 46, 0.25);
	max-width: 420px;
	width: 100%;
	padding: 32px 28px 28px;
	text-align: center;
	font-family: 'Poppins', 'Inter', sans-serif;
	animation: avxg-pop 0.25s ease-out;
}

@keyframes avxg-pop {
	from { opacity: 0; transform: translateY(12px) scale(0.97); }
	to   { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------------------
   Botones.

   El tema, WooCommerce y el kit global de Elementor estilan todo <button> del
   sitio (bordes, relieve, outline de foco). Los botones del modal se blindan
   contra esa herencia para que se vean igual en cualquier página.
   --------------------------------------------------------------------------- */

.avxg-modal .avxg-modal__close,
.avxg-modal .avxg-modal__cta {
	-webkit-appearance: none;
	appearance: none;
	border: 0 !important;
	box-shadow: none !important;
	text-shadow: none !important;
	background-image: none !important;
	filter: none !important;
	outline: 0 !important;
	font-family: inherit;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.avxg-modal .avxg-modal__close:hover,
.avxg-modal .avxg-modal__close:focus,
.avxg-modal .avxg-modal__close:active,
.avxg-modal .avxg-modal__cta:hover,
.avxg-modal .avxg-modal__cta:focus,
.avxg-modal .avxg-modal__cta:active {
	border: 0 !important;
	box-shadow: none !important;
	background-image: none !important;
	outline: 0 !important;
}

/* El foco por teclado sí se marca, pero con la paleta propia. */
.avxg-modal .avxg-modal__close:focus-visible,
.avxg-modal .avxg-modal__cta:focus-visible {
	box-shadow: 0 0 0 3px rgba(85, 29, 135, 0.35) !important;
}

.avxg-modal .avxg-modal__close {
	position: absolute;
	top: 10px;
	right: 14px;
	width: 34px;
	height: 34px;
	padding: 0;
	border-radius: 50%;
	background-color: transparent !important;
	color: #9b8fab !important;
	font-size: 26px;
	line-height: 1;
}

.avxg-modal .avxg-modal__close:hover {
	background-color: #f3eefa !important;
	color: #551D87 !important;
}

.avxg-modal .avxg-modal__cta {
	border-radius: 999px;
	padding: 12px 34px;
	background-color: #E3F853 !important;
	color: #1c0a2e !important;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
}

.avxg-modal .avxg-modal__cta:hover {
	background-color: #d8ef3f !important;
	transform: translateY(-1px);
}

.avxg-modal .avxg-modal__cta:active {
	transform: none;
}

/* --------------------------------------------------------------------------- */

.avxg-modal__items {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	text-align: left;
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-height: 260px;
	overflow-y: auto;
}

.avxg-modal__item {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #faf8fd;
	border-radius: 10px;
	padding: 10px 12px;
	font-size: 14px;
	line-height: 1.35;
	color: #1c0a2e;
}

.avxg-modal__item img {
	width: 46px;
	height: 46px;
	object-fit: cover;
	border-radius: 8px;
	flex-shrink: 0;
}

/* Un solo regalo: se muestra centrado, sin aspecto de lista. */
.avxg-modal__item:only-child {
	flex-direction: column;
	background: none;
	text-align: center;
	gap: 14px;
	padding: 0;
	font-size: 15px;
	font-weight: 600;
}

.avxg-modal__item:only-child img {
	width: 130px;
	height: auto;
	max-width: 100%;
	border-radius: 10px;
	margin: 0 auto;
}

.avxg-modal__title {
	margin: 0 0 10px;
	font-size: 22px;
	font-weight: 700;
	color: #551D87;
}

.avxg-modal__text {
	margin: 0 0 22px;
	font-size: 15px;
	line-height: 1.5;
	color: #4a4458;
}

body.avxg-modal-open {
	overflow: hidden;
}

/* Marcas en el carrito. */
.avxg-badge {
	display: inline-block;
	background: #E3F853;
	color: #1c0a2e;
	border-radius: 999px;
	padding: 2px 10px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin-left: 6px;
	vertical-align: middle;
}

.avxg-free {
	color: #551D87;
	font-weight: 700;
}
