/**
 * Estilos estructurales base de los widgets de precio.
 * El aspecto visual (color, tipografía, fondo, borde…) se controla desde
 * Elementor mediante selectores; aquí solo va la maquetación imprescindible.
 */

/* --- Etiqueta de ahorro --- */
.epw-savings {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	line-height: 1.2;
}

.epw-savings__amount .woocommerce-Price-amount,
.epw-savings__percent {
	white-space: nowrap;
}

/* --- Señaléticas de producto (badges) --- */
.epw-badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.epw-badge {
	display: inline-flex;
	align-items: center;
	line-height: 1.2;
	white-space: nowrap;
}

/* Aviso en el editor cuando no hay señaléticas activas. */
.epw-badges-empty {
	padding: 10px 14px;
	border: 1px dashed rgba(0, 0, 0, 0.2);
	border-radius: 6px;
	color: #6b7280;
	font-size: 13px;
}

/* --- Precio actual + regular --- */
.epw-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	line-height: 1.2;
}

/* Orientación vertical (regular encima/debajo del actual). */
.epw-price--vertical {
	flex-direction: column;
	align-items: flex-start;
}

/* Cada bloque = texto opcional + valor del precio. */
.epw-price__item {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
}

.epw-price__current,
.epw-price__regular {
	display: inline-flex;
	align-items: baseline;
}

.epw-price__current .woocommerce-Price-amount,
.epw-price__regular .woocommerce-Price-amount {
	white-space: nowrap;
}

.epw-price__regular--strike,
.epw-price__regular--strike .woocommerce-Price-amount {
	text-decoration: line-through;
}

/* --- Ahorro del carrito (carrito / checkout) --- */
.epw-cart-savings {
	display: flex;
	align-items: center;
	gap: 12px;
}

.epw-cart-savings__icon {
	display: inline-flex;
	align-items: center;
	line-height: 1;
	flex: 0 0 auto;
}

.epw-cart-savings__icon svg {
	width: 1em;
	height: 1em;
	display: block;
}

.epw-cart-savings__text {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.epw-cart-savings__line {
	display: inline;
}

.epw-cart-savings__highlight {
	font-weight: 700;
}

.epw-cart-savings__amount .woocommerce-Price-amount {
	white-space: nowrap;
}
