/* Oferta de tienda: precio oferta protagonista, regular tachado, 3 cuotas. */

.ed-price-block {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	margin: 0;
	line-height: 1.25;
}

.ed-price-regular {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	color: #6b7e8f;
	font-size: 14px;
}

.ed-price-label {
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 11px;
	font-weight: 700;
	color: #6b7e8f;
}

.ed-price-regular del {
	color: #8a9aaa;
	text-decoration: line-through;
	font-size: 16px;
	font-weight: 500;
}

.ed-price-offer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 2px;
}

.ed-price-offer-amount,
.ed-price-offer-amount .amount {
	font-size: 34px;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: #1f9d45;
	line-height: 1.05;
}

.ed-price-off {
	color: #1f9d45;
	font-weight: 800;
	font-size: 15px;
	letter-spacing: 0.02em;
	line-height: 1;
	white-space: nowrap;
}

.ed-price-badge {
	display: inline-block;
	background: #f5c518;
	color: #0d1b2a;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.04em;
	padding: 4px 9px;
	border-radius: 4px;
	line-height: 1;
}

.ed-price-offer-note {
	font-size: 13px;
	font-weight: 600;
	color: #1f9d45;
}

.ed-price-cuotas {
	margin-top: 8px;
	font-size: 15px;
	color: #0d1b2a;
}

.ed-price-cuotas-note {
	font-size: 12px;
	color: #6b7e8f;
}

/* Tarjetas / wishlist: 3 líneas fijas (tachado, oferta, cuotas). */
.product-small .ed-price-card,
.product-small .price .ed-price-card,
.wishlist_table .ed-price-card {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: 2px;
	line-height: 1.2;
}

.product-small .ed-price-card-reg,
.product-small .ed-price-card-offer,
.wishlist_table .ed-price-card-reg,
.wishlist_table .ed-price-card-offer {
	display: block;
	width: 100%;
}

.ed-price-card-reg {
	color: #8a9aaa;
	font-size: 13px;
	font-weight: 500;
}

.ed-price-card-offer,
.ed-price-card-offer .amount {
	font-size: 20px;
	font-weight: 800;
	color: #1f9d45;
	letter-spacing: -0.02em;
}

.product-small .ed-price-card-offer,
.wishlist_table .ed-price-card-offer {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px;
	width: 100%;
}

.ed-price-card-offer .ed-price-off {
	font-size: 12px;
}

.ed-price-card-badge,
.ed-price-badge,
.ed-price-label {
	display: none !important;
}

.ed-price-card-cuotas {
	display: block;
	width: 100%;
	font-size: 12px;
	color: #6b7e8f;
	margin-top: 2px;
}

body.single-product .product-page-price {
	margin-bottom: 12px;
}

body.single-product .product-page-price .ed-price-block {
	width: 100%;
}

/* Sin globo «¡Oferta!» — el 20% OFF ya está en el precio */
.callout.badge:has(.on-sale),
.callout.badge:has(.onsale),
.badge-inner.on-sale,
.badge-inner.onsale,
span.onsale {
	display: none !important;
}

/* Favoritos: precio 2 líneas, celdas al medio, foto completa (sin recorte).
 * YITH móvil: .wishlist_table.mobile li .item-wrapper .product-thumbnail { max-width:60px }. */
.wishlist_table td,
.wishlist_table th,
.wishlist_table.mobile .item-wrapper,
.wishlist_table.mobile .item-details {
	vertical-align: middle;
}

.wishlist_table td.product-price {
	text-align: left;
	white-space: normal;
}

.wishlist_table .ed-price-card-cuotas {
	flex: none;
	width: 100%;
	margin-top: 0;
}

.wishlist_table td.product-name a,
.wishlist_table.mobile .item-details h3,
.wishlist_table.mobile .item-details h3 a {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	white-space: normal;
	line-height: 1.3;
}

.wishlist_table td.product-thumbnail,
.wishlist_table.mobile .product-thumbnail,
.wishlist_table.mobile li .item-wrapper .product-thumbnail {
	width: 96px !important;
	max-width: 96px !important;
	overflow: visible !important;
	vertical-align: middle;
}

