/* LCSW Simple Swatches Styles */

.lcsw-simple-swatches {
    margin: 15px 0;
    padding: 0;
    border: none;
    background: transparent;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.lcsw-simple-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

.lcsw-simple-selected {
    font-size: 14px;
}

.lcsw-simple-title {
    font-weight: 600;
    font-size: 14px;
}

.lcsw-simple-list {
    /* deprecated: mantido apenas por compatibilidade caso exista */
    list-style: none;
    margin: 0;
    padding: 0;
    display: contents;
}

.lcsw-simple-swatch {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.lcsw-simple-swatch:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Removed arrows - clean design */

.lcsw-simple-swatch.lcsw-loading {
    opacity: 0.7;
    cursor: wait;
}

.lcsw-simple-swatch.lcsw-loading::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid #0073aa;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: lcsw-spin 1s linear infinite;
}

@keyframes lcsw-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .lcsw-simple-swatch {
        width: 35px;
        height: 35px;
    }
    
    .lcsw-simple-list {
        gap: 8px;
    }
}

/* Focus styles for accessibility */
.lcsw-simple-swatch:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Fallback for browsers without CSS custom properties */
.lcsw-simple-swatches {
    --lcsw-hover-color: #0073aa;
    --lcsw-hover-transform: scale(1.1);
    --lcsw-selected-color: #0073aa;
}
