.aj-precios {
	box-sizing: border-box;
	font-family: inherit;
	line-height: 1.2;
}

.aj-precios *,
.aj-precios *::before,
.aj-precios *::after {
	box-sizing: border-box;
}

.aj-precios-icon {
	display: block;
	flex-shrink: 0;
	width: 1.15em;
	height: 1.15em;
}

.aj-precios--lista {
	color: #1d4ed8;
}

.aj-precios--debito {
	color: #22c55e;
}

.aj-precios--efectivo {
	color: #f97316;
}

.aj-precios .woocommerce-Price-amount,
.aj-precios .amount,
.aj-precios bdi {
	color: inherit;
	font-weight: inherit;
	font-size: inherit;
	font-family: inherit;
}

/* Grid compacto */
.aj-precios-grid {
	display: flex;
	flex-direction: column;
	gap: 0.4em;
	width: 100%;
	margin: 0.35em 0;
}

.aj-precios-grid__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.6em;
	font-size: 13px;
}

.aj-precios-grid__left {
	display: flex;
	align-items: center;
	gap: 0.4em;
	min-width: 0;
}

.aj-precios-grid .aj-precios-icon {
	width: 18px;
	height: 18px;
}

.aj-precios-grid__label {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.aj-precios-grid__amount {
	font-weight: 700;
	white-space: nowrap;
}

/* Ficha de producto */
.aj-precios-ficha {
	width: 100%;
	margin: 0.5em 0 1em;
}

.aj-precios-ficha__title {
	display: flex;
	align-items: center;
	gap: 0.5em;
	color: #1d4ed8;
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	margin: 0 0 1.05em;
}

.aj-precios-ficha__title .aj-precios-icon {
	width: 28px;
	height: 28px;
}

.aj-precios-ficha__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin: 0 0 0.95em;
}

.aj-precios-ficha__left {
	display: flex;
	align-items: center;
	gap: 0.7em;
	min-width: 0;
}

.aj-precios-ficha__row .aj-precios-icon {
	width: 32px;
	height: 32px;
}

.aj-precios-ficha__lines {
	display: flex;
	flex-direction: column;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	font-size: 0.95rem;
	line-height: 1.12;
}

.aj-precios-ficha__subline {
	font-size: 0.78em;
	font-weight: 700;
	letter-spacing: 0.04em;
	margin-top: 0.12em;
}

.aj-precios-ficha__right {
	text-align: right;
	flex-shrink: 0;
}

.aj-precios-ficha__amount {
	font-size: 1.85rem;
	font-weight: 800;
	line-height: 1;
}

.aj-precios-ficha__sub {
	margin-top: 0.28em;
	font-size: 0.78rem;
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
	opacity: 0.9;
	color: inherit;
}

.aj-precios-ficha__disclaimer {
	margin: 0.85em 0 0;
	font-size: 0.75rem;
	line-height: 1.4;
	color: #8a8a8a;
	font-weight: 400;
	text-transform: none;
}

@media (max-width: 600px) {
	.aj-precios-ficha__title {
		font-size: 1.15rem;
	}

	.aj-precios-ficha__amount {
		font-size: 1.45rem;
	}

	.aj-precios-ficha__lines {
		font-size: 0.82rem;
	}

	.aj-precios-grid__row {
		font-size: 12px;
	}
}

/* Ocultar precio nativo sin afectar los shortcodes */
body.aj-precios-hide-native.single-product div.product p.price,
body.aj-precios-hide-native.single-product div.product span.price,
body.aj-precios-hide-native .w-grid-item .price,
body.aj-precios-hide-native .woocommerce-loop-product__price,
body.aj-precios-hide-native .w-grid-item-elm.woocommerce_price,
body.aj-precios-hide-native .w-grid-item-elm.product_field_price,
body.aj-precios-hide-native .w-post-elm.woocommerce_price {
	display: none !important;
}

body.aj-precios-hide-native .w-grid-item .woocommerce-Price-amount,
body.aj-precios-hide-native.single-product div.product .summary .woocommerce-Price-amount {
	display: none;
}

body.aj-precios-hide-native .aj-precios .woocommerce-Price-amount,
body.aj-precios-hide-native .aj-precios .price,
body.aj-precios-hide-native .w-grid-item .aj-precios .woocommerce-Price-amount,
body.aj-precios-hide-native.single-product .aj-precios .woocommerce-Price-amount {
	display: inline !important;
}

/* Checkout: descuento más visible */
.woocommerce-checkout tfoot .fee th,
.woocommerce-checkout tfoot .fee td,
.woocommerce-checkout .shop_table .fee th,
.woocommerce-checkout .shop_table .fee td,
.woocommerce-checkout .fee {
	color: #16a34a !important;
	font-weight: 800 !important;
}

.woocommerce-checkout .aj-precios-fee-amount,
.woocommerce-checkout .aj-precios-fee-amount .woocommerce-Price-amount,
.woocommerce-checkout tfoot .fee .woocommerce-Price-amount {
	color: #16a34a !important;
	font-size: 1.15em;
	font-weight: 800;
}

.aj-precios-checkout-ahorro-wrap:empty {
	display: none;
}

.aj-precios-gateway-cartel {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.03em;
	vertical-align: middle;
	white-space: nowrap;
	line-height: 1.6;
}

.aj-precios-gateway-cartel--debito {
	background: #dcfce7;
	color: #15803d;
}

.aj-precios-gateway-cartel--efectivo {
	background: #ffedd5;
	color: #c2410c;
}

.aj-precios-gateway-cartel--lista {
	background: #dbeafe;
	color: #1d4ed8;
}

.aj-precios-gateway-ahorro {
	margin: 0 0 8px;
	font-weight: 700;
}

.aj-precios-gateway-ahorro--debito {
	color: #15803d;
}

.aj-precios-gateway-ahorro--efectivo {
	color: #c2410c;
}

.aj-precios-gateway-ahorro--lista {
	color: #1d4ed8;
}

.aj-precios-checkout-ahorro {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 12px 0 16px;
	padding: 14px 16px;
	border-radius: 12px;
	border: 2px solid currentColor;
	background: #f0fdf4;
	color: #15803d;
}

.aj-precios-checkout-ahorro--efectivo {
	background: #fff7ed;
	color: #c2410c;
}

.aj-precios-checkout-ahorro__badge {
	flex-shrink: 0;
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	padding: 8px 10px;
	border-radius: 8px;
	background: currentColor;
	color: #fff;
}

.aj-precios-checkout-ahorro--debito .aj-precios-checkout-ahorro__badge {
	background: #16a34a;
	color: #fff;
}

.aj-precios-checkout-ahorro--efectivo .aj-precios-checkout-ahorro__badge {
	background: #f97316;
	color: #fff;
}

.aj-precios-checkout-ahorro__title {
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-size: 0.82rem;
	margin-bottom: 2px;
}

.aj-precios-checkout-ahorro__text {
	font-size: 1.05rem;
	line-height: 1.3;
}

.aj-precios-checkout-ahorro__text strong,
.aj-precios-checkout-ahorro__text .woocommerce-Price-amount {
	font-weight: 800;
	font-size: 1.15em;
	color: inherit;
}
