/* ================= AH FILTER WRAPPER ================= */
.ah-filter {
    background: #fff;
    /* border: 1px solid #eee; */
    border-radius: 14px;
    /* padding: 16px 14px; */
    margin-bottom: 24px;
    /* box-shadow: 0 6px 18px rgba(0, 0, 0, .05); */
    position: relative;
    font-size: 14px;
}

/* trạng thái đang lọc */
.ah-filter.is-filtering{
    opacity:.6;
    pointer-events:none;
}
.ah-filter.is-filtering:after{
    content:"Đang lọc sản phẩm…";
    position:absolute;
    top:10px;
    right:14px;
    background:#c40000;
    color:#fff;
    font-size:12px;
    padding:4px 10px;
    border-radius:20px;
}

/* ================= TITLE ================= */
.ah-filter .ah-filter-h{
   font-size: 15px;
    font-weight: 600;
    margin: 14px 0 8px;
    background: #0d5daa;
    border-radius: 12px;
    color: #fff;
    padding: 5px;
    padding-bottom: 6px;
    padding-left: 16px;
    border-bottom: 1px dashed #eee;
}
.ah-filter h4:first-child{
    margin-top:0;
}

/* ================= LABEL ================= */
.ah-filter label{
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:8px;
    padding:6px 8px;
    border-radius:8px;
    cursor:pointer;
	box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    transition:.2s;
}
.ah-filter label:hover{
    background:#f7f7f7;
}

/* ================= CUSTOM CHECKBOX ================= */
.ah-filter input[type="checkbox"]{
    appearance:none;
    -webkit-appearance:none;
    width:18px;
    height:18px;
    border-radius:5px;
    border:1.5px solid #bbb;
    background:#fff;
    position:relative;
    cursor:pointer;
    transition:.2s;
}

/* checked */
.ah-filter input[type="checkbox"]:checked{
    background:#c40000;
    border-color:#c40000;
}
.ah-filter input[type="checkbox"]:checked:after{
    content:"";
    position:absolute;
    top:3px;
    left:6px;
    width:4px;
    height:8px;
    border:2px solid #fff;
    border-top:none;
    border-left:none;
    transform:rotate(45deg);
}

/* ================= COUNT ================= */
.ah-filter small{
    margin-left:auto;
    font-size:12px;
    color:#777;
}

/* ================= DISABLED ================= */
.ah-filter label.is-disabled{
    opacity:.4;
    cursor:not-allowed;
}
.ah-filter label.is-disabled input{
    cursor:not-allowed;
    background:#eee;
    border-color:#ccc;
}

/* ================= ACTIVE STATE ================= */
.ah-filter input:checked + span,
.ah-filter label:has(input:checked){
    background:#fff5f5;
    border:1px solid #f2c1c1;
}

/* ================= MOBILE ================= */
@media(max-width:768px){
    .ah-filter{
        border-radius:10px;
        padding:14px;
    }
}
