#variation-button-color-selection {
    clear: both;
    padding: 15px 0;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
    flex-basis: 100%;
    order: -1;
}

.swatch-container {
    display: flex;
    gap: 15px;
    flex-direction: row !important;
}

.color-swatch-label {
    display: flex !important;
    align-items: center;
    cursor: pointer;
    margin: 0 !important;
    padding: 0 !important;
    gap: 10px;
}

.color-swatch-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.swatch {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #ddd;
    transition: all 0.2s ease;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
    position: relative;
    flex-shrink: 0;
}

.swatch-text {
    font-size: 14px;
    font-weight: 500;
}


.black-swatch {
    background-color: #000;
}

.white-swatch {
    background-color: #fff;
}

.color-swatch-label input[type="radio"]:checked + .swatch {
    border-color: #0073aa; /* WordPress Blue or match your theme */
    transform: scale(1.1);
    box-shadow: 0 0 8px rgba(0,115,170,0.4);
}

/* Optional: add a small checkmark or indicator when active */
.color-swatch-label input[type="radio"]:checked + .swatch::after {
    content: '✓';
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: bold;
}

.color-swatch-label input[type="radio"]:checked + .white-swatch::after {
    color: #000;
}
