/* ===================================
   Smart Swatches Styling — v2.0
   =================================== */

/* ── Swatch List ── */
.smart-swatches-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

/* ── Base Swatch Item ── */
.smart-swatch-item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0 !important;
	padding: 0 !important;
	cursor: pointer;
	position: relative;
	transition: transform 0.2s ease;
}

.smart-swatch-item.disabled {
	opacity: 0.3;
	cursor: not-allowed;
	pointer-events: none;
}

/* ───────────────────────
   Color Swatches
   ─────────────────────── */
.smart-color-swatch {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 2px solid transparent;
	padding: 3px;
	box-sizing: border-box;
}

.smart-color-swatch .smart-swatch-inner {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12);
	transition: all 0.2s ease;
}

.smart-color-swatch:hover {
	transform: scale(1.1);
}

.smart-color-swatch.active {
	border-color: #333;
}

/* ───────────────────────
   Text / Button Swatches
   ─────────────────────── */
.smart-text-swatch {
	border-radius: 6px;
	border: 1px solid #ddd;
	background: #f9f9f9;
	transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.smart-text-swatch .smart-swatch-inner {
	display: block;
	padding: 7px 14px;
	font-size: 14px;
	font-weight: 500;
	color: #333;
	transition: color 0.2s ease;
	line-height: 1.2;
}

.smart-text-swatch:hover {
	border-color: #888;
	background: #f0f0f0;
}

.smart-text-swatch:hover .smart-swatch-inner {
	color: #111;
}

.smart-text-swatch.active {
	border-color: #111;
	background: #111;
}

.smart-text-swatch.active .smart-swatch-inner {
	color: #fff;
}

/* ───────────────────────
   Tooltips
   ─────────────────────── */
.smart-swatch-item::after {
	content: attr(title);
	position: absolute;
	bottom: calc(100% + 6px);
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0,0,0,0.82);
	color: #fff;
	font-size: 11px;
	padding: 4px 9px;
	border-radius: 4px;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.18s ease, visibility 0.18s ease;
	pointer-events: none;
	z-index: 20;
}

.smart-swatch-item::before {
	content: '';
	position: absolute;
	bottom: calc(100% + 1px);
	left: 50%;
	transform: translateX(-50%);
	border: 5px solid transparent;
	border-top-color: rgba(0,0,0,0.82);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.18s ease, visibility 0.18s ease;
	pointer-events: none;
	z-index: 20;
}

.smart-swatch-item:hover::after,
.smart-swatch-item:hover::before {
	opacity: 1;
	visibility: visible;
}
