/**
 * Category filter bar for [pricing_plans filters="yes"].
 *
 * Shared by all three pricing layouts, so it reads from the design tokens
 * rather than any one layout's stylesheet. Deliberately quiet: the plan cards
 * are what the visitor came to compare, and the bar is only the way in.
 */

.ss-plan-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 28px;
    padding: 0;
    list-style: none;
}

.ss-plan-filters__button {
    display: inline-block;
    margin: 0;
    padding: 8px 18px;
    border: 1px solid var(--ss-border, #E1E6EA);
    border-radius: 999px;
    background: var(--ss-surface, #FFFFFF);
    color: var(--ss-body, #4B5563);
    font: inherit;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ss-plan-filters__button:hover {
    border-color: var(--ss-primary, #0F766E);
    color: var(--ss-primary, #0F766E);
}

/* Keyboard users get the same affordance mouse users get on hover. */
.ss-plan-filters__button:focus-visible {
    outline: 2px solid var(--ss-primary, #0F766E);
    outline-offset: 2px;
}

.ss-plan-filters__button[aria-pressed="true"] {
    background: var(--ss-primary, #0F766E);
    border-color: var(--ss-primary, #0F766E);
    color: #FFFFFF;
}

/* Hiding a card is a state change, not an animation — anything that moves the
   surviving cards around makes the grid feel unstable while you scan it. */
.ss-pricing-plan[hidden] {
    display: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .ss-plan-filters__button {
        transition: none;
    }
}
