/* ==========================================================================
   WC Delivery Modal — Premium Glassmorphism Design
   v3.0 — Replica exacta de diseño de referencia
   ========================================================================== */

/* --- Design Tokens --- */
:root {
	--wcdm-font: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--wcdm-modal-radius: 24px;
	--wcdm-btn-radius: 50px;
	--wcdm-green: #25D366;
	--wcdm-green-dark: #128C7E;
	--wcdm-pink: #e879a8;
	--wcdm-purple: #9B30FF;
	--wcdm-purple-light: #c77dff;
}


/* ============================================
   1. TRIGGER BUTTON (Product Page)
   ============================================ */
.wcdm-core__trigger-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 10px !important;
	width: auto !important;
	max-width: 300px !important;
	margin: 18px auto !important;
	padding: 13px 28px !important;
	border-radius: 14px !important;
	font-family: var(--wcdm-font) !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	border: none !important;
	cursor: pointer !important;
	transition: all 0.3s ease !important;
	position: relative !important;
	overflow: hidden !important;
	text-transform: uppercase !important;
	letter-spacing: 0.8px !important;
	outline: none !important;
	background: linear-gradient(135deg, var(--wcdm-green), var(--wcdm-green-dark)) !important;
	color: #ffffff !important;
	box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3) !important;
}

.wcdm-core__trigger-btn:hover {
	transform: translateY(-2px) !important;
	box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4) !important;
	color: #ffffff !important;
}

.wcdm-core__trigger-btn:active {
	transform: translateY(0) !important;
}

.wcdm-core__trigger-btn .wcdm-core__icon svg {
	width: 18px !important;
	height: 18px !important;
	fill: #ffffff !important;
}

.wcdm-core__trigger-btn .wcdm-core__btn-text {
	color: #ffffff !important;
}


/* ============================================
   2. FLOATING WHATSAPP BUTTON
   ============================================ */
.wcdm-core__floating {
	position: fixed;
	bottom: 30px;
	z-index: 99999;
	display: flex;
	align-items: center;
	text-decoration: none;
	transition: transform 0.3s ease;
}

.wcdm-core__floating:hover {
	transform: scale(1.05);
}

.wcdm-core__floating--right {
	right: 30px;
	flex-direction: row;
}

.wcdm-core__floating--left {
	left: 30px;
	flex-direction: row-reverse;
}

.wcdm-core__floating-text {
	background-color: #ffffff;
	color: #333333;
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 500;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	margin: 0 15px;
	opacity: 0;
	transform: translateY(10px);
	animation: wcdm-fade-up 0.5s forwards 1s;
}

@keyframes wcdm-fade-up {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.wcdm-core__floating-icon {
	width: 60px;
	height: 60px;
	background: linear-gradient(135deg, var(--wcdm-green), var(--wcdm-green-dark));
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
	position: relative;
}

.wcdm-core__floating-icon::after {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--wcdm-green), var(--wcdm-green-dark));
	z-index: -1;
	animation: wcdm-pulse 2s infinite;
}

@keyframes wcdm-pulse {
	0% {
		transform: scale(1);
		opacity: 0.8;
	}

	100% {
		transform: scale(1.5);
		opacity: 0;
	}
}

.wcdm-core__floating-icon svg {
	width: 35px;
	height: 35px;
	fill: #ffffff;
}


/* ============================================
   3. OVERLAY (Dark Frost Overlay)
   ============================================ */
.wcdm-core__overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100vw;
	height: 100vh;
	background-color: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.35s ease;
	box-sizing: border-box;
}

.wcdm-core__overlay--flex {
	display: flex !important;
}

.wcdm-core__overlay--active {
	opacity: 1;
}


/* ============================================
   4. MODAL CONTAINER — True Dark Glassmorphism
   ============================================ */
#wcdm-core-modal .wcdm-core__modal {
	background: rgba(255, 255, 255, 0.08) !important;
	backdrop-filter: blur(35px) saturate(200%) !important;
	-webkit-backdrop-filter: blur(35px) saturate(200%) !important;
	width: 90%;
	max-width: 400px;
	margin: 0 auto;
	border-radius: var(--wcdm-modal-radius);
	box-shadow:
		0 24px 48px rgba(0, 0, 0, 0.3),
		0 0 0 1px rgba(255, 255, 255, 0.15) inset;
	position: relative;
	transform: translateY(30px) scale(0.96);
	transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.18);
	box-sizing: border-box;
}

