/* فهرست چک‌باکسی انتخاب چند دسته در جست‌وجوی سربرگ */
.azin-header .ajax-search-wrapper{overflow:visible!important}
.azin-header .ajax-search-wrapper .s-select:has(.afz-search-category-picker){position:relative;z-index:30;min-width:118px;max-width:190px;overflow:visible}
.afz-search-category-picker{position:relative;display:flex;align-items:stretch;width:100%;height:100%;font-family:inherit;direction:rtl}
.afz-search-category-trigger{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-width:0;padding:0 12px;border:0!important;border-radius:0!important;background:#f8fbfa!important;color:#43524d!important;font:inherit;font-size:12px;font-weight:600;box-shadow:none!important;cursor:pointer;white-space:nowrap}
.afz-search-category-trigger:hover,.afz-search-category-trigger:focus-visible{background:#f0f8f5!important;color:#128f79!important;outline:none}
.afz-search-category-trigger i{font-size:12px;color:#85938d}
.afz-search-category-dropdown{position:absolute;top:calc(100% + 7px);right:0;z-index:99999;width:300px;max-width:min(300px,85vw);padding:9px;border:1px solid #e0e9e5;border-radius:11px;background:#fff;box-shadow:0 12px 32px rgba(26,54,46,.14);color:#34443e;text-align:right}
.afz-search-category-dropdown[hidden]{display:none!important}
.afz-search-category-tools{display:flex;align-items:center;gap:6px;padding-bottom:8px;border-bottom:1px solid #edf1ef}
.afz-search-category-filter{flex:1;min-width:0;height:34px;padding:0 10px;border:1px solid #e1e9e5;border-radius:7px;background:#fbfdfc;color:#34443e;font:inherit;font-size:11px;outline:none}
.afz-search-category-filter:focus{border-color:#19b99a;box-shadow:0 0 0 2px rgba(25,185,154,.1)}
.afz-search-category-clear,.afz-search-category-done{height:32px;padding:0 10px;border:1px solid #dceee8;border-radius:7px;background:#f0faf6;color:#128f79;font:inherit;font-size:10px;font-weight:700;cursor:pointer;white-space:nowrap}
.afz-search-category-clear:hover{background:#e5f5ef}
.afz-search-category-list{max-height:315px;overflow:auto;padding:5px 1px;scrollbar-width:thin;scrollbar-color:#c7d9d2 transparent}
.afz-search-category-option{display:flex;align-items:center;gap:8px;min-height:31px;padding:5px 8px 5px calc(8px + (var(--afz-category-depth,0) * 9px));border-radius:6px;color:#394943;font:inherit;font-size:11px;line-height:1.5;cursor:pointer;transition:background-color .12s ease,color .12s ease}
.afz-search-category-option:hover{background:#f3faf7;color:#128f79}
.afz-search-category-option[hidden]{display:none!important}
.afz-search-category-option input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.afz-search-category-square{position:relative;flex:0 0 15px;width:15px;height:15px;border:1px solid #b9c9c2;border-radius:4px;background:#fff}
.afz-search-category-option input:checked+.afz-search-category-square{border-color:#19b99a;background:#19b99a}
.afz-search-category-option input:checked+.afz-search-category-square::after{content:"";position:absolute;top:2px;right:4px;width:4px;height:7px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.afz-search-category-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.afz-search-category-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:8px;border-top:1px solid #edf1ef;color:#899891;font-size:10px}
.afz-search-category-done{background:var(--azin-main-color,#19b99a);border-color:var(--azin-main-color,#19b99a);color:#fff}
.afz-search-category-done:hover{background:#128f79;border-color:#128f79;color:#fff}
.afz-search-category-empty{padding:18px 8px;text-align:center;color:#899891;font-size:11px}
@media(max-width:767px){.azin-header .ajax-search-wrapper .s-select:has(.afz-search-category-picker){min-width:92px;max-width:118px}.afz-search-category-trigger{padding:0 8px;font-size:10px}.afz-search-category-dropdown{width:280px;max-width:calc(100vw - 28px);right:auto;left:0}.afz-search-category-list{max-height:52vh}.afz-search-category-option{font-size:11px}}

/* ارث‌بری دقیق فونت سایت در تمام اجزای انتخابگر دسته‌بندی سربرگ */
.azin-header .afz-search-category-picker,
.azin-header .afz-search-category-trigger,
.azin-header .afz-search-category-dropdown,
.azin-header .afz-search-category-filter,
.azin-header .afz-search-category-option,
.azin-header .afz-search-category-footer,
.azin-header .afz-search-category-clear,
.azin-header .afz-search-category-done{
    font-family:inherit!important;
}


/* انتخابگر جایگزین select است؛ فلش pseudo-element قالب نباید کنار فلش داخلی دوباره نمایش داده شود. */
.azin-header .ajax-search-wrapper .s-select:has(.afz-search-category-picker)::before,
.azin-header .ajax-search-wrapper .s-select:has(.afz-search-category-picker)::after{
    display:none!important;
    content:none!important;
}
.azin-header .ajax-search-wrapper .s-select:has(.afz-search-category-picker) .afz-search-category-trigger{
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    outline:0!important;
}
