/* Hide WooCommerce Default Auto-Injected View Cart Link */
a.added_to_cart,
.added_to_cart.wc-forward {
    display: none !important;
}

/* Disabled & Added State Styling */
.catc-disabled,
.catc-is-added {
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.catc_error_msg {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 8px;
    display: none;
}

/* ==========================================================================
   Custom Swatch UI Styles (Replaces Dropdowns)
   ========================================================================== */

.catc_attr_row {
    margin-bottom: 20px;
    font-family: inherit;
}

/* Header row containing Label and Size Chart Link */
.catc_attr_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.catc_attr_label {
    font-weight: 700;
    font-size: 14px;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.catc_open_size_chart_btn {
    font-size: 13px;
    color: #333333;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s ease;
}

.catc_open_size_chart_btn:hover {
    color: #000000;
}

/* Swatch Buttons Layout */
.catc_swatch_group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.catc_swatch_btn {
    background-color: #ffffff;
    border: 1px solid #e2e2e2;
    border-radius: 4px;
    color: #111111;
    padding: 10px 16px;
    font-size: 14px;
    cursor: pointer;
    min-width: 65px;
    text-align: center;
    transition: all 0.2s ease-in-out;
    outline: none;
}

/* Hover & Active States - Forced overrides to prevent theme conflicts */
.catc_swatch_btn:hover,
.catc_swatch_btn.active {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
}