/* Wrapper around hidden select + swatches */
.wss-swatch-wrapper {
    margin-bottom: 1em;
}

/* Hide the original select but keep it in the DOM */
.wss-hidden-select {
    display: none;
}

/* The flex container of swatches */
.wss-swatch-container {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Base swatch styling */
.wss-swatch {
    width: 50px;
    height: 50px;
    border: 1px solid #ddd;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 4px;
    transition: border-color 0.2s;
}

.wss-swatch.wss-swatch-small {
    width: 32px;
    height: 32px;
    border-radius: 16px;
}

.wss-swatch.wss-swatch-small.smaller {
    width: 20px;
    height: 20px;
    border-radius: 10px;
}.wss-swatch.wss-swatch-small.smallest {
     width: 10px;
     height: 10px;
     border-radius: 5px;
 }

/* Image swatches (for color) */
.wss-swatch.swatch-image img {
    max-width: 100%;
    max-height: 100%;
}

/* Image swatches (for color) */
.wss-swatch.wss-swatch-small.swatch-image img {
    max-width: 70%;
    max-height: 70%;
}


/* Text swatches (for size) */
.wss-swatch.swatch-text {
    font-size: 0.9rem;
    font-weight: 500;
    background: #f9f9f9;
}

/* Selected state */
.wss-swatch.selected {
    border-color: #333;
    background: #efefef;
}
