/* ==========================================================================
   CARRITO EMERGENTE (Side Cart) — estilos de la marca
   --------------------------------------------------------------------------
   Paleta: negro #090302 · texto #2A211F · suave #6D625F · borde #E7DCD9
           crema #FBF7EC · cobalto #2F4596 · rojo marca #C4533F (hover #A8432F)
           verde de ahorro #0B6650 sobre #EAF6F1
   Tipografías del sitio: Nourd (títulos y cifras) y Muli (texto).
   Los selectores llevan ".xoo-wsc-container" delante y algunos !important porque
   el plugin escribe sus colores en un <style> propio en cada página.
   ========================================================================== */

/* --- Tipografía: todo el carrito hereda la fuente del sitio --- */
.xoo-wsc-container,
.xoo-wsc-container * {
	font-family: 'Muli', sans-serif !important;
}
/* Los iconos del plugin usan su propia fuente: no se tocan */
.xoo-wsc-container [class*="xoo-wsc-icon-"],
.xoo-wsc-container [class^="xoo-wsc-icon"],
.xoo-wsc-container .xoo-wsc-bki,
.xoo-wsc-container .xoo-wsch-icon,
.xoo-wsc-container .xoo-wsch-bki {
	font-family: 'Woo-Side-Cart' !important;
}
.xoo-wsc-container .xoo-wsch-text,
.xoo-wsc-container .xoo-wsc-ft-amt-subtotal .xoo-wsc-ft-amt-label,
.xoo-wsc-container .xoo-wsc-ft-amt-subtotal .xoo-wsc-ft-amt-value,
.xoo-wsc-container .xoo-wsc-smr-ptotal {
	font-family: 'nourd', 'Muli', sans-serif !important;
	font-weight: 700;
}
.xoo-wsc-container .xoo-wsch-text {
	font-size: 22px;
	color: #090302;
}

/* --- Tarjeta de producto: el título ocupa todo el ancho --- */
.xoo-wsc-container .xoo-wsc-sum-col { position: relative; }

.xoo-wsc-container .xoo-wsc-sm-info {
	position: relative;
	display: grid !important;
	grid-template-columns: 1fr auto;
	grid-template-rows: auto repeat(4, auto);
	column-gap: 10px;
	align-items: start;
}
/* La columna izquierda "desaparece" como caja: sus hijos entran en la cuadrícula */
.xoo-wsc-container .xoo-wsc-sm-left { display: contents !important; }

.xoo-wsc-container .xoo-wsc-pname {
	grid-column: 1 / -1;
	grid-row: 1;
	padding-right: 28px;            /* espacio para el icono de borrar */
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: #090302;
	margin-bottom: 4px;
}
.xoo-wsc-container .xoo-wsc-pname a { color: inherit; font-size: inherit; font-weight: inherit; }

/* Variaciones, cantidad y precio: columna izquierda */
.xoo-wsc-container .xoo-wsc-sm-left > *:not(.xoo-wsc-pname) {
	grid-column: 1;
	font-size: 14px;
	line-height: 1.4;
	color: #2a211f;
}
.xoo-wsc-container .xoo-wsc-sml-qty { font-weight: 600; }