.wishlist_table td.product-thumbnail a,
.wishlist_table.mobile .product-thumbnail a,
.wishlist_table.mobile li .item-wrapper .product-thumbnail a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 96px !important;
	max-width: 96px !important;
	height: auto !important;
	overflow: visible !important;
	background: #fff;
	line-height: 0;
}

.wishlist_table td.product-thumbnail .img-inner,
.wishlist_table.mobile .product-thumbnail .img-inner,
.wishlist_table.mobile li .item-wrapper .product-thumbnail .img-inner,
.wishlist_table td.product-thumbnail .image-cover,
.wishlist_table.mobile .product-thumbnail .image-cover {
	padding-top: 0 !important;
	width: 96px !important;
	height: auto !important;
	min-height: 0;
	overflow: visible !important;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wishlist_table td.product-thumbnail img,
.wishlist_table.mobile .product-thumbnail img,
.wishlist_table.mobile li .item-wrapper .product-thumbnail img {
	position: static !important;
	inset: auto !important;
	top: auto !important;
	left: auto !important;
	width: 96px !important;
	height: auto !important;
	max-width: 96px !important;
	max-height: none !important;
	object-fit: contain !important;
	object-position: center center;
	overflow: visible !important;
}

.wishlist_table.mobile li .item-wrapper .item-details {
	width: calc(100% - 110px);
	vertical-align: middle;
}

@media (max-width: 768px) {
	table.wishlist_table.wishlist_view:not(.mobile) thead {
		display: none !important;
	}
	table.wishlist_table.wishlist_view:not(.mobile) td.product-stock-status {
		display: none !important;
	}
}

/*
 * $ alineado al número en todo el sitio.
 * Flatsome (.product-summary .woocommerce-Price-currencySymbol) lo deja al
 * 0.75em y vertical-align:top → parece superíndice (ficha, cuotas, favoritos).
 */
.woocommerce-Price-amount,
.woocommerce-Price-amount bdi {
	display: inline-flex;
	align-items: baseline;
	flex-wrap: nowrap;
}

.woocommerce-Price-currencySymbol,
.product-summary .woocommerce-Price-currencySymbol,
.price .woocommerce-Price-currencySymbol,
.ed-price-block .woocommerce-Price-currencySymbol,
.ed-price-card .woocommerce-Price-currencySymbol,
.cart-price .woocommerce-Price-currencySymbol,
.widget_shopping_cart .woocommerce-Price-currencySymbol,
.wishlist_table .woocommerce-Price-currencySymbol {
	display: inline-block !important;
	font-size: 1em !important;
	font-weight: inherit !important;
	font-style: inherit !important;
	line-height: inherit !important;
	letter-spacing: 0;
	vertical-align: baseline !important;
	position: static !important;
	top: auto !important;
	transform: none !important;
}

/*
 * inline-flex en .woocommerce-Price-amount (alineación del $) anula el
 * line-through del <del>: el tachado tiene que ir en el .amount, no flex.
 */
.ed-price-card-reg,
.ed-price-regular del {
	text-decoration: line-through;
	color: #8a9aaa;
}
.ed-price-card-reg .woocommerce-Price-amount,
.ed-price-card-reg .woocommerce-Price-amount bdi,
.ed-price-regular del .woocommerce-Price-amount,
.ed-price-regular del .woocommerce-Price-amount bdi {
	display: inline;
	text-decoration: line-through;
	color: inherit;
}

/* Carrito: misma gramática que ficha (tachado + verde). MP: se va el verde. */
.ed-cart-price {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0;
	line-height: 1.15;
	text-align: right;
}
.ed-cart-price__reg,
.ed-cart-price__reg .woocommerce-Price-amount,
.ed-cart-price__reg .woocommerce-Price-amount bdi {
	display: inline;
	color: #8a9aaa;
	font-size: 13px;
	font-weight: 500;
	text-decoration: line-through;
	letter-spacing: 0;
}
.ed-cart-price__offer,
.ed-cart-price__offer .woocommerce-Price-amount,
.ed-cart-price__offer .woocommerce-Price-amount bdi {
	color: #1f9d45;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.1;
}
.ed-cart-summary__total .ed-cart-price__offer,
.ed-cart-summary__total .ed-cart-price__offer .woocommerce-Price-amount,
.ed-cart-summary__total .ed-cart-price__offer .woocommerce-Price-amount bdi {
	font-size: 22px;
}

body.ed-no-offer .ed-cart-price__offer,
.ed-cart--no-offer .ed-cart-price__offer {
	display: none !important;
}
body.ed-no-offer .ed-cart-price__reg,
body.ed-no-offer .ed-cart-price__reg .woocommerce-Price-amount,
body.ed-no-offer .ed-cart-price__reg .woocommerce-Price-amount bdi,
.ed-cart--no-offer .ed-cart-price__reg,
.ed-cart--no-offer .ed-cart-price__reg .woocommerce-Price-amount,
.ed-cart--no-offer .ed-cart-price__reg .woocommerce-Price-amount bdi {
	display: inline;
	text-decoration: none;
	color: #111;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.02em;
}
body.ed-no-offer .ed-cart-summary__total .ed-cart-price__reg,
body.ed-no-offer .ed-cart-summary__total .ed-cart-price__reg .woocommerce-Price-amount,
body.ed-no-offer .ed-cart-summary__total .ed-cart-price__reg .woocommerce-Price-amount bdi,
.ed-cart--no-offer .ed-cart-summary__total .ed-cart-price__reg,
.ed-cart--no-offer .ed-cart-summary__total .ed-cart-price__reg .woocommerce-Price-amount,
.ed-cart--no-offer .ed-cart-summary__total .ed-cart-price__reg .woocommerce-Price-amount bdi {
	font-size: 22px;
	color: #111;
}

/* Subtotal: un solo importe (la oferta retirada va sumada, no discriminada). */
[data-ed-sum="subtotal"] .ed-cart-price,
.cart-subtotal .ed-cart-price {
	display: inline;
}
[data-ed-sum="subtotal"] .ed-cart-price__reg,
.cart-subtotal .ed-cart-price__reg {
	display: none !important;
}
[data-ed-sum="subtotal"] .ed-cart-price__offer,
[data-ed-sum="subtotal"] .ed-cart-price__offer .woocommerce-Price-amount,
[data-ed-sum="subtotal"] .ed-cart-price__offer .woocommerce-Price-amount bdi,
.cart-subtotal .ed-cart-price__offer,
.cart-subtotal .ed-cart-price__offer .woocommerce-Price-amount,
.cart-subtotal .ed-cart-price__offer .woocommerce-Price-amount bdi {
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
	letter-spacing: 0;
}
body.ed-no-offer [data-ed-sum="subtotal"] .ed-cart-price__offer,
.ed-cart--no-offer [data-ed-sum="subtotal"] .ed-cart-price__offer,
body.ed-no-offer .cart-subtotal .ed-cart-price__offer,
.ed-cart--no-offer .cart-subtotal .ed-cart-price__offer {
	display: none !important;
}
body.ed-no-offer [data-ed-sum="subtotal"] .ed-cart-price__reg,
body.ed-no-offer [data-ed-sum="subtotal"] .ed-cart-price__reg .woocommerce-Price-amount,
body.ed-no-offer [data-ed-sum="subtotal"] .ed-cart-price__reg .woocommerce-Price-amount bdi,
.ed-cart--no-offer [data-ed-sum="subtotal"] .ed-cart-price__reg,
.ed-cart--no-offer [data-ed-sum="subtotal"] .ed-cart-price__reg .woocommerce-Price-amount,
.ed-cart--no-offer [data-ed-sum="subtotal"] .ed-cart-price__reg .woocommerce-Price-amount bdi,
body.ed-no-offer .cart-subtotal .ed-cart-price__reg,
body.ed-no-offer .cart-subtotal .ed-cart-price__reg .woocommerce-Price-amount,
body.ed-no-offer .cart-subtotal .ed-cart-price__reg .woocommerce-Price-amount bdi {
	display: inline !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	color: inherit !important;
	text-decoration: none !important;
	letter-spacing: 0;
}

.ed-cart-item__unit .ed-cart-price__offer,
.ed-cart-item__unit .ed-cart-price__offer .woocommerce-Price-amount,
.ed-cart-item__unit .ed-cart-price__offer .woocommerce-Price-amount bdi {
	font-size: 16px;
}
.ed-cart-price-wrap {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
}
.ed-cart-cuotas {
	display: none;
	font-size: 12px;
	font-weight: 600;
	color: #4b5563;
	letter-spacing: 0;
	line-height: 1.3;
	text-align: right;
}
.ed-cart-summary__rows > .ed-cart-summary__cuotas {
	display: none;
	font-size: 13px;
	font-weight: 600;
	color: #4b5563;
	letter-spacing: 0;
	line-height: 1.3;
	text-align: right;
	border-bottom: 0;
	padding-top: 2px;
	justify-content: flex-end;
}
body.ed-no-offer .ed-cart-cuotas,
.ed-cart--no-offer .ed-cart-cuotas {
	display: block;
}
body.ed-no-offer .ed-cart-summary__rows > .ed-cart-summary__cuotas,
.ed-cart--no-offer .ed-cart-summary__rows > .ed-cart-summary__cuotas {
	display: flex;
}
.ed-cart-summary__cuotas .woocommerce-Price-amount,
.ed-cart-cuotas .woocommerce-Price-amount {
	font-size: inherit;
	font-weight: 700;
	color: #111;
}

/* Checkout / totales Woo: el fee sigue en el cálculo, no se lista. */
.woocommerce-checkout-review-order-table .fee,
.shop_table .fee,
.cart_totals .fee {
	display: none !important;
}

/* Header: sin importe. Alineado con el ícono. */
.header-cart-link {
	display: flex !important;
	align-items: center;
	gap: 8px;
}
.header-cart-title .cart-price {
	display: none !important;
}
/* Bolsa: el ancho fijo de Flatsome (2.2em) no entra 4 dígitos. */
.header-cart-link .cart-icon strong,
.cart-item .cart-icon strong {
	width: auto;
	min-width: 2.2em;
	padding: 0 0.45em;
	box-sizing: content-box;
	letter-spacing: -0.03em;
	overflow: visible;
}
/*
 * Hover Flatsome en header oscuro: bolsa blanca + número amarillo.
 * Amarillo sobre blanco no se lee → parece un bloque blanco.
 */
.nav-dark .header-cart-link:hover .cart-icon strong,
.nav-dark .current-dropdown .cart-icon strong,
.nav-dark .cart-icon:hover strong {
	background-color: var(--fs-color-primary);
	border-color: var(--fs-color-primary);
	color: var(--fs-color-secondary);
}
.nav-dark .header-cart-link:hover .cart-icon strong:after,
.nav-dark .current-dropdown .cart-icon strong:after,
.nav-dark .cart-icon:hover strong:after {
	border-color: var(--fs-color-primary);
}
.widget_shopping_cart .ed-cart-price__reg,
.widget_shopping_cart .ed-cart-cuotas {
	display: none !important;
}
.ux-mini-cart-footer .ed-minicart-cuotas,
.widget_shopping_cart .ed-minicart-cuotas {
	display: block;
	width: 100%;
	flex: 0 0 100%;
	margin: 4px 0 10px;
	padding: 0;
	font-size: 12px;
	font-weight: 600;
	color: #4b5563;
	line-height: 1.35;
	text-align: left;
}
.ed-minicart-cuotas .woocommerce-Price-amount {
	font-weight: 700;
	color: #111;
}
.ed-minicart-cuotas__note {
	font-weight: 500;
	color: #6b7280;
}

/* En el carrito ya estás: no dejes el aviso de “agregado” ocupando un hueco. */
body.woocommerce-cart .ed-cart > .woocommerce-message,
body.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-message {
	display: none !important;
}
body.woocommerce-cart .woocommerce-notices-wrapper:empty {
	display: none;
}

