/**
 * Cart + mini-cart — Everything Flamenco
 */
:root {
	--ef-yellow: #ffd71f;
	--ef-gold: #f4bd16;
	--ef-burgundy: #8d123f;
	--ef-plum: #581845;
	--ef-red: #e01020;
	--ef-cream: #faf0e6;
	--ef-cream-soft: #f5efe8;
	--ef-ink: #281e1e;
	--ef-muted: #69727d;
	--ef-line: #cfcfcf;
}

/* Oculta título nativo del tema en /cart/ */
.woocommerce-cart .page-header,
.woocommerce-cart .entry-title {
	display: none !important;
}

/* ========== Banda amarilla (página Cart) ========== */
.ef-cart-band {
	background: var(--ef-yellow);
	padding: 36px 0;
	color: var(--ef-ink);
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	box-sizing: border-box;
}
.ef-cart-band__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
}
.ef-cart-band .ef-crumbs {
	font-size: 13px;
	margin: 0 0 10px;
	font-family: Manrope, sans-serif;
}
.ef-cart-band .ef-crumbs a {
	color: var(--ef-ink);
	text-decoration: none;
}
.ef-cart-band .ef-crumbs a:hover {
	color: var(--ef-burgundy);
	text-decoration: underline;
}
.ef-cart-band__title {
	margin: 0;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-weight: 600;
	font-size: 48px;
	line-height: 52px;
	color: var(--ef-ink);
}

/* ========== Página Cart ========== */
/* Hello limita .site-main a 800/1140px en páginas sin Elementor — liberar ancho */
body.woocommerce-cart .site-main,
body.woocommerce-cart #content {
	max-width: none !important;
	width: 100% !important;
	padding-inline-start: 0 !important;
	padding-inline-end: 0 !important;
	margin-inline: 0 !important;
}
body.woocommerce-cart .site-main,
body.woocommerce-cart #content,
body.woocommerce-cart .page-content,
body.woocommerce-cart .page-content > article,
body.woocommerce-cart .entry-content {
	background: #f6f4f1 !important;
}
body.woocommerce-cart .page-content > .woocommerce,
body.woocommerce-cart .site-main .woocommerce:has(.woocommerce-cart-form) {
	color: var(--ef-ink);
	font-family: Manrope, sans-serif;
	background: transparent !important;
}
body.woocommerce-cart .page-content > .woocommerce::before,
body.woocommerce-cart .page-content > .woocommerce::after,
body.woocommerce-cart .site-main .woocommerce:has(.woocommerce-cart-form)::before,
body.woocommerce-cart .site-main .woocommerce:has(.woocommerce-cart-form)::after {
	display: none !important;
	content: none !important;
}

/* Layout 2 columnas: productos | totals — selectores sin .woocommerce genérico
   (FiboSearch también usa class "woocommerce" en el header). */
body.woocommerce-cart .page-content > .woocommerce,
body.woocommerce-cart .entry-content > .woocommerce,
body.woocommerce-cart .site-main .woocommerce:has(.woocommerce-cart-form) {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) minmax(260px, 300px) !important;
	gap: 28px !important;
	align-items: start !important;
	width: 100% !important;
	max-width: 1280px !important;
	margin: 0 auto !important;
	padding: 48px 24px 72px;
	box-sizing: border-box;
}
body.woocommerce-cart .woocommerce-cart-form {
	float: none !important;
	width: auto !important;
	max-width: none !important;
	min-width: 0 !important;
	background: #fff;
	border: 1px solid var(--ef-line);
	padding: 24px 20px 28px;
	box-sizing: border-box;
	grid-column: 1;
}
body.woocommerce-cart .cart-collaterals {
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	grid-column: 2;
	position: sticky;
	top: 24px;
}
body.woocommerce-cart .page-content > .woocommerce > .woocommerce-notices-wrapper,
body.woocommerce-cart .site-main .woocommerce:has(.woocommerce-cart-form) > .woocommerce-notices-wrapper {
	grid-column: 1 / -1;
}

