/* =========================================================
   StudioEsagono - Taxonomy Filter Widget
   ========================================================= */

.cew-tax-filter {
    width: 100%;
    box-sizing: border-box;
}

.cew-tax-filter__title {
    margin: 0 0 16px;
}

.cew-tax-filter__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cew-tax-filter__option {
    margin: 0;
    padding: 0;
}

.cew-tax-filter__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.cew-tax-filter__input {
    flex-shrink: 0;
    margin: 0;
    cursor: pointer;
}

.cew-tax-filter__name {
    word-break: break-word;
}

.cew-tax-filter__count {
    font-size: 0.9em;
    opacity: 0.85;
}

.cew-tax-filter__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.cew-tax-filter--auto .cew-tax-filter__actions:empty {
    display: none;
}

.cew-tax-filter__button {
    display: inline-block;
    border: none;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.cew-tax-filter__button:focus,
.cew-tax-filter__button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.cew-tax-filter__button--reset {
    background-color: transparent;
    color: inherit;
    border: 1px solid currentColor;
}
