/* Teevrex — Variation Swatches Styling
   Upload this file to your child theme folder */

.teevrex-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 15px;
}

/* Hide the original select but keep it functional */
.teevrex-hidden-select {
	display: none;
}

/* ---- Color swatches (circles) ---- */
.teevrex-swatches.is-color .teevrex-swatch.color {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 2px solid #ddd;
	cursor: pointer;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

.teevrex-swatches.is-color .teevrex-swatch.color:hover {
	border-color: #1b3a5c;
	transform: scale(1.08);
}

.teevrex-swatches.is-color .teevrex-swatch.color.selected {
	border-color: #1b3a5c;
	box-shadow: 0 0 0 2px rgba(27, 58, 92, 0.25);
}

.teevrex-swatch .teevrex-check {
	display: none;
	color: #fff;
	font-size: 14px;
	font-weight: bold;
	text-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
}

.teevrex-swatch.selected .teevrex-check {
	display: block;
}

.teevrex-swatch .teevrex-tooltip {
	position: absolute;
	bottom: -28px;
	left: 50%;
	transform: translateX(-50%);
	background: #1b3a5c;
	color: #fff;
	font-size: 11px;
	padding: 3px 8px;
	border-radius: 4px;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
	z-index: 5;
}

.teevrex-swatch:hover .teevrex-tooltip {
	opacity: 1;
}

/* ---- Size swatches (square buttons) ---- */
.teevrex-swatches.is-size {
	gap: 8px;
}

.teevrex-swatches.is-size .teevrex-swatch.size {
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #ddd;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 600;
	font-size: 14px;
	color: #333;
	transition: all 0.2s ease;
}

.teevrex-swatches.is-size .teevrex-swatch.size:hover {
	border-color: #1b3a5c;
}

.teevrex-swatches.is-size .teevrex-swatch.size.selected {
	background: #1b3a5c;
	color: #fff;
	border-color: #1b3a5c;
}