/* —— Tabla: thumb | name | price | qty | subtotal | remove —— */
body.woocommerce-cart table.shop_table.cart {
	width: 100% !important;
	border: 0 !important;
	margin: 0 0 8px !important;
	background: transparent !important;
	border-collapse: separate;
	border-spacing: 0;
	table-layout: fixed !important;
}
body.woocommerce-cart table.shop_table.cart thead {
	display: block;
	width: 100%;
	border-bottom: 2px solid var(--ef-ink);
	margin-bottom: 0;
}
body.woocommerce-cart table.shop_table.cart thead tr {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr) 72px 128px 72px 36px;
	gap: 12px;
	align-items: end;
	padding: 0 0 12px;
	width: 100%;
	box-sizing: border-box;
}
body.woocommerce-cart table.shop_table.cart thead th {
	display: block;
	text-align: left;
	font-size: 12px !important;
	text-transform: uppercase !important;
	letter-spacing: 0.06em;
	color: var(--ef-muted) !important;
	font-weight: 700 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
}
body.woocommerce-cart table.shop_table.cart thead th.product-thumbnail { grid-column: 1; }
body.woocommerce-cart table.shop_table.cart thead th.product-name { grid-column: 2; }
body.woocommerce-cart table.shop_table.cart thead th.product-price { grid-column: 3; }
body.woocommerce-cart table.shop_table.cart thead th.product-quantity { grid-column: 4; }
body.woocommerce-cart table.shop_table.cart thead th.product-subtotal { grid-column: 5; }
body.woocommerce-cart table.shop_table.cart thead th.product-remove { grid-column: 6; }
body.woocommerce-cart table.shop_table.cart thead th.product-remove,
body.woocommerce-cart table.shop_table.cart thead th.product-thumbnail {
	font-size: 0 !important;
	line-height: 0 !important;
	color: transparent !important;
}
body.woocommerce-cart table.shop_table.cart tbody {
	display: block;
	width: 100%;
}
body.woocommerce-cart table.shop_table.cart tbody tr.cart_item {
	display: grid !important;
	grid-template-columns: 96px minmax(0, 1fr) 72px 128px 72px 36px;
	gap: 12px;
	align-items: center;
	padding: 24px 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-bottom: 1px solid var(--ef-line) !important;
	background: #fff !important;
	width: 100%;
	box-sizing: border-box;
}
body.woocommerce-cart table.shop_table.cart tbody tr.cart_item:nth-child(even),
body.woocommerce-cart table.shop_table.cart tbody tr.cart_item:nth-child(odd) {
	background: #fff !important;
}
body.woocommerce-cart table.shop_table.cart tbody td {
	display: block !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	vertical-align: middle;
}
body.woocommerce-cart table.shop_table.cart td.product-thumbnail {
	grid-column: 1;
}
body.woocommerce-cart table.shop_table.cart td.product-name {
	grid-column: 2;
}
body.woocommerce-cart table.shop_table.cart td.product-price {
	grid-column: 3;
}
body.woocommerce-cart table.shop_table.cart td.product-quantity {
	grid-column: 4;
}
body.woocommerce-cart table.shop_table.cart td.product-subtotal {
	grid-column: 5;
}
body.woocommerce-cart table.shop_table.cart td.product-remove {
	grid-column: 6;
	justify-self: end;
	align-self: start;
}
body.woocommerce-cart table.shop_table.cart td.product-thumbnail a {
	display: block !important;
	width: 96px !important;
	max-width: 100% !important;
	height: 120px !important;
	background: var(--ef-cream) !important;
	overflow: hidden;
}
body.woocommerce-cart table.shop_table.cart td.product-thumbnail img {
	width: 96px !important;
	max-width: 100% !important;
	height: 120px !important;
	object-fit: cover !important;
	display: block !important;
	background: var(--ef-cream);
}
body.woocommerce-cart table.shop_table.cart td.product-name {
	min-width: 0 !important;
	overflow-wrap: anywhere;
}
body.woocommerce-cart table.shop_table.cart td.product-price,
body.woocommerce-cart table.shop_table.cart td.product-subtotal {
	white-space: nowrap;
}
body.woocommerce-cart table.shop_table.cart .product-name a {
	font-family: "Cormorant Garamond", Georgia, serif !important;
	font-size: 20px !important;
	font-weight: 600 !important;
	color: #281e1e !important;
	text-decoration: none !important;
	line-height: 1.3 !important;
}
body.woocommerce-cart table.shop_table.cart .product-name a:hover {
	color: #8d123f !important;
}
body.woocommerce-cart table.shop_table.cart .product-name .variation,
body.woocommerce-cart table.shop_table.cart .product-name dl.variation,
body.woocommerce-cart table.shop_table.cart .product-name .wccf_cart_item_fields,
body.woocommerce-cart table.shop_table.cart .product-name .wc-item-meta {
	font-size: 12px !important;
	color: var(--ef-muted) !important;
	margin: 10px 0 0 !important;
	line-height: 1.55 !important;
	padding: 0 !important;
	border: 0 !important;
}
body.woocommerce-cart table.shop_table.cart .product-name .variation dt,
body.woocommerce-cart table.shop_table.cart .product-name .variation .label,
body.woocommerce-cart table.shop_table.cart .product-name .wccf_cart_item_fields strong,
body.woocommerce-cart table.shop_table.cart .product-name .wc-item-meta strong {
	font-weight: 700 !important;
	color: var(--ef-ink) !important;
	float: none !important;
	display: inline !important;
	margin: 0 !important;
}
body.woocommerce-cart table.shop_table.cart .product-name .variation dd,
body.woocommerce-cart table.shop_table.cart .product-name .variation .value {
	display: inline !important;
	margin: 0 !important;
	padding: 0 !important;
}
body.woocommerce-cart table.shop_table.cart .product-price .amount,
body.woocommerce-cart table.shop_table.cart .product-subtotal .amount,
body.woocommerce-cart .cart_totals .amount {
	font-family: "Barlow Condensed", sans-serif !important;
	font-weight: 700 !important;
	font-size: 18px !important;
	white-space: nowrap;
	color: var(--ef-ink) !important;
}
body.woocommerce-cart table.shop_table.cart .product-remove a.remove {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 24px !important;
	height: 24px !important;
	border: 0 !important;
	border-radius: 0 !important;
	color: transparent !important;
	text-decoration: none !important;
	font-size: 0 !important;
	line-height: 1 !important;
	background-color: transparent !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23281e1e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16'/%3E%3Cpath d='M9 7V4.8h6V7'/%3E%3Cpath d='M7.2 7l.8 12.2h8l.8-12.2'/%3E%3Cpath d='M10 11v5M14 11v5'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	background-size: 24px 24px !important;
	box-shadow: none !important;
	opacity: 1 !important;
}
body.woocommerce-cart table.shop_table.cart .product-remove a.remove::before,
body.woocommerce-cart table.shop_table.cart .product-remove a.remove::after {
	content: none !important;
	display: none !important;
}
body.woocommerce-cart table.shop_table.cart .product-remove a.remove:hover {
	border: 0 !important;
	background-color: transparent !important;
	opacity: 0.55;
}

