/* ==================================================================
   WCBV Minimal Stepper — estilos
   ------------------------------------------------------------------
   Personalización rápida: cambiá estas variables y listo.
   ================================================================== */
:root {
	--wcbvms-line:        #f0f0f0;  /* líneas horizontales de la tabla   */
	--wcbvms-line-strong: #e0e0e0;  /* línea bajo encabezados y stepper  */
	--wcbvms-text:        #111111;  /* texto y números                   */
	--wcbvms-muted:       #8a8a8a;  /* encabezados (S, M, L, 34, 36...)  */
	--wcbvms-accent:      #111111;  /* borde del stepper activo / foco   */
	--wcbvms-hover:       #f5f5f5;  /* hover de los botones + / −        */
	--wcbvms-radius:      0;        /* 0 = punta recta | 4px = suave     */
}

/* ==== Tabla minimalista ========================================== */
.wc-bulk-variations-table {
	border: 0 !important;
	box-shadow: none !important;
}

/* Oculta la columna de encabezados de fila ("Talle" / "Price"):
   con un solo atributo es redundante. Si algún día la querés ver,
   borrá este bloque completo. */
.wc-bulk-variations-table .wcbvp-row-header {
	display: none !important;
}
.wc-bulk-variations-table.wc-bulk-variations-grid {
	grid-template-columns: repeat(var(--v, 3), minmax(0, 1fr)) !important;
}

.wc-bulk-variations-table .wcbvp-header,
.wc-bulk-variations-table .wcbvp-cell {
	background: transparent !important;
	border: 0 !important;
	border-bottom: 1px solid var(--wcbvms-line) !important;
	padding: 14px 8px !important;
	vertical-align: middle;
}

/* Encabezados centrados sobre cada stepper */
.wc-bulk-variations-table .wcbvp-header {
	border-bottom-color: var(--wcbvms-line-strong) !important;
	font-size: 11px !important;
	font-weight: 600 !important;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--wcbvms-muted) !important;
	text-align: center !important;
}
.wc-bulk-variations-table .wcbvp-header .wcbvp-header-block {
	display: flex;
	justify-content: center;
}

/* Quita el fondo alternado de columnas y cualquier hover de celda */
.wc-bulk-variations-table .wcbvp-v-alt {
	background: transparent !important;
}
.wc-bulk-variations-table .wcbvp-cell:hover {
	background: transparent !important;
}

.wc-bulk-variations-table .wcbvp-cell {
	text-align: center;
}

.wc-bulk-variations-table .wcbvp-form-variation {
	display: flex;
	justify-content: center;
}

/* ==== FIX: elementos ajenos superpuestos ========================= */
/* Botones de cantidad que agregan algunos themes/plugins sobre el
   input (cuadraditos grises en hover). Los ocultamos: interceptaban
   el clic del + y provocaban el bug visual. */
.wcbvp-quantity-field .plus,
.wcbvp-quantity-field .minus,
.wcbvp-quantity-field .qty-button,
.wcbvp-quantity-field .quantity-button,
.wcbvp-quantity-field .qib-button,
.wcbvp-quantity-field input[type="button"],
.wcbvp-quantity-field button:not(.wcbv-ms-btn) {
	display: none !important;
}

/* Los divs vacíos stock/description del plugin no deben tapar nada */
.wc-bulk-variations-table .wcbvp-cell .stock,
.wc-bulk-variations-table .wcbvp-cell .description {
	pointer-events: none;
}
.wc-bulk-variations-table .wcbvp-cell .stock:empty,
.wc-bulk-variations-table .wcbvp-cell .description:empty {
	display: none !important;
}

/* Ningún pseudo-elemento decorativo sobre las celdas */
.wc-bulk-variations-table .wcbvp-cell::before,
.wc-bulk-variations-table .wcbvp-cell::after {
	display: none !important;
}

/* ==== Stepper rectangular compacto ( − cantidad + ) ============== */
.wcbv-ms-stepper {
	position: relative;
	z-index: 2; /* siempre por encima de overlays del theme */
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--wcbvms-line-strong);
	border-radius: var(--wcbvms-radius) !important;
	background: #fff;
	overflow: hidden;
	transition: border-color .15s ease;
}

/* Con foco o con cantidad > 0, el borde se marca */
.wcbv-ms-stepper:focus-within,
.wcbv-ms-stepper.has-qty {
	border-color: var(--wcbvms-accent);
}

.wcbv-ms-btn {
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--wcbvms-text) !important;
	font-size: 14px;
	font-weight: 400;
	line-height: 1 !important;
	cursor: pointer;
	transition: background .15s ease, opacity .15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.wcbv-ms-btn:hover {
	background: var(--wcbvms-hover) !important;
}

.wcbv-ms-btn:focus {
	outline: none;
}

.wcbv-ms-btn:disabled {
	opacity: .3;
	cursor: default;
	background: transparent !important;
}

.wcbv-ms-stepper input.wcbvp-quantity {
	width: 30px !important;
	height: 24px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	color: var(--wcbvms-text);
	-moz-appearance: textfield;
	appearance: textfield;
}

/* Oculta las flechitas nativas del input number */
.wcbv-ms-stepper input.wcbvp-quantity::-webkit-outer-spin-button,
.wcbv-ms-stepper input.wcbvp-quantity::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* ==== Totales ==================================================== */
.wcbvp-total-wrapper .wcbvp_total_label {
	color: var(--wcbvms-muted);
}

.wcbvp-total-wrapper .wcbvp_total_items,
.wcbvp-total-wrapper .wcbvp_total_price {
	font-weight: 700;
	color: var(--wcbvms-text);
}

/* ==== Mobile ===================================================== */
@media (max-width: 600px) {
	.wc-bulk-variations-table .wcbvp-header,
	.wc-bulk-variations-table .wcbvp-cell {
		padding: 10px 4px !important;
	}
}
