/* Swatch wrapper */
.svcs-swatches-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

/* Swatch button */
.svcs-swatch {
    border: 1px solid rgba(0, 0, 0, 0.4);
    border-radius: 999px;
    padding: 0;
    width: 16px;
    height: 16px;
    background: transparent;
    cursor: pointer;
    position: relative;
    overflow: visible; /* lets the label sit outside */
    outline: none;
}

/* Inner circle – background color is set inline via term meta */
.svcs-swatch-inner {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

/* Label UNDER the swatch, hidden by default */
.svcs-swatch-label {
    position: absolute;
    top: 100%;          /* directly under swatch */
    left: 50%;
    transform: translateX(-50%);
    margin-top: 4px;

    background: #000;
    color: #fff;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 11px;
    line-height: 1.2;

    white-space: nowrap;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

/* Show label on hover ONLY */
.svcs-swatch:hover .svcs-swatch-label {
    opacity: 1;
}

/* Optional hover border */
.svcs-swatch:hover {
    border-color: rgba(0, 0, 0, 0.35);
}
