.wcpa-product-addons {
    margin-top: 1em;
}

.wcpa-product-addons .wcpa-addon-group {
    margin-bottom: 1em;
}
.wcpa-product-addons .wcpa-group-title {
    margin-bottom: 0.5em;
}
.wcpa-product-addons .wcpa-option {
    display: flex;
    align-items: center;
    gap: 0.4em;
}
.wcpa-product-addons .wcpa-price {
    margin-left: 0.2em;
}
.wcpa-product-addons .wcpa-addon-select,
.wcpa-product-addons .select2-container {
    width: 100% !important;
}
.wcpa-product-addons .wcpa-option input {
    margin-top: 0;
}

/* =========================================
   COLOR SWATCHES
   ========================================= */

.wcpa-color-group {
    width: 100%;
}

/* ---------- TAB NAV ---------- */
.wcpa-color-tabs {
    display: flex;
	justify-content: center;
    gap: 0;
    border-bottom: 1.5px solid #d8d8d8;
    margin-bottom: 1.2em;
}

.wcpa-color-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1.5px;
    padding: 0.45em 1.4em;
    font-size: 0.78em;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #999;
    cursor: pointer;
    transition: color 0.18s, border-color 0.18s;
}

.wcpa-color-tab:hover {
    color: #333;
}

.wcpa-color-tab.wcpa-tab-active {
    color: #111;
    border-bottom-color: #111;
}

/* ---------- PANELS ---------- */
.wcpa-color-panel {
    display: none;
}

.wcpa-color-panel.wcpa-panel-active {
    display: block;
}

/* ---------- NO-TAB: single section label ---------- */
.wcpa-color-section-label {
    font-size: 0.78em;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #999;
    text-align: center;
    margin-bottom: 0.8em;
}

/* ---------- SELECTED COLOR NAME ---------- */
.wcpa-color-selected-name {
    font-size: 0.78em;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #666;
    text-align: center;
    min-height: 1.4em;
    margin-bottom: 0.75em;
    transition: opacity 0.15s;
}

/* ---------- SWATCH GRID ---------- */
.wcpa-color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

/* ---------- INDIVIDUAL SWATCH ---------- */
.wcpa-swatch-label {
    position: relative;
    cursor: pointer;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
}

/* Hide the native radio */
.wcpa-swatch-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.wcpa-swatch {
    display: block;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid transparent;
    box-sizing: border-box;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}

/* Hover */
.wcpa-swatch-label:hover .wcpa-swatch {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.18), inset 0 0 0 1px rgba(0,0,0,0.1);
}

/* Selected state */
.wcpa-swatch-label input[type="radio"]:checked + .wcpa-swatch {
    border: 2px solid #00000030;
    transform: scale(1.08);
}
