/* ==========================================================================
   DG-CYT — Fast Wholesale Matrix & Swatches (MODO CLARO 100% RESPONSIVO)
   Optimizado para que NUNCA se recorte texto en móviles ni colisionen elementos
   ========================================================================== */

.dg-fast-matrix-container {
	margin: 1.25rem 0;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.05);
	width: 100%;
	box-sizing: border-box;
}

/* Cabecera & Buscador rápido */
.dg-fast-matrix-header {
	background: #f8fafc;
	padding: 0.85rem 1rem;
	border-bottom: 1px solid #e2e8f0;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.dg-fast-matrix-title-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.dg-fast-matrix-title {
	font-size: 0.92rem;
	font-weight: 800;
	color: #0f172a;
	display: flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0;
	line-height: 1.2;
}

.dg-fast-matrix-title i {
	color: #c31b24;
	font-size: 0.95rem;
}

.dg-fast-matrix-count-badge {
	background: #fee2e2;
	color: #991b1b;
	font-size: 0.72rem;
	font-weight: 700;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	white-space: nowrap;
	flex-shrink: 0;
}

/* Campo de búsqueda (Flex container: jamás se enciman) */
.dg-matrix-search-wrap {
	display: flex !important;
	align-items: center !important;
	background: #ffffff !important;
	border: 1.5px solid #cbd5e1 !important;
	border-radius: 8px !important;
	padding: 0.45rem 0.75rem !important;
	gap: 0.65rem !important;
	transition: all 0.2s ease !important;
	width: 100% !important;
	box-sizing: border-box !important;
	position: relative !important;
}

.dg-matrix-search-wrap:focus-within {
	border-color: #c31b24 !important;
	box-shadow: 0 0 0 3px rgba(195, 27, 36, 0.12) !important;
}

.dg-matrix-search-icon {
	color: #94a3b8 !important;
	font-size: 0.88rem !important;
	flex-shrink: 0 !important;
	position: static !important;
	transform: none !important;
	pointer-events: none !important;
}

.dg-matrix-search-wrap input.dg-matrix-search-input {
	border: none !important;
	outline: none !important;
	background: transparent !important;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
	width: 100% !important;
	height: auto !important;
	font-size: 0.88rem !important;
	font-weight: 500 !important;
	color: #0f172a !important;
	line-height: 1.4 !important;
}

.dg-matrix-search-wrap input.dg-matrix-search-input::placeholder {
	color: #94a3b8 !important;
	opacity: 1 !important;
}

/* Grilla / Lista de Variantes */
.dg-fast-matrix-list {
	max-height: 420px;
	overflow-y: auto;
	overflow-x: hidden;
	scrollbar-width: thin;
	scrollbar-color: #cbd5e1 #f8fafc;
	background: #ffffff;
}

.dg-fast-matrix-list::-webkit-scrollbar {
	width: 5px;
}

.dg-fast-matrix-list::-webkit-scrollbar-track {
	background: #f8fafc;
}

.dg-fast-matrix-list::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 4px;
}

/* Fila individual */
.dg-fast-matrix-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.75rem 1rem;
	border-bottom: 1px solid #f1f5f9;
	transition: background 0.15s ease;
	gap: 0.75rem;
	background: #ffffff;
	box-sizing: border-box;
}

.dg-fast-matrix-row:last-child {
	border-bottom: none;
}

.dg-fast-matrix-row:hover {
	background: #f8fafc;
}

/* Fila activa con unidades */
.dg-fast-matrix-row.has-selected-qty {
	background: #fff5f5;
	border-left: 3px solid #c31b24;
}

/* Info del Tono */
.dg-matrix-item-info {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex: 1;
	min-width: 0; /* Permite que el flex child se encoja correctamente */
}

.dg-matrix-swatch-circle {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	flex-shrink: 0;
	border: 2px solid #ffffff;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dg-matrix-name-wrap {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
}

/* Titulo del tono: NUNCA recortar con puntos suspensivos */
.dg-matrix-item-title {
	font-size: 0.9rem;
	font-weight: 700;
	color: #0f172a;
	white-space: normal; /* Permite wrap natural del texto */
	word-break: break-word;
	line-height: 1.25;
	margin: 0;
}