/* Cantidad − / + */
body.woocommerce-cart div.quantity {
	display: inline-flex !important;
	align-items: stretch;
	border: 1px solid var(--ef-line);
	background: #fff;
	max-width: 100%;
}
body.woocommerce-cart div.quantity .qty {
	/* 40+46+40 = 126, el hueco interior de la caja de 128px (borde incluido).
	   Con 48px el + tapa el borde derecho. */
	width: 46px !important;
	min-width: 46px !important;
	flex: 0 0 46px;
	min-height: 44px !important;
	height: 44px !important;
	margin: 0 !important;
	padding: 0 4px !important;
	border: 0 !important;
	border-left: 1px solid var(--ef-line) !important;
	border-right: 1px solid var(--ef-line) !important;
	border-radius: 0 !important;
	text-align: center !important;
	font-family: Manrope, sans-serif !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 44px !important;
	color: var(--ef-ink) !important;
	opacity: 1 !important;
	box-shadow: none !important;
	background: #fff !important;
	-moz-appearance: textfield;
	appearance: textfield;
}
body.woocommerce-cart div.quantity .qty::-webkit-outer-spin-button,
body.woocommerce-cart div.quantity .qty::-webkit-inner-spin-button {
	-webkit-appearance: none !important;
	margin: 0 !important;
	display: none !important;
}
body.woocommerce-cart div.quantity .ef-qty-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	min-width: 40px;
	min-height: 44px;
	padding: 0;
	border: 0;
	background: #fff;
	color: var(--ef-ink);
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	flex: 0 0 40px;
}
body.woocommerce-cart div.quantity .ef-qty-btn:hover {
	background: var(--ef-cream-soft);
}

/* Cupón + update (misma fila: coupon izq | update dcha) */
body.woocommerce-cart table.shop_table.cart tbody tr:has(td.actions) {
	display: block !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
}
body.woocommerce-cart table.shop_table.cart tbody tr:last-child td.actions,
body.woocommerce-cart table.shop_table td.actions,
body.woocommerce-cart .actions {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: 12px;
	align-items: stretch;
	justify-content: space-between;
	width: 100%;
	padding: 28px 0 0 !important;
	border: 0 !important;
	grid-column: 1 / -1 !important;
	box-sizing: border-box;
}
body.woocommerce-cart .coupon {
	display: flex !important;
	flex-wrap: nowrap;
	gap: 12px;
	align-items: stretch;
	float: none !important;
	padding: 0 !important;
	margin: 0 !important;
	flex: 1 1 auto;
	min-width: 0;
}
body.woocommerce-cart .coupon label {
	display: none !important;
}
body.woocommerce-cart .coupon .input-text {
	flex: 1 1 200px;
	min-width: 180px;
	min-height: 48px !important;
	padding: 12px 16px !important;
	border: 1px solid var(--ef-line) !important;
	border-radius: 0 !important;
	font: inherit;
	background: #fff !important;
	box-shadow: none !important;
}
body.woocommerce-cart .coupon .button,
body.woocommerce-cart button[name="apply_coupon"] {
	background: #281e1e !important;
	color: #fff !important;
	border: 1px solid #281e1e !important;
	border-radius: 0 !important;
	font-weight: 700 !important;
	font-size: 13px !important;
	text-transform: uppercase !important;
	letter-spacing: 0.04em;
	padding: 12px 22px !important;
	min-height: 48px !important;
	box-shadow: none !important;
}
body.woocommerce-cart button[name="update_cart"] {
	background: #fff !important;
	color: #281e1e !important;
	border: 1px solid #281e1e !important;
	border-radius: 0 !important;
	font-weight: 700 !important;
	font-size: 13px !important;
	text-transform: uppercase !important;
	letter-spacing: 0.04em;
	padding: 12px 22px !important;
	min-height: 48px !important;
	box-shadow: none !important;
	float: none !important;
	flex: 0 0 auto;
	margin-left: auto !important;
	align-self: stretch;
	white-space: nowrap;
}
body.woocommerce-cart button[name="update_cart"]:disabled {
	opacity: 0.4;
}

