/* ==========================================================================
   Variation attribute pills (variable product form)
   ========================================================================== */

/* Hide the native select and any Salient dressing (fancy wrapper /
   Select2 container). Scoped to the .pp-pill-mode cell the JS adds. */
body .pp-pill-mode select,
body .pp-pill-mode .fancy-select-wrap,
body .pp-pill-mode .select2-container {
    display: none !important;
}

/* Pill group: flex row that wraps onto new lines (mirrors the mockup) */
body .pp-pill-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 4px 0;
}

/* Individual pill */
body button.pp-pill ,
body .pp-pill {
    appearance: none;
    -webkit-appearance: none;
    display: inline-block;
    padding: 12px 24px 13px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 999px !important;
    background-color: #FFFFFF;
    color: var(--primalpath-title-color, #3B4344);
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

body .pp-pill:hover {
    border-color: rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

/* Selected pill: light-gray fill, border removed (per the mockup) */
body .pp-pill.is-selected {
    background-color: #F7F6F3; 
}

body .pp-pill:focus-visible {
    outline: 2px solid var(--color, #415041);
    outline-offset: 2px;
}

/* "Clear" link: force it back on (Salient hides it outside fancy-form
   mode) and style it small/muted. Specificity beats Salient's hide. */
body .pp-pill-mode td.value a.reset_variations {
    display: inline-block !important;
    position: relative;
    top: 1px;
    margin: 14px 0 0 15px;
    font-size: 13px;
    color: var(--primalpath-price-muted, #949C9E);
    text-decoration: underline;
}

body .pp-pill-mode td.value a.reset_variations:hover {
    color: var(--primalpath-title-color, #3B4344);
}

/* Responsive: tighter pills so two fit comfortably on small screens */
@media (max-width: 768px) {
    body .pp-pill-group {
        gap: 10px;
    }

    body .pp-pill {
        padding: 10px 20px 11px;
        font-size: 14px;
    }

    body .pp-pill-mode td.value a.reset_variations {
        margin-top: 12px;
    }
}