.filter-wrapper-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0 6px;
}

.filter-left-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.filter-label {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
}

.cr-filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
}

.filter-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 20px;
    border: 1.5px solid #ddd;
    font-size: 12px;
    color: #444;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .15s, color .15s;
}

.filter-item.is-active,
.filter-item:hover {
    border-color: #014f2b;
    color: #014f2b;
}

.radio-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid currentColor;
    flex-shrink: 0;
}

.filter-item.is-active .radio-dot {
    background: #014f2b;
}

.filter-right-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.tnc-filter-dropdown {
    position: relative;
}

.tnc-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 8px;
    border: 1.5px solid #d8d8d8;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    color: #2b2b2d;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1.4;
    transition: border-color .2s, background .2s, color .2s;
}

.tnc-filter-btn:hover {
    border-color: #014f2b;
    color: #014f2b;
}

.tnc-filter-btn.is-open,
.tnc-filter-btn.has-active {
    border-color: #014f2b;
    background: #f0faf4;
    color: #014f2b;
}

.tnc-chevron {
    flex-shrink: 0;
    transition: transform .2s;
}

.tnc-filter-btn.is-open .tnc-chevron {
    transform: rotate(180deg);
}

.tnc-filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #014f2b;
    color: #fff;
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.6;
}

.tnc-filter-panel {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 210px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
    z-index: 1050;
    overflow: hidden;
}

.tnc-filter-panel.is-open {
    display: block;
    animation: tncFadeDown .18s ease;
}

@keyframes tncFadeDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tnc-filter-panel-inner {
    max-height: 240px;
    overflow-y: auto;
    padding: 8px 0;
}

.tnc-filter-panel-inner::-webkit-scrollbar {
    width: 4px;
}

.tnc-filter-panel-inner::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

.tnc-filter-check {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 16px;
    font-size: 13px;
    color: #2b2b2d;
    cursor: pointer;
    user-select: none;
    transition: background .12s;
}

.tnc-filter-check:hover {
    background: #f5fbf7;
    color: #014f2b;
}

.tnc-filter-check input[type="checkbox"] {
    display: none;
}

.tnc-check-box {
    width: 17px;
    height: 17px;
    border-radius: 4px;
    border: 2px solid #ccc;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: border-color .15s, background .15s;
}

.tnc-filter-check input:checked+.tnc-check-box {
    background: #014f2b;
    border-color: #014f2b;
}

.tnc-filter-check input:checked+.tnc-check-box::after {
    content: '';
    display: block;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-1px);
}

.tnc-filter-check:has(input:checked) {
    background: #f0faf4;
    color: #014f2b;
    font-weight: 500;
}

.tnc-filter-panel-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 10px 14px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.tnc-btn-clear-group {
    font-size: 12px;
    color: #e53935;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 500;
}

.tnc-btn-clear-group:hover {
    background: #fff0f0;
}

.tnc-btn-apply {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: #014f2b;
    border: none;
    padding: 6px 16px;
    border-radius: 7px;
    cursor: pointer;
    transition: background .15s;
}

.tnc-btn-apply:hover {
    background: #013d22;
}

.tnc-clear-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    background: #fff0f0;
    color: #e53935;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #fcc;
    transition: background .15s;
    white-space: nowrap;
}

.tnc-clear-all-btn:hover {
    background: #ffe0e0;
    color: #c62828;
}

.tnc-active-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 0 2px;
}

.tnc-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: #e8f5ee;
    color: #014f2b;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #b2d8c4;
    transition: background .15s;
}

.tnc-tag:hover {
    background: #d0eddc;
    color: #013d22;
}

.tnc-tag svg {
    flex-shrink: 0;
    opacity: .7;
}