/* Cart totals */
body.woocommerce-cart .cart_totals {
	background: var(--ef-cream) !important;
	border: 1px solid var(--ef-line) !important;
	padding: 28px 24px 24px !important;
	width: 100% !important;
	float: none !important;
	box-sizing: border-box;
}
body.woocommerce-cart .cart_totals h2 {
	font-family: "Cormorant Garamond", Georgia, serif !important;
	font-weight: 600 !important;
	font-size: 28px !important;
	line-height: 34px !important;
	color: var(--ef-plum) !important;
	margin: 0 0 20px !important;
}
body.woocommerce-cart .cart_totals table {
	width: 100% !important;
	border: 0 !important;
	margin: 0 0 20px !important;
	background: transparent !important;
}
body.woocommerce-cart .cart_totals th,
body.woocommerce-cart .cart_totals td {
	border: 0 !important;
	padding: 12px 0 !important;
	font-size: 14px !important;
	background: transparent !important;
	color: var(--ef-ink) !important;
}
body.woocommerce-cart .cart_totals td {
	text-align: right !important;
}
body.woocommerce-cart .cart_totals .woocommerce-shipping-destination,
body.woocommerce-cart .cart_totals .woocommerce-shipping-methods,
body.woocommerce-cart .cart_totals .shipping small {
	display: block;
	font-size: 12px;
	color: var(--ef-muted);
	font-weight: 400;
	margin-top: 4px;
	text-align: right;
}
body.woocommerce-cart .cart_totals .order-total th,
body.woocommerce-cart .cart_totals .order-total td {
	border-top: 2px solid var(--ef-ink) !important;
	padding-top: 16px !important;
	font-weight: 700 !important;
}
body.woocommerce-cart .cart_totals .order-total .amount {
	font-family: "Barlow Condensed", sans-serif !important;
	font-size: 26px !important;
	font-weight: 700 !important;
}
body.woocommerce-cart .wc-proceed-to-checkout {
	padding: 0 !important;
}
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
body.woocommerce-cart a.checkout-button.button,
body.woocommerce-cart a.button.alt.checkout-button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	background: #f4bd16 !important;
	color: #281e1e !important;
	border: 0 !important;
	border-radius: 0 !important;
	font-weight: 700 !important;
	font-size: 13px !important;
	text-transform: uppercase !important;
	letter-spacing: 0.04em;
	padding: 16px 24px !important;
	min-height: 52px !important;
	text-decoration: none !important;
	box-shadow: none !important;
}
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
	background: #ffd71f !important;
	color: #281e1e !important;
}
.ef-cart-pay-note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 14px;
	font-size: 12px;
	color: var(--ef-muted);
}
.ef-cart-pay-note svg {
	width: 14px;
	height: 14px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.7;
	flex: 0 0 auto;
}

