/* Modern Variation Swatches Styling */

/* Hide default selects visually but keep accessible */
.variations_form .variations select {
    display: none !important; 
}

/* Force transparent/white background on the container and table to override theme defaults */
.variations_form,
table.variations, 
table.variations tr, 
table.variations th, 
table.variations td {
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
}

/* HIDE CONFLICTING PLUGIN SWATCHES */
/* We want to show only our modern buttons, so we hide the output from "Variation Swatches for WooCommerce" */
.woo-variation-swatches,
.variable-items-wrapper,
.wvs-style-square,
.tawcvs-swatches,
.swatch-control {
    display: none !important;
}

/* Container for our custom buttons */
.angie-swatches-container-136059 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.angie-swatches-label-136059 {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}

/* The Button Itself */
.angie-swatch-btn-136059 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    border: 1px solid #e1e1e1;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 4px; /* Slightly rounded corners */
    user-select: none;
}

/* Hover State */
.angie-swatch-btn-136059:hover {
    border-color: #000;
    color: #000;
}

/* Selected / Active State */
.angie-swatch-btn-136059.active {
    background-color: #000;
    color: #fff;
    border-color: #000;
    font-weight: 600;
}

/* Disabled / Out of Stock State */
/* User requested to "open" sizes, so we allow interaction but visually mark them */
.angie-swatch-btn-136059.disabled {
    opacity: 0.6;
    cursor: pointer; /* Changed to pointer to allow selection */
    background-color: #fff; 
    border-color: #eee;
    text-decoration: line-through;
    pointer-events: auto; /* Allow clicks */
    color: #999;
}

/* Error Shake Animation (Optional, can be triggered by JS) */
@keyframes shake-136059 {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

.angie-swatch-shake-136059 {
    animation: shake-136059 0.4s ease-in-out;
}
