/* Variation Builder - frontend (Madhuraj - Entellus Co.) */
.variations_form select.vb-select-hidden { display: none !important; }

.vb-swatches {
	--vb-size: 40px;
	--vb-accent: #111;
	list-style: none;
	margin: 0 0 4px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.vb-swatch {
	position: relative;
	margin: 0;
	min-width: var(--vb-size);
	height: var(--vb-size);
	padding: 3px;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #d0d0d0;
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
	transition: border-color .15s, box-shadow .15s, opacity .15s;
	user-select: none;
}
.vb-swatch:hover { border-color: #888; }
.vb-swatch:focus-visible { outline: 2px solid var(--vb-accent); outline-offset: 2px; }
.vb-swatch.vb-selected { border-color: var(--vb-accent); box-shadow: 0 0 0 1px var(--vb-accent); }

.vb-shape-round .vb-swatch { border-radius: 999px; }
.vb-shape-round .vb-color,
.vb-shape-round .vb-image { border-radius: 999px; }

/* Buttons / labels */
.vb-label { padding: 0 8px; font-size: 14px; line-height: 1; white-space: nowrap; }
.vb-type-button .vb-swatch.vb-selected { background: var(--vb-accent); color: #fff; }

/* Colour and image swatches are fixed squares/circles */
.vb-type-color .vb-swatch:not(.vb-fallback),
.vb-type-image .vb-swatch:not(.vb-fallback) { width: var(--vb-size); }

.vb-color {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 2px;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1);
}
.vb-swatches img.vb-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 2px;
	margin: 0;
}

/* Values that don't exist with the current choice */
.vb-swatch.vb-disabled { opacity: .35; cursor: not-allowed; }
.vb-swatch.vb-disabled::after {
	content: "";
	position: absolute;
	left: 50%;
	top: -2px;
	bottom: -2px;
	width: 1px;
	background: #c00;
	transform: rotate(45deg);
	pointer-events: none;
}

.vb-chosen { font-size: 13px; color: #555; min-height: 1em; margin-bottom: 6px; }