/* Vacío */
.woocommerce-cart .cart-empty,
.woocommerce-cart .wc-empty-cart-message {
	border: 0 !important;
	background: transparent !important;
	padding: 0 !important;
	margin: 0 0 16px !important;
	text-align: center;
	color: var(--ef-muted);
	font-size: 15px;
}
.woocommerce-cart .cart-empty::before,
.woocommerce-cart .wc-empty-cart-message::before {
	display: none !important;
}
.woocommerce-cart .return-to-shop {
	text-align: center;
	margin: 0;
}
.woocommerce-cart .return-to-shop .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--ef-gold) !important;
	color: var(--ef-ink) !important;
	border: 0 !important;
	border-radius: 0 !important;
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 14px 28px !important;
	min-height: 48px;
	text-decoration: none !important;
	box-shadow: none !important;
}
.ef-cart-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	padding: 64px 24px 80px;
	text-align: center;
}
.ef-cart-empty__icon,
.ef-mini-cart-empty-icon {
	width: 56px;
	height: 56px;
	background: var(--ef-yellow);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--ef-ink);
	position: relative;
}
.ef-cart-empty__icon::before,
.ef-mini-cart-empty-icon::before {
	content: "";
	width: 28px;
	height: 28px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7'%3E%3Cpath d='M5 7h14l-1.5 13h-11z'/%3E%3Cpath d='M9 7a3 3 0 0 1 6 0'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7'%3E%3Cpath d='M5 7h14l-1.5 13h-11z'/%3E%3Cpath d='M9 7a3 3 0 0 1 6 0'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ef-cart-empty__icon svg,
.ef-mini-cart-empty-icon svg {
	display: none;
}

/* Barra fija móvil (checkout) */
.ef-cart-sticky-bar {
	display: none;
}

/* ========== Mini-cart Elementor ==========
 * Container = lightbox full-screen (una sola capa de fondo).
 * Main = panel blanco 420px. Misma duración 0.3s para overlay y slide.
 */
.elementor-menu-cart__container {
	width: 100vw !important;
	max-width: 100vw !important;
	height: 100% !important;
	max-height: none !important;
	position: fixed !important;
	inset: 0 !important;
	left: 0 !important;
	right: 0 !important;
	top: 0 !important;
	bottom: 0 !important;
	background: rgba(40, 30, 30, 0.45) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	overflow: hidden !important;
	transform: none !important;
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
	transition: background-color 0.3s ease, opacity 0.3s ease, visibility 0s linear 0s !important;
	z-index: 9998 !important;
}
/* Cerrado: sin scale(0) de Elementor (provocaba doble ritmo con el panel) */
body.elementor-default .elementor-widget-woocommerce-menu-cart:not(.elementor-menu-cart--shown) .elementor-menu-cart__container,
.elementor-widget-woocommerce-menu-cart:not(.elementor-menu-cart--shown) .elementor-menu-cart__container {
	background: transparent !important;
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
	transform: none !important;
	transition: background-color 0.3s ease, opacity 0.3s ease, visibility 0s linear 0.3s !important;
}
/* Una sola capa: sin ::before duplicado en lightbox + widget */
.elementor-menu-cart__container.elementor-lightbox::before,
.elementor-menu-cart--shown::before,
.elementor-widget-woocommerce-menu-cart.elementor-menu-cart--shown::before {
	content: none !important;
	display: none !important;
	background: none !important;
}
.elementor-menu-cart__main {
	display: flex !important;
	flex-direction: column;
	width: 420px !important;
	max-width: 100vw !important;
	height: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
	left: auto !important;
	right: 0 !important;
	top: 0 !important;
	bottom: 0 !important;
	position: fixed !important;
	background: #fff !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	transform: translateX(0) !important;
	opacity: 1 !important;
	transition: transform 0.3s ease, opacity 0.3s ease !important;
	z-index: 9999 !important;
}
body.elementor-default .elementor-widget-woocommerce-menu-cart:not(.elementor-menu-cart--shown) .elementor-menu-cart__main,
.elementor-widget-woocommerce-menu-cart:not(.elementor-menu-cart--shown) .elementor-menu-cart__main {
	transform: translateX(100%) !important;
	opacity: 0 !important;
	pointer-events: none !important;
	transition: transform 0.3s ease, opacity 0.3s ease !important;
}
.elementor-menu-cart__close-button,
.elementor-menu-cart__close-button-custom {
	width: 32px !important;
	height: 32px !important;
	min-width: 32px !important;
	opacity: 1 !important;
	color: var(--ef-ink, #281e1e) !important;
}
.elementor-menu-cart__close-button::before,
.elementor-menu-cart__close-button::after,
.elementor-menu-cart__close-button-custom::before,
.elementor-menu-cart__close-button-custom::after {
	background-color: var(--ef-ink, #281e1e) !important;
	width: 18px !important;
	height: 1.5px !important;
}
.elementor-menu-cart__header,
.ef-mini-cart-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 20px 24px;
	border-bottom: 1px solid var(--ef-line);
}
.ef-mini-cart-header__title {
	margin: 0;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-weight: 600;
	font-size: 26px;
	line-height: 1.2;
	color: var(--ef-ink);
}
.ef-mini-cart-header__count {
	font-family: Manrope, sans-serif;
	font-size: 15px;
	font-weight: 400;
	color: var(--ef-muted);
	margin-left: 6px;
}

.elementor-menu-cart__products {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 8px 24px !important;
	margin: 0 !important;
}
.elementor-menu-cart__product {
	display: grid !important;
	grid-template-columns: 80px minmax(0, 1fr) 24px;
	grid-template-areas:
		"image name remove"
		"image price remove";
	column-gap: 14px;
	row-gap: 8px;
	align-items: start;
	padding: 16px 0 !important;
	border-bottom: 1px solid var(--ef-line) !important;
	margin: 0 !important;
}
.elementor-menu-cart__product-image {
	grid-area: image;
	width: 80px !important;
	margin: 0 !important;
}
.elementor-menu-cart__product-image a,
.elementor-menu-cart__product-image img {
	display: block;
	width: 80px !important;
	height: 100px !important;
	object-fit: cover;
	background: var(--ef-cream);
}
/* Evita nombre duplicado / texto sobre la miniatura */
.elementor-menu-cart__product-image a {
	font-size: 0 !important;
	line-height: 0 !important;
	overflow: hidden;
}
.elementor-menu-cart__product-image img {
	font-size: 0;
}
.elementor-menu-cart__product-name {
	grid-area: name;
	font-family: "Cormorant Garamond", Georgia, serif !important;
	font-size: 18px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	color: var(--ef-ink) !important;
	margin: 0 !important;
	position: static !important;
	min-width: 0;
}
.elementor-menu-cart__product-name a {
	color: var(--ef-ink) !important;
	text-decoration: none !important;
}
.elementor-menu-cart__product-price {
	grid-area: price;
	font-family: Manrope, sans-serif !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	color: var(--ef-ink) !important;
	margin: 0 !important;
	align-self: end;
}
.elementor-menu-cart__product-price .quantity,
.elementor-menu-cart__product-price .amount {
	font-family: Manrope, sans-serif !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	color: var(--ef-ink) !important;
	border: 0 !important;
	background: transparent !important;
	display: inline !important;
	padding: 0 !important;
	width: auto !important;
	min-width: 0 !important;
	min-height: 0 !important;
	max-width: none !important;
	box-shadow: none !important;
}
.elementor-menu-cart__product .variation,
.elementor-menu-cart__product dl.variation,
.elementor-menu-cart__product .wccf_cart_item_fields,
.ef-mini-cart-meta {
	display: block;
	font-family: Manrope, sans-serif;
	font-size: 12px;
	color: var(--ef-muted);
	margin: 6px 0 0;
	line-height: 1.45;
}
.elementor-menu-cart__product .variation dt,
.elementor-menu-cart__product .variation dd,
.elementor-menu-cart__product .wccf_cart_item_fields strong,
.elementor-menu-cart__product .wccf_cart_item_fields p {
	display: inline !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
	clear: none !important;
}
.elementor-menu-cart__product .variation dd::after {
	content: none !important;
}
.elementor-menu-cart__product .variation p {
	display: inline !important;
	margin: 0 !important;
}
.elementor-menu-cart__product .ef-mini-cart-more,
.ef-mini-cart-meta a {
	color: var(--ef-burgundy);
	text-decoration: underline;
	font-weight: 600;
	white-space: nowrap;
}
.elementor-menu-cart__product-remove {
	grid-area: remove;
	margin: 0 !important;
	justify-self: end;
	align-self: start !important;
	/* Elementor dibuja aquí un círculo (borde + radio = tamaño del botón). */
	position: static !important;
	top: auto !important;
	right: auto !important;
	bottom: auto !important;
	left: auto !important;
	inset: auto !important;
	width: 24px !important;
	height: 24px !important;
	min-width: 24px;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}
.elementor-menu-cart__product-remove a {
	position: static !important;
	top: auto !important;
	right: auto !important;
}
.elementor-menu-cart__product-remove .remove_from_cart_button,
.elementor-menu-cart__product-remove .elementor_remove_from_cart_button,
.elementor-menu-cart__product-remove a {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 24px !important;
	height: 24px !important;
	min-width: 24px;
	min-height: 24px;
	border: 0 !important;
	border-radius: 0 !important;
	color: transparent !important;
	background-color: transparent !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23281e1e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16'/%3E%3Cpath d='M9 7V4.8h6V7'/%3E%3Cpath d='M7.2 7l.8 12.2h8l.8-12.2'/%3E%3Cpath d='M10 11v5M14 11v5'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	background-size: 24px 24px !important;
	text-decoration: none !important;
	font-size: 0 !important;
	line-height: 1 !important;
	opacity: 1 !important;
	box-shadow: none !important;
}
.elementor-menu-cart__product-remove::before,
.elementor-menu-cart__product-remove::after,
.elementor-menu-cart__product-remove a::before,
.elementor-menu-cart__product-remove a::after {
	content: none !important;
	display: none !important;
	width: 0 !important;
	height: 0 !important;
	background: none !important;
	transform: none !important;
}
.elementor-menu-cart__product-remove a.remove_from_cart_button:not(.elementor_remove_from_cart_button) {
	display: none !important;
}
.elementor-menu-cart__product-remove a:hover {
	opacity: 0.55;
	background-color: transparent !important;
	border: 0 !important;
}
.elementor-menu-cart__product .variation dt:has(+ dd .ef-custom__open),
.elementor-menu-cart__product .variation dt.variation-custom {
	display: none !important;
}
.elementor-menu-cart__product .ef-custom__open--mini {
	display: inline;
	min-height: 0;
	margin: 0;
	padding: 2px 0;
	border: 0;
	background: transparent;
	color: var(--ef-burgundy);
	font-family: Manrope, sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.elementor-menu-cart__product .ef-custom__open--mini:hover {
	color: var(--ef-plum);
	background: transparent;
}

.elementor-menu-cart__subtotal {
	padding: 16px 24px 8px !important;
	border-top: 1px solid var(--ef-line);
	margin: 0 !important;
	display: flex !important;
	justify-content: space-between;
	align-items: baseline;
	font-family: Manrope, sans-serif !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	color: var(--ef-ink) !important;
}
.elementor-menu-cart__subtotal .amount {
	font-family: "Barlow Condensed", sans-serif !important;
	font-weight: 700 !important;
	font-size: 22px !important;
}

.elementor-menu-cart__footer-buttons {
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	padding: 8px 24px 24px !important;
	margin: 0 !important;
}
.elementor-menu-cart__footer-buttons .elementor-button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	min-height: 48px;
	border-radius: 0 !important;
	font-family: Manrope, sans-serif !important;
	font-weight: 700 !important;
	font-size: 13px !important;
	text-transform: uppercase !important;
	letter-spacing: 0.04em !important;
	padding: 12px 16px !important;
	box-shadow: none !important;
	text-decoration: none !important;
}
.elementor-menu-cart__footer-buttons .elementor-button--view-cart,
.elementor-menu-cart__footer-buttons a.elementor-button:first-child {
	background: #fff !important;
	color: var(--ef-ink) !important;
	border: 1px solid var(--ef-ink) !important;
}
.elementor-menu-cart__footer-buttons .elementor-button--checkout,
.elementor-menu-cart__footer-buttons a.elementor-button:last-child {
	background: var(--ef-gold) !important;
	color: var(--ef-ink) !important;
	border: 1px solid var(--ef-gold) !important;
}

/* Vacío mini-cart */
.elementor-menu-cart__products .woocommerce-mini-cart__empty-message,
.widget_shopping_cart_content .woocommerce-mini-cart__empty-message,
.elementor-menu-cart__main .woocommerce-mini-cart__empty-message {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	text-align: center;
	padding: 64px 24px !important;
	margin: 0 !important;
	color: var(--ef-muted);
	font-size: 14px;
	min-height: 280px;
}
.ef-mini-cart-empty-icon {
	width: 56px;
	height: 56px;
	background: var(--ef-yellow);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--ef-ink);
}
.ef-mini-cart-empty-icon svg {
	width: 28px;
	height: 28px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.7;
}
.ef-mini-cart-return {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--ef-gold) !important;
	color: var(--ef-ink) !important;
	border: 0 !important;
	border-radius: 0 !important;
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 14px 28px;
	min-height: 48px;
	text-decoration: none !important;
}

