/* Ryjik — priority-toggle for pa_naznachenie (grain-free / hypoallergenic / lechebnyy)
   Surfaces 3 high-traffic checkbox-list items as accent pill-buttons above the
   scrollable inner-wrap. Original <li>s are hidden (still in DOM, used by AJAX
   filter pipeline). Proxy click → click() on original anchor. */

.ryjik-priority-block {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
    padding: 0 0 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.ryjik-priority-toggle {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none !important;
    color: var(--e-global-color-text, #0C2D48) !important;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 999px;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
    cursor: pointer;
}

.ryjik-priority-toggle:hover {
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.7);
}

.ryjik-priority-toggle.is-chosen {
    background: var(--e-global-color-primary, #DC2626);
    border-color: var(--e-global-color-primary, #DC2626);
    color: #fff !important;
}

.ryjik-priority-toggle.is-chosen:hover {
    background: var(--e-global-color-primary, #DC2626);
    border-color: var(--e-global-color-primary, #DC2626);
}

/* Disabled state — mirrored from <li>.ryjik-disabled (count===0 under current
   other-axis selection). Same visual treatment as the disabled options in the
   scrollable list: dimmed, no hover, no clicks. */
.ryjik-priority-toggle.is-disabled {
    opacity: .4;
    pointer-events: none;
    cursor: default;
}

/* Hide the originals from the scrollable list (they remain in DOM for filter logic). */
.pf-item[data-attribute="naznachenie"] ul li.ryjik-priority-source {
    display: none !important;
}
