/* =========================================================
   SS DECO - PRODUCTO / FASE 1 - VARIACIONES
   ========================================================= */

html[data-ss-theme] body.single-product table.variations {
	margin-bottom: 22px !important;
}

html[data-ss-theme] body.single-product table.variations tr {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
	margin-bottom: 18px;
}

html[data-ss-theme] body.single-product table.variations th,
html[data-ss-theme] body.single-product table.variations td {
	display: block;
	width: 100%;
	padding: 0 !important;
	border: 0 !important;
}

html[data-ss-theme] body.single-product table.variations label {
	display: block;
	color: var(--ss-text) !important;
	font-size: 13px;
	font-weight: 650;
}

html[data-ss-theme] body.single-product table.variations select {
	width: 100% !important;
	min-height: 48px;
	padding: 0 42px 0 14px;
	border: 1px solid var(--ss-line) !important;
	border-radius: 0 !important;
	background-color: var(--ss-surface) !important;
	color: var(--ss-text) !important;
	box-shadow: none !important;
}

html[data-ss-theme] body.single-product table.variations select:focus {
	border-color: var(--ss-accent) !important;
	outline: 1px solid var(--ss-accent);
	outline-offset: 0;
}

html[data-ss-theme] body.single-product .reset_variations {
	display: inline-block;
	margin-top: 6px;
	color: var(--ss-muted) !important;
	font-size: 12px;
	text-decoration: none;
}

html[data-ss-theme] body.single-product .single_variation_wrap {
	margin-top: 18px;
}

html[data-ss-theme] body.single-product .woocommerce-variation-price {
	margin-bottom: 14px;
	color: var(--ss-text);
}

/* Muestras reutilizables para cuerpo, canasta y pantalla. */
.ssdeco-native-color-select {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.ssdeco-color-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 4px;
}

.ssdeco-color-swatch {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 46px;
	height: 46px;
	padding: 5px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: transparent;
	cursor: pointer;
}

.ssdeco-color-swatch::before {
	content: '';
	display: block;
	width: 34px;
	height: 34px;
	border: 1px solid rgba(52, 49, 46, .35);
	border-radius: inherit;
	background: var(--ssdeco-swatch, #ddd7cd);
}

.ssdeco-color-swatch:hover,
.ssdeco-color-swatch:focus-visible,
.ssdeco-color-swatch[aria-pressed='true'] {
	border-color: #75856d;
	outline: none;
}

.ssdeco-color-swatch[aria-pressed='true']::after {
	content: '✓';
	position: absolute;
	right: -3px;
	bottom: -4px;
	display: grid;
	place-items: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #607259;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}

.ssdeco-color-swatch:disabled {
	opacity: .32;
	cursor: not-allowed;
}