/* Overlay: solo el background del container (ver bloque Mini-cart arriba) */

/* ========== Tablet / intermedio: una columna antes de que la tabla se aplaste ========== */
@media (max-width: 1100px) {
	body.woocommerce-cart .page-content > .woocommerce,
	body.woocommerce-cart .entry-content > .woocommerce,
	body.woocommerce-cart .site-main .woocommerce:has(.woocommerce-cart-form) {
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 24px !important;
		padding: 36px 20px 64px;
	}
	body.woocommerce-cart .woocommerce-cart-form,
	body.woocommerce-cart .cart-collaterals {
		grid-column: 1 !important;
		width: 100% !important;
		max-width: none !important;
		position: static !important;
	}
	body.woocommerce-cart table.shop_table.cart thead tr,
	body.woocommerce-cart table.shop_table.cart tbody tr.cart_item {
		grid-template-columns: 88px minmax(0, 1.4fr) 64px 120px 64px 36px;
	}
}

/* ========== Móvil + tablet estrecho: tarjeta por ítem ========== */
@media (max-width: 900px) {
	.ef-cart-band {
		padding: 24px 0;
	}
	.ef-cart-band__inner {
		padding: 0 16px;
	}
	.ef-cart-band__title {
		font-size: 32px;
		line-height: 36px;
	}
	body.woocommerce-cart .page-content > .woocommerce,
	body.woocommerce-cart .entry-content > .woocommerce,
	body.woocommerce-cart .site-main .woocommerce:has(.woocommerce-cart-form),
	body.woocommerce-cart .woocommerce {
		padding: 24px 16px 120px;
		display: block !important;
		grid-template-columns: none !important;
	}
	body.woocommerce-cart .woocommerce:has(.woocommerce-cart-form):has(.cart-collaterals) {
		display: block !important;
		grid-template-columns: none !important;
	}
	body.woocommerce-cart .woocommerce-cart-form {
		padding: 20px 16px 24px;
	}
	body.woocommerce-cart .cart-collaterals {
		width: 100% !important;
		margin-top: 24px !important;
		position: static !important;
	}
	body.woocommerce-cart table.shop_table.cart thead {
		display: none !important;
	}
	/* Anula el modo "label: valor" de WooCommerce .shop_table_responsive */
	body.woocommerce-cart table.shop_table_responsive.cart tr,
	body.woocommerce-cart table.shop_table.cart tbody tr.cart_item {
		display: grid !important;
	}
	body.woocommerce-cart table.shop_table_responsive.cart td,
	body.woocommerce-cart table.shop_table.cart tbody tr.cart_item td {
		display: block !important;
		text-align: left !important;
		padding: 0 !important;
		border: 0 !important;
	}
	body.woocommerce-cart table.shop_table_responsive.cart td::before,
	body.woocommerce-cart table.shop_table.cart td::before {
		display: none !important;
		content: none !important;
		width: 0 !important;
		padding: 0 !important;
		margin: 0 !important;
	}
	body.woocommerce-cart table.shop_table.cart tbody tr.cart_item {
		grid-template-columns: 72px minmax(0, 1fr) 36px !important;
		grid-template-areas:
			"thumb name remove"
			"qty qty subtotal";
		gap: 12px !important;
		align-items: start !important;
		padding: 16px !important;
		margin-bottom: 12px !important;
		border: 1px solid var(--ef-line) !important;
		position: relative;
		overflow: hidden;
		box-sizing: border-box;
	}
	body.woocommerce-cart table.shop_table.cart td.product-thumbnail {
		grid-area: thumb;
		align-self: start;
	}
	body.woocommerce-cart table.shop_table.cart td.product-name {
		grid-area: name;
		min-width: 0;
		overflow-wrap: anywhere;
	}
	body.woocommerce-cart table.shop_table.cart td.product-remove {
		grid-area: remove;
		position: static !important;
		justify-self: end;
		align-self: start;
	}
	body.woocommerce-cart table.shop_table.cart td.product-price {
		display: none !important;
	}
	body.woocommerce-cart table.shop_table.cart td.product-quantity {
		grid-area: qty;
		align-self: center;
		justify-self: start;
		width: auto !important;
		max-width: 100%;
	}
	body.woocommerce-cart table.shop_table.cart td.product-quantity .quantity {
		margin: 0 !important;
	}
	body.woocommerce-cart table.shop_table.cart td.product-quantity .quantity .ef-qty-btn {
		width: 36px;
		min-width: 36px;
		flex: 0 0 36px;
	}
	body.woocommerce-cart table.shop_table.cart td.product-quantity .quantity .qty {
		width: 40px !important;
		min-width: 40px !important;
	}
	body.woocommerce-cart table.shop_table.cart td.product-subtotal {
		grid-area: subtotal;
		justify-self: end;
		align-self: center;
		text-align: right !important;
		white-space: nowrap;
		min-width: 0;
	}
	body.woocommerce-cart table.shop_table.cart td.product-subtotal .amount {
		font-size: 17px !important;
	}
	body.woocommerce-cart table.shop_table.cart td.product-thumbnail a,
	body.woocommerce-cart table.shop_table.cart td.product-thumbnail img {
		width: 72px !important;
		height: 90px !important;
	}
	body.woocommerce-cart .coupon,
	body.woocommerce-cart button[name="update_cart"],
	body.woocommerce-cart .coupon .button,
	body.woocommerce-cart button[name="apply_coupon"] {
		width: 100%;
	}
	body.woocommerce-cart .actions {
		display: flex;
		flex-direction: column;
		gap: 12px;
	}
	.ef-cart-sticky-bar {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 56px; /* encima de barra móvil EF si existe */
		z-index: 40;
		background: #fff;
		border-top: 1px solid var(--ef-line);
		padding: 12px 16px;
		box-shadow: 0 -4px 16px rgba(40, 30, 30, 0.06);
	}
	.ef-cart-sticky-bar__total {
		font-family: Manrope, sans-serif;
		font-size: 13px;
		font-weight: 600;
		color: var(--ef-ink);
	}
	.ef-cart-sticky-bar__total .amount {
		font-family: "Barlow Condensed", sans-serif;
		font-weight: 700;
		font-size: 18px;
		display: block;
	}
	.ef-cart-sticky-bar .checkout-button {
		flex: 1 1 auto;
		max-width: 60%;
		background: var(--ef-gold) !important;
		color: var(--ef-ink) !important;
		border-radius: 0 !important;
		font-weight: 700;
		font-size: 12px;
		text-transform: uppercase;
		text-align: center;
		padding: 12px 16px !important;
		min-height: 44px;
		text-decoration: none !important;
	}
	.elementor-menu-cart__container {
		width: 100vw !important;
	}
	.elementor-menu-cart__main {
		width: 100% !important;
		max-width: 100vw !important;
	}
}

