/**
 * Estilos Frontend - Webbyte Dual Price para WooCommerce
 */

:root {
	--webbyte-wdp-accent: #16a34a;
	--webbyte-wdp-bg: #f0fdf4;
	--webbyte-wdp-border: #bbf7d0;
}

/* Contenedor principal en Ficha de Producto */
.webbyte-wdp-container {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 14px 0 18px;
	max-width: 480px;
	font-family: inherit;
}

/* Tarjetas individuales */
.webbyte-wdp-card {
	border-radius: 10px;
	padding: 14px 16px;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	line-height: 1.35;
}

/* Tarjeta 1: Efectivo / Transferencia (Destacada) */
.webbyte-wdp-card--cash {
	background-color: var(--webbyte-wdp-bg);
	border: 1.5px solid var(--webbyte-wdp-border);
	box-shadow: 0 2px 6px rgba(22, 163, 74, 0.06);
}

/* Tarjeta 2: Precio de Lista / Tarjeta de Crédito */
.webbyte-wdp-card--card {
	background-color: #f8fafc;
	border: 1px solid #e2e8f0;
}

/* Cabecera de cada tarjeta */
.webbyte-wdp-card__header {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 6px;
}

.webbyte-wdp-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.webbyte-wdp-icon--cash {
	color: var(--webbyte-wdp-accent);
}

.webbyte-wdp-icon--card {
	color: #475569;
}

.webbyte-wdp-title {
	font-size: 0.92rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: #1e293b;
}

.webbyte-wdp-card--cash .webbyte-wdp-title {
	color: var(--webbyte-wdp-accent);
}

/* Etiqueta / Badge % OFF */
.webbyte-wdp-badge {
	display: inline-block;
	background-color: var(--webbyte-wdp-accent);
	color: #ffffff;
	font-size: 0.75rem;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 999px;
	letter-spacing: 0.03em;
	line-height: 1.4;
}

/* Montos de Precio */
.webbyte-wdp-price--cash,
.webbyte-wdp-price--cash .woocommerce-Price-amount {
	font-size: 1.65rem;
	font-weight: 800;
	color: #0f172a;
	line-height: 1.2;
}

.webbyte-wdp-price--card,
.webbyte-wdp-price--card .woocommerce-Price-amount {
	font-size: 1.25rem;
	font-weight: 600;
	color: #334155;
	line-height: 1.2;
}

/* Subtítulos aclaratorios */
.webbyte-wdp-subtitle {
	margin-top: 4px;
	font-size: 0.82rem;
	color: #64748b;
}

/* Vista Compacta en Catálogo / Loop de Tienda */
.webbyte-wdp-loop {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 6px 0;
	line-height: 1.3;
}

.webbyte-wdp-loop__cash {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
}

.webbyte-wdp-loop__amount,
.webbyte-wdp-loop__amount .woocommerce-Price-amount {
	font-size: 1.15rem;
	font-weight: 800;
	color: var(--webbyte-wdp-accent);
}

.webbyte-wdp-loop__badge {
	background-color: var(--webbyte-wdp-accent);
	color: #ffffff;
	font-size: 0.68rem;
	font-weight: 700;
	padding: 1px 6px;
	border-radius: 4px;
}

.webbyte-wdp-loop__label {
	display: block;
	width: 100%;
	font-size: 0.75rem;
	font-weight: 600;
	color: #475569;
}

.webbyte-wdp-loop__card {
	font-size: 0.82rem;
	color: #64748b;
}

.webbyte-wdp-loop__card-amount,
.webbyte-wdp-loop__card-amount .woocommerce-Price-amount {
	font-weight: 600;
	color: #334155;
}

/* Estilos en Carrito y Checkout */
.webbyte-wdp-cart-price del {
	color: #94a3b8;
	font-size: 0.88em;
	margin-right: 4px;
}

.webbyte-wdp-cart-price ins {
	text-decoration: none;
	font-weight: 700;
	color: var(--webbyte-wdp-accent);
}

.webbyte-wdp-cart-tag {
	display: block;
	font-size: 0.75rem;
	color: var(--webbyte-wdp-accent);
	font-weight: 600;
}

.webbyte-wdp-cart-hint {
	display: block;
	font-size: 0.76rem;
	color: var(--webbyte-wdp-accent);
	margin-top: 2px;
}

.webbyte-wdp-cart-banner {
	background-color: #f8fafc;
	border-left: 4px solid var(--webbyte-wdp-accent);
	padding: 12px 14px;
	margin-bottom: 16px;
	border-radius: 6px;
	font-size: 0.88rem;
	color: #334155;
	line-height: 1.45;
}

.webbyte-wdp-cart-banner.is-active {
	background-color: var(--webbyte-wdp-bg);
	border-color: var(--webbyte-wdp-accent);
	color: #0f172a;
}

.webbyte-wdp-gateway-badge {
	display: inline-block;
	background-color: var(--webbyte-wdp-accent);
	color: #ffffff;
	font-size: 0.72rem;
	font-weight: 700;
	padding: 2px 7px;
	border-radius: 999px;
	margin-left: 6px;
	vertical-align: middle;
}

.webbyte-wdp-promo-cuotas {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px dashed #cbd5e1;
	font-size: 0.85rem;
	color: #1d4ed8;
}