.dg-matrix-item-meta {
	font-size: 0.78rem;
	color: #64748b;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.2rem;
	flex-wrap: wrap;
}

.dg-matrix-item-price {
	color: #0f172a;
	font-weight: 700;
	white-space: nowrap;
}

.dg-matrix-item-sku {
	color: #94a3b8;
	font-size: 0.72rem;
	white-space: nowrap;
}

/* Control de Cantidad (Spinner Compacto y Táctil) */
.dg-matrix-actions-wrap {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.dg-matrix-qty-spinner {
	display: inline-flex;
	align-items: center;
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.dg-matrix-qty-btn {
	width: 32px;
	height: 32px;
	border: none;
	background: #ffffff;
	color: #334155;
	font-size: 1.1rem;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.15s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	user-select: none;
	line-height: 1;
	padding: 0;
}

.dg-matrix-qty-btn:hover {
	background: #e2e8f0;
	color: #0f172a;
}

.dg-matrix-qty-btn:active {
	background: #cbd5e1;
}

.dg-matrix-qty-input {
	width: 38px;
	height: 32px;
	border: none;
	background: transparent;
	color: #0f172a;
	text-align: center;
	font-size: 0.92rem;
	font-weight: 800;
	-moz-appearance: textfield;
	outline: none;
	padding: 0;
}

.dg-matrix-qty-input::-webkit-outer-spin-button,
.dg-matrix-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Barra Inferior de Acción Masiva */
.dg-fast-matrix-footer {
	background: #f8fafc;
	padding: 1rem 1.15rem;
	border-top: 1px solid #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	box-sizing: border-box;
}

.dg-matrix-live-summary {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.dg-matrix-live-count {
	font-size: 0.8rem;
	color: #64748b;
	line-height: 1.2;
}

.dg-matrix-live-count strong {
	color: #0f172a;
}

.dg-matrix-live-total {
	font-size: 1.25rem;
	font-weight: 800;
	color: #0f172a;
	line-height: 1.2;
	margin-top: 0.15rem;
}

/* Botón Añadir al Carrito (Rojo corporativo pill, idéntico a la tienda) */
.dg-matrix-submit-all-btn {
	background: #c31b24;
	color: #ffffff;
	border: none;
	border-radius: 999px;
	padding: 0.75rem 1.65rem;
	font-weight: 800;
	font-size: 0.88rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 6px 20px rgba(195, 27, 36, 0.3);
	white-space: nowrap;
	flex-shrink: 0;
}

.dg-matrix-submit-all-btn:hover:not(:disabled) {
	background: #a9141c;
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(195, 27, 36, 0.4);
}

.dg-matrix-submit-all-btn:active:not(:disabled) {
	transform: translateY(0);
}

.dg-matrix-submit-all-btn:disabled {
	opacity: 0.45;
	background: #94a3b8;
	cursor: not-allowed;
	box-shadow: none;
	transform: none;
}

.dg-matrix-submit-all-btn.is-loading {
	pointer-events: none;
	opacity: 0.85;
}

/* Mensaje sin resultados */
.dg-matrix-empty-search {
	padding: 2rem 1rem;
	text-align: center;
	color: #64748b;
	font-size: 0.85rem;
	font-weight: 500;
}

/* ==========================================================================
   AJUSTES RESPONSIVOS MOBILE (< 576px / Pantallas de teléfonos)
   ========================================================================== */
@media (max-width: 576px) {
	.dg-fast-matrix-container {
		margin: 1rem 0;
		border-radius: 10px;
	}

	.dg-fast-matrix-header {
		padding: 0.75rem 0.85rem;
		gap: 0.5rem;
	}

	.dg-fast-matrix-title {
		font-size: 0.88rem;
	}

	.dg-fast-matrix-row {
		padding: 0.65rem 0.75rem;
		gap: 0.6rem;
	}

	.dg-matrix-item-info {
		gap: 0.6rem;
	}

	.dg-matrix-swatch-circle {
		width: 26px;
		height: 26px;
	}

	.dg-matrix-item-title {
		font-size: 0.88rem;
		line-height: 1.25;
		white-space: normal !important;
	}

	.dg-matrix-item-meta {
		margin-top: 0.1rem;
		gap: 0.4rem;
	}

	.dg-matrix-item-price {
		font-size: 0.82rem;
	}

	/* Ocultar el SKU en pantallas móviles para no ensuciar la fila ni chocar */
	.dg-matrix-item-sku {
		display: none !important;
	}

	/* Spinner compacto en teléfono */
	.dg-matrix-qty-spinner {
		border-radius: 6px;
	}

	.dg-matrix-qty-btn {
		width: 30px;
		height: 30px;
		font-size: 1rem;
	}

	.dg-matrix-qty-input {
		width: 34px;
		height: 30px;
		font-size: 0.88rem;
	}

	/* Footer vertical en móviles */
	.dg-fast-matrix-footer {
		flex-direction: column;
		align-items: stretch;
		padding: 0.85rem;
		gap: 0.75rem;
		text-align: center;
	}

	.dg-matrix-live-summary {
		align-items: center;
	}

	.dg-matrix-live-count {
		font-size: 0.78rem;
	}

	.dg-matrix-live-total {
		font-size: 1.2rem;
	}

	.dg-matrix-submit-all-btn {
		width: 100%;
		padding: 0.8rem 1rem;
		font-size: 0.88rem;
		border-radius: 999px;
	}
}

/* ==========================================================================
   DG-CYT — Smart Composite / Promo Bundles Styling (Modo Claro & Responsivo)
   ========================================================================== */

.dg-composite-product-container {
	margin: 1.25rem 0;
	width: 100%;
}

/* Contenedor principal de componentes */
.dg-composite-product-container .wooco_components {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	margin-bottom: 1.5rem;
}

/* Cada bloque de componente (ej: Tinturas, Oxidantes, etc.) */
/* Cada bloque de componente (ej: Tinturas, Oxidantes, etc.) */
.dg-composite-product-container .wooco_component {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 1.15rem;
	box-shadow: 0 2px 8px -1px rgba(0, 0, 0, 0.04);
	box-sizing: border-box;
	width: 100% !important;
	max-width: 100% !important;
	overflow: visible !important;
}

/* Forzar ancho completo y display block en contenedores internos para evitar que se pongan al costado */
.dg-composite-product-container .wooco_component .wooco_component_product {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	box-sizing: border-box !important;
}

/* Contenedor de selección de productos con scroll vertical automático y altura controlada */
.dg-composite-product-container .wooco_component .wooco_component_product_selection,
.wooco_component_product_selection {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	max-height: 460px !important;
	overflow-y: scroll !important;
	overflow-x: hidden !important;
	-webkit-overflow-scrolling: touch;
	margin: 0 !important;
	padding: 4px !important;
	box-sizing: border-box !important;
}

/* Scrollbar estilizado */
.dg-composite-product-container .wooco_component_product_selection::-webkit-scrollbar,
.dg-composite-product-container .wooco_component_product_selection_list::-webkit-scrollbar,
.wooco_component_product_selection::-webkit-scrollbar {
	width: 6px;
}
.dg-composite-product-container .wooco_component_product_selection::-webkit-scrollbar-track,
.dg-composite-product-container .wooco_component_product_selection_list::-webkit-scrollbar-track,
.wooco_component_product_selection::-webkit-scrollbar-track {
	background: #f1f5f9;
	border-radius: 999px;
}
.dg-composite-product-container .wooco_component_product_selection::-webkit-scrollbar-thumb,
.dg-composite-product-container .wooco_component_product_selection_list::-webkit-scrollbar-thumb,
.wooco_component_product_selection::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 999px;
}
.dg-composite-product-container .wooco_component_product_selection::-webkit-scrollbar-thumb:hover,
.dg-composite-product-container .wooco_component_product_selection_list::-webkit-scrollbar-thumb:hover,
.wooco_component_product_selection::-webkit-scrollbar-thumb:hover {
	background: #94a3b8;
}

/* Título del componente */
.dg-composite-product-container .wooco_component_name {
	font-size: 0.98rem;
	font-weight: 800;
	color: #0f172a;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
	line-height: 1.3;
}

.dg-composite-product-container .wooco_component_desc {
	font-size: 0.82rem;
	color: #64748b;
	margin-bottom: 0.75rem;
}

/* Buscador en tiempo real de tonos/productos dentro del combo */
.dg-composite-product-container .dg-composite-search-wrap {
	display: flex !important;
	align-items: center !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0.5rem 0 0.85rem 0 !important;
	box-sizing: border-box !important;
}

.dg-composite-product-container .dg-composite-search-input {
	width: 100% !important;
	border: 1.5px solid #cbd5e1 !important;
	border-radius: 8px !important;
	padding: 0.55rem 0.85rem 0.55rem 2.2rem !important;
	font-size: 0.88rem !important;
	background-color: #ffffff !important;
	outline: none !important;
	box-sizing: border-box !important;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
	transition: all 0.2s ease !important;
}

.dg-composite-product-container .dg-composite-search-input:focus {
	border-color: #c31b24 !important;
	box-shadow: 0 0 0 3px rgba(195, 27, 36, 0.12) !important;
}

/* Grid de selección de productos dentro de un componente */
.dg-composite-product-container .wooco_component_product_selection_grid,
.wooco_component_product_selection_grid {
	width: 100% !important;
	max-width: 100% !important;
	padding: 4px !important;
	margin: 0 !important;
	box-sizing: border-box !important;
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 12px !important;
	overflow: visible !important;
}

@media (max-width: 576px) {
	.dg-composite-product-container .wooco_component_product_selection_grid,
	.wooco_component_product_selection_grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 8px !important;
	}
}

/* CARDS INDIVIDUALES: Override completo contra el ancho 33% del plugin WPC */
.dg-composite-product-container .wooco_component_product_selection_grid_item,
.dg-composite-product-container .wooco_component_product_selection_grid .wooco_component_product_selection_grid_item,
.wooco_component_layout_grid_2 .wooco_component_product_selection_grid .wooco_component_product_selection_grid_item,
.wooco_component_layout_grid_3 .wooco_component_product_selection_grid .wooco_component_product_selection_grid_item,
.wooco_component_layout_grid_4 .wooco_component_product_selection_grid .wooco_component_product_selection_grid_item,
.wooco_component_product_selection_grid .wooco_component_product_selection_grid_item,
.wooco_component_product_selection_grid_item {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	margin: 0 !important;
	background: #ffffff !important;
	border: 1.5px solid #e2e8f0 !important;
	border-radius: 12px !important;
	padding: 12px 8px 12px !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: flex-start !important;
	text-align: center !important;
	box-sizing: border-box !important;
	transition: all 0.2s ease !important;
	position: relative !important;
	cursor: pointer !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

.dg-composite-product-container .wooco_component_product_selection_grid_item:hover,
.wooco_component_product_selection_grid .wooco_component_product_selection_grid_item:hover {
	border-color: #cbd5e1 !important;
	background: #f8fafc !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06) !important;
}

.dg-composite-product-container .wooco_component_product_selection_grid_item.wooco_item_selected,
.wooco_component_product_selection_grid .wooco_component_product_selection_grid_item.wooco_item_selected {
	border-color: #c31b24 !important;
	background: #fffafa !important;
	box-shadow: 0 0 0 1.5px #c31b24, 0 4px 12px rgba(195, 27, 36, 0.12) !important;
}

/* Badge Checkmark elegante en esquina superior derecha (oculta el verde nativo de WPC) */
.dg-composite-product-container .wooco_component_product_selection_grid_item:before,
.wooco_component_product_selection_grid .wooco_component_product_selection_grid_item:before,
.wooco_component_product_selection_grid_item:before {
	content: "✓" !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 22px !important;
	height: 22px !important;
	line-height: 22px !important;
	font-size: 12px !important;
	font-weight: 800 !important;
	position: absolute !important;
	top: 8px !important;
	right: 8px !important;
	left: auto !important;
	z-index: 5 !important;
	border-radius: 6px !important;
	border: 1.5px solid #cbd5e1 !important;
	background-color: #ffffff !important;
	color: transparent !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
	box-sizing: border-box !important;
	transition: all 0.15s ease !important;
}

/* Círculo tipo Radio para componentes de selección única */
.dg-composite-product-container .wooco_component:not(.wooco_component_multiple) .wooco_component_product_selection_grid_item:before,
.wooco_component:not(.wooco_component_multiple) .wooco_component_product_selection_grid .wooco_component_product_selection_grid_item:before {
	border-radius: 50% !important;
}

/* Estado Seleccionado: Rojo institucional DG con tilde blanca */
.dg-composite-product-container .wooco_component_product_selection_grid_item.wooco_item_selected:before,
.wooco_component_product_selection_grid .wooco_component_product_selection_grid_item.wooco_item_selected:before,
.wooco_component_product_selection_grid_item.wooco_item_selected:before {
	background-color: #c31b24 !important;
	border-color: #c31b24 !important;
	color: #ffffff !important;
}

/* Ocultar enlace con icono de lupa/open de WPC */
.dg-composite-product-container .wooco_component_product_selection_grid_item_link,
.wooco_component_product_selection_grid_item_link {
	display: none !important;
}

/* Imagen del producto dentro de la card */
.dg-composite-product-container .wooco_component_product_selection_grid_item .wooco_component_product_selection_grid_item_image,
.wooco_component_product_selection_grid .wooco_component_product_selection_grid_item .wooco_component_product_selection_grid_item_image {
	width: 100% !important;
	height: 80px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin: 2px 0 8px 0 !important;
	padding: 0 !important;
}

.dg-composite-product-container .wooco_component_product_selection_grid_item .wooco_component_product_selection_grid_item_image img,
.wooco_component_product_selection_grid .wooco_component_product_selection_grid_item .wooco_component_product_selection_grid_item_image img {
	max-width: 75px !important;
	max-height: 80px !important;
	width: auto !important;
	height: auto !important;
	object-fit: contain !important;
	margin: 0 auto !important;
}

/* Información de la card */
.dg-composite-product-container .wooco_component_product_selection_grid_item .wooco_component_product_selection_grid_item_info,
.wooco_component_product_selection_grid .wooco_component_product_selection_grid_item .wooco_component_product_selection_grid_item_info {
	width: 100% !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: flex-start !important;
	flex-grow: 1 !important;
}

/* Nombre del producto */
.dg-composite-product-container .wooco_component_product_selection_grid_item .wooco_component_product_selection_grid_item_name,
.wooco_component_product_selection_grid .wooco_component_product_selection_grid_item .wooco_component_product_selection_grid_item_name {
	font-size: 0.80rem !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	line-height: 1.25 !important;
	margin: 0 0 5px 0 !important;
	padding: 0 !important;
	word-break: break-word !important;
	text-align: center !important;
	width: 100% !important;
	min-height: 2.5em !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 2 !important;
	-webkit-box-orient: vertical !important;
	overflow: auto !important;
}

/* Descripción / Precio / Stock */
.dg-composite-product-container .wooco_component_product_selection_grid_item .wooco_component_product_selection_grid_item_desc,
.wooco_component_product_selection_grid .wooco_component_product_selection_grid_item .wooco_component_product_selection_grid_item_desc {
	font-size: 0.74rem !important;
	color: #64748b !important;
	margin: 0 0 8px 0 !important;
	padding: 0 !important;
	text-align: center !important;
	line-height: 1.3 !important;
	width: 100% !important;
}

.dg-composite-product-container .wooco_component_product_selection_grid_item .wooco_component_product_selection_grid_item_desc .woocommerce-Price-amount,
.wooco_component_product_selection_grid .wooco_component_product_selection_grid_item .wooco_component_product_selection_grid_item_desc .woocommerce-Price-amount {
	font-weight: 800 !important;
	color: #0f172a !important;
	font-size: 0.84rem !important;
	display: block !important;
	margin-bottom: 2px !important;
}

.dg-composite-product-container .wooco_component_product_selection_grid_item .wooco_component_product_selection_grid_item_desc .stock,
.wooco_component_product_selection_grid .wooco_component_product_selection_grid_item .wooco_component_product_selection_grid_item_desc .stock {
	margin: 2px 0 0 0 !important;
	font-size: 0.70rem !important;
	font-weight: 600 !important;
}

.dg-composite-product-container .wooco_component_product_selection_grid_item .wooco_component_product_selection_grid_item_desc .stock.in-stock,
.wooco_component_product_selection_grid .wooco_component_product_selection_grid_item .wooco_component_product_selection_grid_item_desc .stock.in-stock {
	color: #16a34a !important;
}

/* Selector de Cantidad en la card */
.dg-composite-product-container .wooco_component_product_selection_grid_item .wooco_component_product_selection_grid_item_qty,
.wooco_component_product_selection_grid .wooco_component_product_selection_grid_item .wooco_component_product_selection_grid_item_qty {
	margin-top: auto !important;
	padding: 0 !important;
	width: 100% !important;
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
}

.dg-composite-product-container .wooco_component_product_selection_grid_item .wooco-qty-input,
.wooco_component_product_selection_grid .wooco_component_product_selection_grid_item .wooco-qty-input {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.dg-composite-product-container .wooco_component_product_selection_grid_item .quantity,
.wooco_component_product_selection_grid .wooco_component_product_selection_grid_item .quantity {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	background: transparent !important;
}

.dg-composite-product-container .wooco_component_product_selection_grid_item input.qty,
.wooco_component_product_selection_grid .wooco_component_product_selection_grid_item input.qty {
	width: 48px !important;
	height: 32px !important;
	text-align: center !important;
	border: 1.5px solid #cbd5e1 !important;
	border-radius: 8px !important;
	background: #ffffff !important;
	font-size: 0.88rem !important;
	font-weight: 800 !important;
	color: #0f172a !important;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05) !important;
	outline: none !important;
	-moz-appearance: textfield !important;
}

.dg-composite-product-container .wooco_component_product_selection_grid_item input.qty:focus,
.wooco_component_product_selection_grid .wooco_component_product_selection_grid_item input.qty:focus {
	border-color: #c31b24 !important;
	box-shadow: 0 0 0 3px rgba(195, 27, 36, 0.15) !important;
}

.dg-composite-product-container .wooco_component_product_selection_grid_item input.qty::-webkit-outer-spin-button,
.dg-composite-product-container .wooco_component_product_selection_grid_item input.qty::-webkit-inner-spin-button,
.wooco_component_product_selection_grid .wooco_component_product_selection_grid_item input.qty::-webkit-outer-spin-button,
.wooco_component_product_selection_grid .wooco_component_product_selection_grid_item input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none !important;
	margin: 0 !important;
}

/* Item individual en la lista */
.dg-composite-product-container .wooco_component_product_selection_list_item {
	background: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 10px !important;
	padding: 0.65rem 0.85rem !important;
	margin: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 0.65rem !important;
	transition: all 0.2s ease !important;
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: 100% !important;
}

.dg-composite-product-container .wooco_component_product_selection_list_item:hover {
	border-color: #cbd5e1 !important;
	background: #f8fafc !important;
}

.dg-composite-product-container .wooco_component_product_selection_list_item.wooco_item_selected {
	border-color: #c31b24 !important;
	background: #fff5f5 !important;
}

/* Checkbox */
.dg-composite-product-container .wooco_component_product_selection_list_item_choose {
	flex: 0 0 26px !important;
	width: 26px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 !important;
}

.dg-composite-product-container .wooco_component_product_selection_list_item_choose span:before {
	width: 20px !important;
	height: 20px !important;
	line-height: 18px !important;
	font-size: 12px !important;
	box-sizing: border-box !important;
}

.dg-composite-product-container .wooco_component_product_selection_list_item.wooco_item_selected .wooco_component_product_selection_list_item_choose span:before {
	background-color: #c31b24 !important;
	color: #ffffff !important;
	border-color: #c31b24 !important;
}

/* Miniatura */
.dg-composite-product-container .wooco_component_product_selection_list_item_image {
	flex: 0 0 42px !important;
	width: 42px !important;
	height: 42px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 !important;
}

.dg-composite-product-container .wooco_component_product_selection_list_item_image img {
	max-width: 42px !important;
	max-height: 42px !important;
	border-radius: 6px !important;
	object-fit: contain !important;
}

/* Textos e información */
.dg-composite-product-container .wooco_component_product_selection_list_item_info {
	flex: 1 1 auto !important;
	min-width: 0 !important;
	padding: 0 0.4rem !important;
}

.dg-composite-product-container .wooco_component_product_selection_list_item_name {
	font-size: 0.86rem !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	line-height: 1.25 !important;
	white-space: normal !important;
	word-break: break-word !important;
	margin: 0 !important;
}

.dg-composite-product-container .wooco_component_product_selection_list_item_desc {
	font-size: 0.76rem !important;
	color: #64748b !important;
	display: flex !important;
	align-items: center !important;
	gap: 0.5rem !important;
	flex-wrap: wrap !important;
	margin-top: 0.15rem !important;
}

.dg-composite-product-container .wooco_component_product_selection_list_item_desc .price,
.dg-composite-product-container .wooco_component_product_selection_list_item_desc .amount {
	font-weight: 700 !important;
	color: #0f172a !important;
}

/* Spinner de cantidad */
.dg-composite-product-container .wooco_component_product_selection_list_item_qty {
	flex: 0 0 auto !important;
	margin-left: auto !important;
	display: flex !important;
	align-items: center !important;
	padding: 0 !important;
}

.dg-composite-product-container .wooco-qty-wrap {
	display: inline-flex !important;
	align-items: center !important;
	background: #f8fafc !important;
	border: 1px solid #cbd5e1 !important;
	border-radius: 8px !important;
	overflow: hidden !important;
	height: 32px !important;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.dg-composite-product-container .wooco-minus,
.dg-composite-product-container .wooco-plus,
.dg-composite-product-container .dg-matrix-qty-btn {
	width: 28px !important;
	height: 32px !important;
	line-height: 30px !important;
	background: #ffffff !important;
	border: none !important;
	color: #334155 !important;
	font-size: 1rem !important;
	font-weight: 700 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer !important;
	transition: all 0.15s ease !important;
	user-select: none !important;
	padding: 0 !important;
}

.dg-composite-product-container .wooco-minus:hover,
.dg-composite-product-container .wooco-plus:hover,
.dg-composite-product-container .dg-matrix-qty-btn:hover {
	background: #fee2e2 !important;
	color: #c31b24 !important;
}

.dg-composite-product-container .wooco-qty-wrap input.qty {
	width: 38px !important;
	height: 32px !important;
	text-align: center !important;
	border: none !important;
	border-left: 1px solid #e2e8f0 !important;
	border-right: 1px solid #e2e8f0 !important;
	background: #ffffff !important;
	font-size: 0.86rem !important;
	font-weight: 800 !important;
	color: #0f172a !important;
	padding: 0 !important;
	margin: 0 !important;
	outline: none !important;
	-moz-appearance: textfield !important;
}

.dg-composite-product-container .wooco-qty-wrap input.qty::-webkit-outer-spin-button,
.dg-composite-product-container .wooco-qty-wrap input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none !important;
	margin: 0 !important;
}

/* Badge Tracker de Selección en Vivo para Componentes */
.dg-comp-tracker-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.76rem;
	font-weight: 700;
	padding: 0.25rem 0.65rem;
	border-radius: 999px;
	margin-left: 0.6rem;
	vertical-align: middle;
	transition: all 0.2s ease;
}

.dg-comp-tracker-badge.dg-tracker-pending {
	background: #fef3c7;
	color: #92400e;
	border: 1px solid #fde68a;
}

.dg-comp-tracker-badge.dg-tracker-complete {
	background: #dcfce7;
	color: #166534;
	border: 1px solid #bbf7d0;
}

.dg-comp-tracker-badge.dg-tracker-overflow {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

/* Resumen inferior y alertas */
.dg-composite-product-container .wooco-summary {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 0.85rem 1rem;
	margin-bottom: 1rem;
	font-size: 0.88rem;
	font-weight: 600;
	color: #334155;
}

.dg-composite-product-container .wooco-alert {
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-left: 4px solid #c31b24;
	border-radius: 8px;
	color: #991b1b;
	font-size: 0.85rem;
	padding: 0.75rem 1rem;
	margin-bottom: 1rem;
}

/* Botón Añadir al carrito del Composite */
.dg-composite-product-container form.cart {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin-top: 1rem;
	flex-wrap: wrap;
}

.dg-composite-product-container form.cart .quantity {
	display: inline-flex;
}

.dg-composite-product-container form.cart .quantity input.qty {
	height: 48px;
	width: 70px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	text-align: center;
	font-size: 1rem;
	font-weight: 700;
}

.dg-composite-product-container form.cart button.single_add_to_cart_button {
	flex: 1 1 auto;
	background: #c31b24 !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 999px !important;
	height: 48px;
	padding: 0 1.75rem !important;
	font-size: 0.92rem !important;
	font-weight: 800 !important;
	letter-spacing: 0.04em !important;
	text-transform: uppercase !important;
	box-shadow: 0 6px 20px rgba(195, 27, 36, 0.35) !important;
	transition: all 0.25s ease !important;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.dg-composite-product-container form.cart button.single_add_to_cart_button:hover:not(:disabled) {
	background: #9b141b !important;
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(195, 27, 36, 0.45) !important;
}

.dg-composite-product-container form.cart button.single_add_to_cart_button:disabled,
.dg-composite-product-container form.cart button.single_add_to_cart_button.disabled {
	background: #94a3b8 !important;
	cursor: not-allowed !important;
	box-shadow: none !important;
	opacity: 0.7 !important;
}

/* ==========================================================================
   Mini-Cart Drawer — Soporte Packs y Componentes (Modo Claro)
   ========================================================================== */

/* Tarjeta Principal del Pack / Combo */
.dg-mini-cart-item--composite {
	border: 1.5px solid #cbd5e1 !important;
	background: #ffffff !important;
	border-radius: 12px !important;
	position: relative !important;
}

.dg-mini-cart-pack-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: #fee2e2;
	color: #991b1b;
	font-size: 0.72rem;
	font-weight: 800;
	padding: 2px 8px;
	border-radius: 6px;
	margin-top: 3px;
	margin-bottom: 4px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* Ítems Componentes incluidos en el Pack */
.dg-mini-cart-item.dg-mini-cart-item--component {
	background: #f8fafc !important;
	border: 1px dashed #cbd5e1 !important;
	border-left: 3.5px solid #c31b24 !important;
	border-radius: 10px !important;
	margin-left: 1rem !important;
	margin-bottom: 8px !important;
	padding: 10px 12px !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

.dg-mini-cart-item--component .dg-mini-cart-thumb {
	width: 44px !important;
	height: 44px !important;
	flex: 0 0 44px !important;
	border-radius: 8px !important;
}

.dg-mini-cart-item--component .dg-mini-cart-thumb img {
	max-width: 44px !important;
	max-height: 44px !important;
	object-fit: contain !important;
}

.dg-mini-cart-item--component .dg-mini-cart-name {
	font-size: 0.82rem !important;
	font-weight: 700 !important;
	color: #334155 !important;
	line-height: 1.25 !important;
}

.dg-mini-cart-price--included {
	display: inline-flex !important;
	align-items: center !important;
	gap: 4px !important;
	font-size: 0.74rem !important;
	font-weight: 700 !important;
	color: #166534 !important;
	background: #dcfce7 !important;
	padding: 2px 7px !important;
	border-radius: 6px !important;
}

.dg-mini-cart-component-qty {
	font-size: 0.8rem !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	background: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	padding: 3px 8px !important;
	border-radius: 6px !important;
	margin-left: auto !important;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

/* Footer del Mini-Cart — Alta legibilidad y modo claro */
.dg-mini-cart-footer {
	background: #ffffff !important;
	border-top: 1px solid #e2e8f0 !important;
	box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04) !important;
}

.dg-mini-cart-btn--ghost {
	background: #f1f5f9 !important;
	border: 1.5px solid #cbd5e1 !important;
	color: #0f172a !important;
	font-weight: 800 !important;
	font-size: 0.84rem !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
	padding: 13px 20px !important;
	border-radius: 50px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	text-decoration: none !important;
	transition: all 0.2s ease !important;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.dg-mini-cart-btn--ghost:hover {
	background: #e2e8f0 !important;
	border-color: #94a3b8 !important;
	color: #0f172a !important;
	transform: translateY(-1px) !important;
}

.dg-mini-cart-btn--primary {
	background: #c31b24 !important;
	color: #ffffff !important;
	font-weight: 800 !important;
	font-size: 0.84rem !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
	padding: 13px 20px !important;
	border-radius: 50px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	text-decoration: none !important;
	box-shadow: 0 4px 14px rgba(195, 27, 36, 0.28) !important;
	border: none !important;
	transition: all 0.2s ease !important;
}

.dg-mini-cart-btn--primary:hover {
	background: #a8151d !important;
	color: #ffffff !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 6px 18px rgba(195, 27, 36, 0.38) !important;
}