.wcdm-core__overlay--active .wcdm-core__modal {
	transform: translateY(0) scale(1);
}


/* ============================================
   5. STRIPE — Franja Superior Decorativa
   ============================================ */
#wcdm-core-modal .wcdm-core__modal-stripe {
	width: 100%;
	height: 4px;
	background: linear-gradient(90deg,
			var(--wcdm-green),
			var(--wcdm-green-dark),
			var(--wcdm-purple-light),
			var(--wcdm-purple));
	background-size: 200% 100%;
	animation: wcdm-stripe-flow 4s ease infinite;
}

@keyframes wcdm-stripe-flow {
	0% {
		background-position: 0% 50%;
	}

	50% {
		background-position: 100% 50%;
	}

	100% {
		background-position: 0% 50%;
	}
}


/* ============================================
   6. CLOSE BUTTON — Simple X
   ============================================ */
#wcdm-core-modal .wcdm-core__close {
	position: absolute;
	top: 16px;
	right: 16px;
	background: transparent !important;
	border: none !important;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: opacity 0.2s ease;
	z-index: 10;
	padding: 0 !important;
}

#wcdm-core-modal .wcdm-core__close:hover {
	opacity: 0.5;
}

#wcdm-core-modal .wcdm-core__close svg {
	width: 14px;
	height: 14px;
	fill: #ffffff;
}


/* ============================================
   7. CONTENT AREA
   ============================================ */
#wcdm-core-modal .wcdm-core__content {
	padding: 36px 28px 0;
	text-align: center;
}


/* ============================================
   8. LOGO
   ============================================ */
#wcdm-core-modal .wcdm-core__logo {
	margin-bottom: 20px;
	animation: wcdm-logo-enter 0.5s ease-out 0.1s both;
}

@keyframes wcdm-logo-enter {
	from {
		opacity: 0;
		transform: scale(0.7);
	}

	to {
		opacity: 1;
		transform: scale(1);
	}
}

#wcdm-core-modal .wcdm-core__logo img {
	max-height: 80px;
	max-width: 100%;
	width: auto;
	border-radius: 50%;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
	border: 3px solid rgba(255, 255, 255, 0.1);
}


/* ============================================
   9. TITLE — Elegante, peso ligero
   ============================================ */
#wcdm-core-modal .wcdm-core__title {
	font-family: var(--wcdm-font) !important;
	font-size: 20px !important;
	font-weight: 600 !important;
	color: #ffffff !important;
	margin: 0 0 6px 0 !important;
	line-height: 1.35 !important;
	letter-spacing: -0.2px !important;
	animation: wcdm-text-enter 0.4s ease-out 0.15s both;
}


/* ============================================
   10. HEART ICON
   ============================================ */
#wcdm-core-modal .wcdm-core__heart {
	margin: 4px 0 6px;
	animation: wcdm-text-enter 0.4s ease-out 0.2s both;
}

#wcdm-core-modal .wcdm-core__heart svg {
	width: 16px;
	height: 16px;
	fill: var(--wcdm-pink);
	opacity: 0.9;
}


/* ============================================
   11. SUBTITLE — Delicado y sutil
   ============================================ */
#wcdm-core-modal .wcdm-core__subtitle {
	font-family: var(--wcdm-font) !important;
	font-size: 13px !important;
	color: #ffffff !important;
	font-weight: 400 !important;
	margin: 0 0 24px 0 !important;
	line-height: 1.5 !important;
	animation: wcdm-text-enter 0.4s ease-out 0.22s both;
}

@keyframes wcdm-text-enter {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}


/* ============================================
   12. ACTIONS — Apilados verticalmente
   ============================================ */
#wcdm-core-modal .wcdm-core__actions {
	display: flex !important;
	flex-direction: column !important;
	gap: 0 !important;
	width: 100% !important;
}


/* ============================================
   13. BASE BUTTON STYLE — Pill con flecha
   ============================================ */
