/**
 * Variation Swatches Styles
 */

.abr-swatch-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.abr-swatch {
    cursor: pointer;
    min-width: 36px;
    height: 36px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    user-select: none;
    background: #fff;
    color: #475569;
}

.abr-swatch:hover {
    border-color: #cbd5e1;
}

.abr-swatch.selected {
    border-color: #4f46e5;
    background-color: #f5f3ff;
    color: #4f46e5;
    box-shadow: 0 0 0 1px #4f46e5;
}

/* Color Swatches */
.abr-swatch.abr-swatch-color {
    padding: 0;
    border-radius: 50%; /* Circle colors */
    border-width: 1px;
    min-width: 32px;
    height: 32px;
}

.abr-swatch.abr-swatch-color.selected {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #4f46e5;
    border-color: #fff;
}

/* Image Swatches */
.abr-swatch.abr-swatch-image {
    padding: 0;
    background-size: cover;
    background-position: center;
    border-radius: 4px; /* Square/slightly rounded for images */
}

.abr-swatch.abr-swatch-image.selected {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #4f46e5;
    border-color: #fff;
}

/* Label Swatches */
.abr-swatch.abr-swatch-label,
.abr-swatch.abr-swatch-text {
    min-width: 44px;
}

/* Tooltip (Optional, browser default title used for now) */

/* Specific to the WooCommerce variations form */
.variations td {
    display: block; /* Stack attributes for cleaner swatch look */
    padding-bottom: 5px;
}

.variations label {
    margin-bottom: 8px;
    display: block;
    font-weight: 600;
}
