.swatch {
	cursor: pointer;
	border: 1px solid #fff;
	outline: 2px solid #fff;
	transition: outline 0.2s ease-in-out;
    border-radius: 50px;
}

.swatch.disabled {
	cursor: not-allowed;
	opacity: 0.4;
	pointer-events: none;
	filter: grayscale(10%);
	position: relative;
}

.swatch.disabled::before,
.swatch.disabled::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: transparent;
}

.swatch.disabled::before {
	background: linear-gradient(45deg, transparent 48%, rgba(0,0,0,0.3) 48%, rgba(0,0,0,0.3) 52%, transparent 52%);
}

.swatch.disabled::after {
	background: linear-gradient(-45deg, transparent 48%, rgba(0,0,0,0.3) 48%, rgba(0,0,0,0.3) 52%, transparent 52%);
}

.swatches-container {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin: 3px 0;
}

.swatches-wrapper {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.attribute-label-selected {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
    margin-top: 10px;

}

.attribute-name {
	
	color: #333;
	margin: 0;
}

.selected-value {
	font-weight: 500;
	color: #666;

}

/* Hide the original WooCommerce label */
.variations th.label,
.variations td.label {
	display: none !important;
}

.variations .value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.variations, .variations tbody, .variations tr {
    display: flex;
    align-items: start;
    justify-content: center;
    gap: 10px;
    flex-direction: column;
    margin: 0
}

.swatch.selected {
	outline: 1px solid #333;
}

.swatch-color {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    aspect-ratio: 1;
    border: 3px solid white;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

/* Special styling for white/light colors */
.swatch-color:not(.disabled):hover {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.swatch-light {
    border-color: #ccc !important;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) !important;
}

.swatch-light.selected {
    border-color: #999 !important;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2) !important;
}

span.swatch.swatch-image {
    width: 64px;
    aspect-ratio: 1;
    border-radius: 5px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;   
    border: 3px solid white;
}

.swatch-image img { width:32px; height:32px; object-fit:cover; border-radius:5px; }

.swatch-text {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    aspect-ratio: 1;
    width: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.single-product div.product .entry-summary {
    display: flex;
    flex-direction: column;
    color: black
}

.single_variation_wrap {order: 10}


/*select*/

.variations td.value {
  position: relative;
}

.variations td.value > select {
  width: 100%;
  padding: 10px 40px 10px 12px; /* space for arrow */
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  font-size: 14px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: none; /* hide native arrow */
  box-sizing: border-box;
  cursor: pointer;
}


/* Add arrow only if td.value contains a select */
.variations td.value:has(> select)::after {
  content: '▼'; /* Unicode arrow */
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 12px;
  pointer-events: none;
  user-select: none;
}