#wcdm-core-modal .wcdm-core__btn {
	display: flex !important;
	align-items: center !important;
	width: 100% !important;
	padding: 14px 18px !important;
	border-radius: var(--wcdm-btn-radius) !important;
	font-family: var(--wcdm-font) !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	border: none !important;
	cursor: pointer !important;
	transition: all 0.3s ease !important;
	position: relative !important;
	overflow: hidden !important;
	text-transform: uppercase !important;
	letter-spacing: 0.8px !important;
	outline: none !important;
	color: #ffffff !important;
}

#wcdm-core-modal .wcdm-core__btn:hover {
	transform: translateY(-2px) !important;
}

#wcdm-core-modal .wcdm-core__btn:active {
	transform: translateY(0) !important;
}

/* Icon (left side) */
#wcdm-core-modal .wcdm-core__icon {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex-shrink: 0 !important;
	width: 28px !important;
	margin-right: 10px !important;
}

#wcdm-core-modal .wcdm-core__icon svg {
	width: 20px !important;
	height: 20px !important;
	fill: currentColor !important;
}

/* Text (center, flex-grow) */
#wcdm-core-modal .wcdm-core__btn-text {
	flex: 1 !important;
	text-align: center !important;
	color: #ffffff !important;
}

/* Arrow (right side) */
#wcdm-core-modal .wcdm-core__btn-arrow {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex-shrink: 0 !important;
	width: 24px !important;
	height: 24px !important;
	background: rgba(255, 255, 255, 0.2) !important;
	border-radius: 50% !important;
	margin-left: 10px !important;
}

#wcdm-core-modal .wcdm-core__btn-arrow svg {
	width: 10px !important;
	height: 10px !important;
	fill: #ffffff !important;
}


/* ============================================
   14. WHATSAPP BUTTON — Frosted Glass Green
   ============================================ */
#wcdm-core-modal .wcdm-core__btn--whatsapp {
	background: linear-gradient(135deg,
			rgba(37, 211, 102, 0.75),
			rgba(18, 140, 126, 0.7)) !important;
	backdrop-filter: blur(8px) !important;
	-webkit-backdrop-filter: blur(8px) !important;
	border: 1px solid rgba(255, 255, 255, 0.25) !important;
	box-shadow: 0 4px 16px rgba(37, 211, 102, 0.2) !important;
	animation: wcdm-btn-enter 0.45s ease-out 0.3s both;
}

#wcdm-core-modal .wcdm-core__btn--whatsapp:hover {
	box-shadow: 0 8px 28px rgba(37, 211, 102, 0.35) !important;
}


/* ============================================
   15. PHONE BUTTON — Pink → Purple gradient
   ============================================ */
#wcdm-core-modal .wcdm-core__btn--phone {
	background: linear-gradient(135deg,
			var(--wcdm-pink),
			var(--wcdm-purple-light),
			var(--wcdm-purple)) !important;
	border: none !important;
	box-shadow: 0 4px 16px rgba(155, 48, 255, 0.2) !important;
	animation: wcdm-btn-enter 0.45s ease-out 0.45s both;
}

#wcdm-core-modal .wcdm-core__btn--phone:hover {
	box-shadow: 0 8px 28px rgba(155, 48, 255, 0.35) !important;
}

@keyframes wcdm-btn-enter {
	from {
		opacity: 0;
		transform: translateY(14px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}


/* ============================================
   16. DIVIDER — Elegante con decoraciones
   ============================================ */
#wcdm-core-modal .wcdm-core__divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 14px 0;
	animation: wcdm-text-enter 0.4s ease-out 0.35s both;
}

#wcdm-core-modal .wcdm-core__divider::before,
#wcdm-core-modal .wcdm-core__divider::after {
	content: '· · · · · ·';
	flex: 1;
	font-size: 10px;
	color: #ffffff;
	letter-spacing: 3px;
	text-align: center;
	overflow: hidden;
	white-space: nowrap;
}

#wcdm-core-modal .wcdm-core__divider-text {
	font-family: var(--wcdm-font);
	font-size: 10px;
	color: #ffffff;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	font-weight: 500;
	white-space: nowrap;
}


/* ============================================
   17. FOOTER — Dos textos con íconos
   ============================================ */