/* Precio: tachado en suave y precio actual en negrita */
.xoo-wsc-container .xoo-wsc-pprice { font-size: 14px; color: #6d625f; }
.xoo-wsc-container .xoo-wsc-pprice del { color: #6d625f; }
.xoo-wsc-container .xoo-wsc-pprice ins {
	background: none;
	text-decoration: none;
	font-weight: 800;
	color: #090302;
}

/* Columna derecha: insignia de ahorro + total, abajo a la derecha */
.xoo-wsc-container .xoo-wsc-sm-right {
	grid-column: 2;
	grid-row: 2 / 6;
	align-self: end;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
}
.xoo-wsc-container .xoo-wsc-smr-del {
	position: absolute;
	top: 0;
	right: 0;
	font-size: 16px;
	color: #6d625f;
	cursor: pointer;
}
.xoo-wsc-container .xoo-wsc-smr-del:hover { color: #c4533f; }

/* Insignia "Ahorro 5%" */
.xoo-wsc-container .xoo-wsc-psavings {
	border: 1px solid #0b6650 !important;
	background: #eaf6f1;
	color: #0b6650 !important;
	border-radius: 999px !important;
	padding: 2px 10px !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	line-height: 1.5;
	white-space: nowrap;
}
.xoo-wsc-container .xoo-wsc-psavings * { color: inherit !important; }

/* Total de la línea: con 1 unidad se oculta (era igual al precio) */
.xoo-wsc-container .xoo-wsc-product:has(.elf-q1) .xoo-wsc-smr-ptotal { display: none !important; }
/* Con 2 o más unidades se rotula para que no parezca un precio repetido */
.xoo-wsc-container .xoo-wsc-smr-ptotal {
	font-size: 17px;
	color: #090302;
	text-align: right;
}
.xoo-wsc-container .xoo-wsc-smr-ptotal::before {
	content: 'Total';
	display: block;
	font-family: 'Muli', sans-serif;
	font-size: 12px;
	font-weight: 600;
	color: #6d625f;
	line-height: 1.2;
}

/* --- Pie: totales --- */
.xoo-wsc-container .xoo-wsc-footer {
	border-top: 1px solid #e7dcd9;
	padding: 14px 16px 16px;
}
.xoo-wsc-container .xoo-wsc-ft-totals { margin-bottom: 8px; }

/* Línea de ahorro: recuadro verde suave (antes verde claro sobre blanco, poco legible) */
.xoo-wsc-container .xoo-wsc-ft-amt-savings {
	background: #eaf6f1;
	border-radius: 10px;
	padding: 8px 12px !important;
	margin-bottom: 8px;
}
.xoo-wsc-container .xoo-wsc-ft-amt-savings .xoo-wsc-ft-amt-label,
.xoo-wsc-container .xoo-wsc-ft-amt-savings .xoo-wsc-ft-amt-value,
.xoo-wsc-container .xoo-wsc-ft-amt-savings .xoo-wsc-ft-amt-value * {
	color: #0b6650 !important;
	font-size: 15px !important;
	font-weight: 700 !important;
}
.xoo-wsc-container .xoo-wsc-ft-amt-subtotal .xoo-wsc-ft-amt-label,
.xoo-wsc-container .xoo-wsc-ft-amt-subtotal .xoo-wsc-ft-amt-value,
.xoo-wsc-container .xoo-wsc-ft-amt-subtotal .xoo-wsc-ft-amt-value * {
	color: #090302 !important;
	font-size: 20px !important;
}

/* Texto aclaratorio */
.xoo-wsc-container .xoo-wsc-footer-txt {
	display: block;
	margin: 6px 0 12px;
	font-size: 14px;
	line-height: 1.5;
	color: #6d625f;
	text-align: left;
}
.xoo-wsc-container .xoo-wsc-footer-txt strong { color: #090302; }

/* --- Botones: el principal (rojo de marca) va primero --- */
.xoo-wsc-container .xoo-wsc-ft-buttons-cont {
	display: flex !important;
	flex-direction: column;
	gap: 10px;
}
.xoo-wsc-container a.xoo-wsc-ft-btn {
	display: flex !important;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	margin: 0 !important;
	padding: 10px 20px !important;
	border-radius: 12px !important;
	border: 2px solid transparent !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	line-height: 1.2;
	text-decoration: none;
	text-align: center;
	transition: background-color .15s, color .15s, border-color .15s;
}
.xoo-wsc-container a.xoo-wsc-ft-btn:focus-visible { outline: 3px solid #daa520; outline-offset: 2px; }

/* Principal: Continuar a envío (blanco sobre rojo marca: contraste 4,5:1) */
body .xoo-wsc-container a.xoo-wsc-ft-btn.xoo-wsc-ft-btn-checkout {
	order: 1;
	background: #c4533f !important;
	border-color: #c4533f !important;
	color: #fff !important;
}
body .xoo-wsc-container a.xoo-wsc-ft-btn.xoo-wsc-ft-btn-checkout:hover {
	background: #a8432f !important;
	border-color: #a8432f !important;
}

/* Secundario: Ver carrito (fondo negro, texto blanco) */
body .xoo-wsc-container a.xoo-wsc-ft-btn.xoo-wsc-ft-btn-cart {
	order: 2;
	background: #090302 !important;
	border-color: #090302 !important;
	color: #fff !important;
}
body .xoo-wsc-container a.xoo-wsc-ft-btn.xoo-wsc-ft-btn-cart:hover {
	background: #2a211f !important;
	border-color: #2a211f !important;
}

/* Terciario: Continuar comprando (fondo cobalto, texto blanco: contraste 8,6:1) */
body .xoo-wsc-container a.xoo-wsc-ft-btn.xoo-wsc-ft-btn-continue {
	order: 3;
	background: #2f4596 !important;
	border-color: #2f4596 !important;
	color: #fff !important;
}
body .xoo-wsc-container a.xoo-wsc-ft-btn.xoo-wsc-ft-btn-continue:hover {
	background: #243778 !important;
	border-color: #243778 !important;
}

/* Celular: un poco más compacto */
@media (max-width: 480px) {
	.xoo-wsc-container .xoo-wsc-footer { padding: 12px 12px 14px; }
	.xoo-wsc-container .xoo-wsc-pname { font-size: 14px; }
	/* Título del carrito en una sola línea */
	.xoo-wsc-container .xoo-wsch-text { font-size: 19px; white-space: nowrap; }
	/* Imagen más angosta: deja más ancho al texto y a los precios */
	.xoo-wsc-container .xoo-wsc-img-col {
		flex: 0 0 76px !important;
		width: 76px !important;
		max-width: 76px !important;
	}
	/* Precio: texto más chico para que "Precio unidad: $7.000 $5.000" quepa en pocas líneas */
	.xoo-wsc-container .xoo-wsc-pprice { font-size: 13px; }
	.xoo-wsc-container .xoo-wsc-sum-col { padding-left: 4px !important; }
}
