
.npf-sidebar-widget {
    margin: 0;
}

.npf-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: .85rem;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

.npf-title {
    margin: 0;
    font-size: 2rem;
    line-height: 1.1;
    font-style: italic;
}

.npf-clear-all {
    font-weight: 600;
    text-decoration: underline;
}

.npf-selected {
    margin: 0 0 1rem;
    padding: .85rem 0 1rem;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

.npf-selected.is-empty {
    display: none;
}

.npf-selected-title {
    font-size: .9rem;
    font-weight: 700;
    margin-bottom: .55rem;
}

.npf-selected-items {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.npf-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border: 1px solid rgba(0,0,0,.16);
    background: #fff;
    border-radius: 999px;
    padding: .35rem .65rem;
    font-size: .9rem;
    line-height: 1.2;
    cursor: pointer;
}

.npf-chip-swatch {
    width: 14px;
    height: 14px;
    border: 1px solid rgba(0,0,0,.18);
    border-radius: 999px;
    display: inline-block;
    flex: 0 0 14px;
}

.npf-chip-swatch.is-empty {
    background:
        linear-gradient(45deg, rgba(0,0,0,.04) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(0,0,0,.04) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(0,0,0,.04) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(0,0,0,.04) 75%);
    background-size: 8px 8px;
    background-position: 0 0, 0 4px, 4px -4px, -4px 0;
}

.npf-chip-remove {
    font-size: 1rem;
    line-height: 1;
}

.npf-group {
    border-top: 1px solid rgba(0,0,0,.08);
    padding-top: 1rem;
}

.npf-group:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.npf-group + .npf-group {
    margin-top: 1rem;
}

.npf-group summary {
    cursor: pointer;
    list-style: none;
    position: relative;
    font-weight: 700;
    font-size: 1.05rem;
    padding-right: 1.5rem;
}

.npf-group summary::-webkit-details-marker {
    display: none;
}

.npf-group summary::after {
    content: "\2304";
    position: absolute;
    right: 0;
    top: -.05rem;
    line-height: 1;
    transition: transform .15s ease;
}

.npf-group[open] summary::after {
    transform: rotate(180deg);
}

.npf-options,
.npf-swatches {
    margin-top: .9rem;
}

.npf-options {
    display: grid;
    gap: .7rem;
}

.npf-option {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: .65rem;
    margin: 0;
    cursor: pointer;
}

.npf-option input {
    margin: 0;
}

.npf-option-label {
    line-height: 1.35;
}

.npf-option-count {
    opacity: .75;
}

.npf-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.npf-tiles {
    margin-top: .9rem;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.npf-tile {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    min-height: 34px;
    border: 1px solid rgba(0,0,0,.15);
    background: #f3f3f3;
    cursor: pointer;
    margin: 0;
    padding: 0 .7rem;
}

.npf-tile input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.npf-tile-label {
    font-size: .95rem;
    line-height: 1;
    color: rgba(0,0,0,.75);
    white-space: nowrap;
}

.npf-tile.is-selected {
    border-color: #7b3db8;
    box-shadow: inset 0 0 0 1px #7b3db8;
    background: #ffffff;
}

.npf-tile.is-selected .npf-tile-label {
    color: #7b3db8;
}

.npf-swatch {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0;
}

.npf-swatch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.npf-swatch-box {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,.18);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
    display: inline-block;
}

.npf-swatch-box.is-empty {
    background:
        linear-gradient(45deg, rgba(0,0,0,.04) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(0,0,0,.04) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(0,0,0,.04) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(0,0,0,.04) 75%);
    background-size: 8px 8px;
    background-position: 0 0, 0 4px, 4px -4px, -4px 0;
}

.npf-swatch.is-selected .npf-swatch-box {
    outline: 2px solid #111111;
    outline-offset: 2px;
}

.npf-actions {
    margin-top: 1.25rem;
}

.npf-actions .button.alt {
    width: 100%;
}

@media (max-width: 849px) {
    .npf-title {
        font-size: 1.5rem;
    }
}
