/* Contenedor oculto del select original (WooCommerce lo sigue usando internamente) */
.tmm-swatches-wrap .tmm-select-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
}

.tmm-swatches-wrap {
	position: relative;
}

/* Tabla de variaciones limpia */
.woocommerce div.product form.cart .variations {
	border: none;
	margin-bottom: 18px;
	width: 100%;
}

.woocommerce div.product form.cart .variations th,
.woocommerce div.product form.cart .variations td {
	border: none;
	padding: 6px 0;
	vertical-align: middle;
	background: transparent;
}

.woocommerce div.product form.cart .variations th.label {
	width: auto;
	padding-right: 16px;
	font-weight: 700;
	color: #111111;
	text-transform: uppercase;
	font-size: 13px;
	letter-spacing: 0.04em;
}

.tmm-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

/* Botones de talla / texto */
.tmm-swatches-wrap .tmm-swatch.tmm-swatch-btn {
	min-width: 44px;
	height: 40px;
	padding: 0 14px;
	background-color: #ffffff;
	color: #111111;
	border: 2px solid #111111;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: none;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.1s ease;
}

.tmm-swatches-wrap .tmm-swatch.tmm-swatch-btn:hover:not(.is-disabled) {
	background-color: #111111;
	color: #ffffff;
	border-color: #111111;
}

.tmm-swatches-wrap .tmm-swatch.tmm-swatch-btn.is-selected {
	background-color: #d61f26;
	color: #ffffff;
	border-color: #d61f26;
}

/* Muestras de color */
.tmm-swatches-wrap .tmm-swatch.tmm-swatch-color {
	width: 34px;
	height: 34px;
	padding: 3px;
	background-color: #ffffff;
	border: 2px solid #d4d4d4;
	border-radius: 4px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: none;
	transition: border-color 0.18s ease, transform 0.1s ease;
}

.tmm-swatches-wrap .tmm-swatch-color-fill {
	width: 100%;
	height: 100%;
	border-radius: 2px;
	display: block;
	border: 1px solid rgba(0, 0, 0, 0.12);
}

.tmm-swatches-wrap .tmm-swatch.tmm-swatch-color:hover:not(.is-disabled) {
	border-color: #111111;
}

.tmm-swatches-wrap .tmm-swatch.tmm-swatch-color.is-selected {
	border-color: #d61f26;
	box-shadow: 0 0 0 1px #d61f26;
}

/* Estado deshabilitado / agotado */
.tmm-swatches-wrap .tmm-swatch.is-disabled {
	opacity: 0.35;
	cursor: not-allowed;
	position: relative;
}

.tmm-swatches-wrap .tmm-swatch.tmm-swatch-btn.is-disabled {
	text-decoration: line-through;
	border-color: #cccccc;
	color: #888888;
	background-color: #ffffff;
}

/* Botón Limpiar selección */
.woocommerce div.product form.cart .reset_variations {
	display: inline-block;
	margin-top: 8px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	color: #d61f26;
	text-decoration: none;
}

.woocommerce div.product form.cart .reset_variations:hover {
	color: #111111;
	text-decoration: underline;
}

/* Editor de cantidad (- [ qty ] +) */
.woocommerce .quantity {
	display: inline-flex !important;
	align-items: stretch;
	border: 2px solid #111111;
	border-radius: 4px;
	overflow: hidden;
	background-color: #ffffff;
	height: 42px;
	box-sizing: border-box;
	vertical-align: middle;
}

.woocommerce .quantity .tmm-qty-btn {
	width: 36px;
	height: 100%;
	padding: 0;
	margin: 0;
	border: none;
	border-radius: 0;
	background-color: #111111;
	color: #ffffff;
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: none;
	transition: background-color 0.18s ease, color 0.18s ease;
}

.woocommerce .quantity .tmm-qty-btn:hover {
	background-color: #d61f26;
	color: #ffffff;
}

.woocommerce .quantity input.qty {
	width: 48px;
	height: 100%;
	padding: 0 4px;
	margin: 0;
	border: none;
	border-radius: 0;
	background-color: #ffffff;
	color: #111111;
	font-size: 15px;
	font-weight: 700;
	text-align: center;
	box-shadow: none;
	-moz-appearance: textfield;
}

.woocommerce .quantity input.qty:focus {
	outline: none;
}

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

.woocommerce .quantity.tmm-qty-hidden,
.variations_form.tmm-has-multi .woocommerce-variation-add-to-cart .quantity,
.variations_form.tmm-has-multi .woocommerce-variation-availability {
	display: none !important;
}

/* Lista de múltiples tallas/variaciones seleccionadas */
.tmm-multi-list {
	margin: 16px 0 18px;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	background-color: #ffffff;
	overflow: hidden;
}

.tmm-multi-list-header {
	background-color: #f8f8f8;
	color: #111111;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 8px 14px;
	border-bottom: 2px solid #d61f26;
}

.tmm-multi-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 14px;
	border-top: 1px solid #f0f0f0;
}

.tmm-multi-row:first-of-type {
	border-top: none;
}

.tmm-multi-info {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex: 1;
	min-width: 0;
}

.tmm-multi-label {
	font-size: 14px;
	font-weight: 700;
	color: #111111;
}

.tmm-multi-meta {
	font-size: 12px;
	color: #777777;
}

.tmm-multi-controls {
	display: flex;
	align-items: center;
	gap: 8px;
}

.tmm-multi-list .tmm-multi-qty {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid #111111;
	border-radius: 4px;
	overflow: hidden;
	height: 32px;
	background-color: #ffffff;
}

.tmm-multi-list .tmm-multi-qty button {
	width: 30px;
	min-width: 30px;
	height: 100%;
	padding: 0;
	margin: 0;
	border: none;
	border-radius: 0;
	background-color: #111111;
	color: #ffffff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: none;
}

.tmm-multi-list .tmm-multi-qty button:hover {
	background-color: #d61f26;
	color: #ffffff;
}

.tmm-multi-list .tmm-multi-qty input.tmm-multi-input {
	width: 38px;
	height: 100%;
	border: none !important;
	outline: none !important;
	padding: 0;
	margin: 0;
	text-align: center;
	font-size: 13px;
	font-weight: 700;
	color: #111111;
	background-color: #ffffff;
	box-shadow: none !important;
	-moz-appearance: textfield;
}

.tmm-multi-list .tmm-multi-qty input.tmm-multi-input::-webkit-outer-spin-button,
.tmm-multi-list .tmm-multi-qty input.tmm-multi-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.tmm-multi-list .tmm-multi-remove {
	width: 32px;
	min-width: 32px;
	height: 32px;
	padding: 0;
	margin: 0;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	background-color: #ffffff;
	color: #666666;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: none;
}

.tmm-multi-list .tmm-multi-remove:hover {
	border-color: #d61f26;
	background-color: #d61f26;
	color: #ffffff;
}
