/* Hide the original select dropdowns */
.variations_form .variations select,
.woocommerce-select:after,
.woocommerce .cart .reset_variations
{
    display: none;
}

.woocommerce .cart .reset_variations {
    opacity: 0 !important;
}

table.variations tr {
    /* flex-direction: column; */
    flex-wrap: wrap;
}

table.variations th.label {
    flex: 1 1 100% !important;
}

/* Container for the buttons */
.ivb-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1em;
}

/* Style for the buttons */
.ivb-button {
    background-color: var(--color-content-secondary);
    border: 1px solid var(--color-content-border);
    border-radius: 0;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
    font-weight: 400;
    color: var(--color-content-primary);
}

.ivb-button:hover {
    background-color: var(--color-content-secondary);
    border-color: var(--color-content-primary);
    color: var(--color-content-primary);
}

/* Style for the active/selected button */
.ivb-button.active {
    background-color: var(--color-content-primary);
    color: var(--color-content-secondary);
    border-color: var(--color-content-primary);
    box-shadow: none;
}

/* Style for disabled/unavailable buttons */
.ivb-button.to-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--color-content-secondary);
    color: var(--color-content-text);
    border-color: var(--color-content-border);
}

.ivb-button.to-disabled:hover {
    background-color: var(--color-content-secondary);
    border-color: var(--color-content-border);
    color: var(--color-content-text);
}