/* Personalización: aviso + modal en el carrito */
.ef-custom {
	margin: 8px 0 0;
}
.ef-custom__status {
	margin: 0;
	font-family: Manrope, sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--ef-ink);
}
.ef-custom__open {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin: 6px 0 0;
	padding: 10px 14px;
	border: 1px solid var(--ef-line);
	background: var(--ef-cream-soft);
	font-family: Manrope, sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--ef-ink);
	text-decoration: none;
	cursor: pointer;
}
.ef-custom__open:hover {
	background: var(--ef-cream);
	border-color: var(--ef-ink);
	color: var(--ef-ink);
}
.ef-custom__open:focus-visible,
.ef-custom-modal__close:focus-visible {
	outline: 2px solid var(--ef-ink);
	outline-offset: 3px;
}
.ef-custom-modal[hidden] {
	display: none !important;
}
.ef-custom-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	padding: 24px 16px;
}
.ef-custom-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(40, 30, 30, 0.46);
}
.ef-custom-modal__panel {
	position: relative;
	width: min(440px, 100%);
	max-height: min(78vh, 640px);
	overflow: auto;
	background: #fff;
	color: var(--ef-ink);
	padding: 28px 28px 8px;
	box-shadow: 0 18px 40px rgba(40, 30, 30, 0.18);
	scrollbar-color: var(--ef-line) transparent;
}
.ef-custom-modal__panel ::selection {
	background: var(--ef-gold);
	color: var(--ef-ink);
}
.ef-custom-modal__title {
	margin: 0 44px 18px 0;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 28px;
	font-weight: 600;
	line-height: 1.15;
	color: var(--ef-ink);
}
.ef-custom-modal__close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: transparent;
	color: var(--ef-ink);
	cursor: pointer;
}
.ef-custom-modal__list {
	margin: 0;
}
.ef-custom-modal__row {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: 12px 16px;
	align-items: baseline;
	padding: 12px 0;
	border-top: 1px solid var(--ef-line);
}
.ef-custom-modal__row.is-long {
	grid-template-columns: 1fr;
}
.ef-custom-modal__row.is-long dd {
	text-align: left;
}
.ef-custom-modal__list dt {
	margin: 0;
	font-family: Manrope, sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--ef-ink);
}
.ef-custom-modal__list dd {
	margin: 0;
	font-family: Manrope, sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.45;
	color: var(--ef-ink);
	text-align: right;
	overflow-wrap: anywhere;
}
body.ef-custom-lock {
	overflow: hidden;
}
@media (max-width: 480px) {
	.ef-custom-modal__panel {
		padding: 24px 20px 8px;
	}
	.ef-custom-modal__title {
		font-size: 24px;
	}
	.ef-custom-modal__row,
	.ef-custom-modal__row.is-long {
		grid-template-columns: 1fr;
		gap: 2px;
	}
	.ef-custom-modal__list dd {
		text-align: left;
	}
}
@media (prefers-reduced-motion: no-preference) {
	.ef-custom-modal__panel {
		animation: ef-custom-in 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
	}
}
@keyframes ef-custom-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