#wcdm-core-modal .wcdm-core__footer {
	display: flex !important;
	justify-content: center !important;
	gap: 20px !important;
	padding: 18px 28px !important;
	margin-top: 24px;
	background: transparent !important;
	border-top: none !important;
}

#wcdm-core-modal .wcdm-core__footer-item {
	display: flex;
	align-items: center;
	gap: 5px;
	font-family: var(--wcdm-font);
	font-size: 11px;
	color: #ffffff;
	font-weight: 400;
}

#wcdm-core-modal .wcdm-core__footer-item svg {
	width: 12px;
	height: 12px;
	fill: #ffffff;
}


/* ============================================
   18. RESPONSIVE
   ============================================ */
@media (max-width: 480px) {
	#wcdm-core-modal .wcdm-core__modal {
		width: 94%;
		max-width: 360px;
	}

	#wcdm-core-modal .wcdm-core__content {
		padding: 28px 20px 0;
	}

	#wcdm-core-modal .wcdm-core__title {
		font-size: 18px !important;
	}

	#wcdm-core-modal .wcdm-core__btn {
		padding: 12px 14px !important;
		font-size: 12px !important;
	}

	#wcdm-core-modal .wcdm-core__footer {
		flex-direction: column !important;
		gap: 6px !important;
		align-items: center !important;
	}

	.wcdm-core__floating-text {
		display: none;
	}
}

/* ============================================
   19. DIRECT ACTIONS (Product Page)
   ============================================ */
.wcdm-direct-actions-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 15px;
	margin: 5px auto 30px;
	width: 100%;
	max-width: 500px;
}

/* Base button styles applied to direct actions */
.wcdm-direct-actions-wrapper .wcdm-core__btn {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 10px !important;
	width: 100% !important;
	padding: 10px 16px !important;
	border-radius: var(--wcdm-btn-radius) !important;
	font-family: var(--wcdm-font) !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	border: none !important;
	cursor: pointer !important;
	transition: all 0.3s ease !important;
	position: relative !important;
	overflow: hidden !important;
	text-transform: uppercase !important;
	letter-spacing: 0.8px !important;
	outline: none !important;
	color: #ffffff !important;
	margin: 0 !important;
	/* Override any theme margins */
	flex: 1;
}

.wcdm-direct-actions-wrapper .wcdm-core__btn:hover {
	transform: translateY(-2px) !important;
}

.wcdm-direct-actions-wrapper .wcdm-core__btn:active {
	transform: translateY(0) !important;
}

/* Icon (left side) */
.wcdm-direct-actions-wrapper .wcdm-core__icon {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex-shrink: 0 !important;
	width: 24px !important;
	margin: 0 !important;
}

.wcdm-direct-actions-wrapper .wcdm-core__icon svg {
	width: 18px !important;
	height: 18px !important;
	fill: currentColor !important;
}

/* Text (center, flex-grow) */
.wcdm-direct-actions-wrapper .wcdm-core__btn-text {
	flex: 0 1 auto !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	text-align: center !important;
	color: #ffffff !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
}

/* WhatsApp Button Colors */
.wcdm-direct-actions-wrapper .wcdm-core__btn--whatsapp {
	background: linear-gradient(135deg, var(--wcdm-green), var(--wcdm-green-dark)) !important;
	border: none !important;
	animation: wcdm-btn-enter 0.45s ease-out both;
}

.wcdm-direct-actions-wrapper .wcdm-core__btn--whatsapp:hover {
	opacity: 0.9;
}

/* Phone Button Colors */
.wcdm-direct-actions-wrapper .wcdm-core__btn--phone {
	background: linear-gradient(135deg, var(--wcdm-pink), var(--wcdm-purple-light), var(--wcdm-purple)) !important;
	border: none !important;
	animation: wcdm-btn-enter 0.45s ease-out 0.15s both;
}

.wcdm-direct-actions-wrapper .wcdm-core__btn--phone:hover {
	opacity: 0.9;
}

@media (max-width: 1024px) {
	.wcdm-direct-actions-wrapper {
		flex-direction: column !important;
		align-items: center !important;
		gap: 12px !important;
	}

	.wcdm-direct-actions-wrapper .wcdm-core__btn {
		width: 90% !important;
		max-width: 300px !important;
		padding: 12px 16px !important;
	}
}