
.all-categories {
    width: 100%;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid #EBF0F5;
    /*height: calc(3rem + 24px);*/
    /*overflow: hidden;*/
    background: #fff;
    position: sticky;
    top: 3px
}

.all-categories .categories {
    display: flex;
    flex-direction: column;
    transition: all .3s;
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    margin-bottom: 0;
    max-height: 0;
}

.all-categories.show .categories {
    height: 100%;
    visibility: visible;
    opacity: 100;
    max-height: var(--max-height);
}

.all-categories.show .all-categories__title {
    margin-bottom: 1.25rem;
}

.all-categories.show .all-categories__title svg {
    transform: rotate(180deg);
}

.all-categories .categories li {
    display: flex;
    align-items: center;
    list-style: none;
    cursor: pointer;
    text-align: center;
    border-radius: 10px;
    -webkit-transition: all 0.2s linear;
    transition: all 0.3s linear;
    /*background-color: #e8e8e8b3;*/
    width: 100%;
    padding: 0.25rem 0.5rem;
    gap: 0.5rem;
    color: #475569;
    font-size: 0.875rem
}

.all-categories .categories li:not(:last-child) {
    margin-bottom: 0.25rem;
}

.all-categories .categories li a {
    order: 2;
    width: 100%;
    text-align: right
}

.all-categories .categories li span {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    background: #EBF0F5;
    font-size: 0.875rem;
    color: #475569;
    font-weight: 500;
    font-variation-settings: "wght" 500;
    flex-shrink: 0;
}

.all-categories .categories li:hover {
    background: #F8FAFC
}

.all-categories .categories li.active {
    background: #EFF7FF;
    color: #185ADB
}

.all-categories .categories li.active span {
    background: #1A4AB3;
    color: #fff
}

.all-categories__title {
    color: #1E293B;
    font-size: 1rem;
    font-weight: 500;
    font-variation-settings: "wght" 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 0;
}

.all-categories__title svg {
    transition: all 0.3s;
}


@media only screen and (max-width: 1200px) {
    .filter-modal {
        display: none;
        background: rgba(0, 0, 0, 0.5);
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 100%;
        z-index: 2000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s
    }

    .filter-modal.active {
        opacity: 100;
        visibility: visible;
        display: block;
    }

    .filter-modal__dialog {
        position: fixed;
        bottom: 0;
        right: 0;
        width: 100%;
        margin: 0;
        background: #fff;
        border-radius: 1rem 1rem 0 0;
        transition: all 0.2s;
        transform: translateY(20px);
        /*max-height: 600px;*/
        overflow: auto;
    }

    .filter-modal.active .filter-modal__dialog {
        transform: translateY(0);
    }

    .filter-modal__title {
        font-size: 1rem;
        color: #1E293B;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 24px;
        border-bottom: 1px solid #E2E8F0;
    }

    .filter-modal .economic-calendar__box {
        border-top: none;
        border-radius: 0;
        margin: 0;
        padding: 24px
    }

    .filter-modal__currency {
        transition: all 0.3s;
        height: 0;
        overflow: hidden;
        direction: ltr;
    }

    .filter-modal__currency.active {
        height: 200px;
        overflow: auto;
    }

    .filter-modal__currency * {
        direction: rtl;
    }

    .filter-modal__currency::-webkit-scrollbar {
        width: 3px;
        height: 40px
    }

    .filter-modal__currency::-webkit-scrollbar-track {
        background: #F8FAFC;
        border-radius: 99px;
    }

    .filter-modal__currency::-webkit-scrollbar-thumb {
        background-color: #D5DDE8;
        border-radius: 99px
    }

    .filter-modal__currency {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .filter-modal__currency > div {
        width: 50%;
        flex-shrink: 0;
        flex-grow: 1;
    }

    .filter-modal__footer {
        padding: 24px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem
    }

    .filter-modal__footer button {
        flex-grow: 1;
        border-radius: 10px;
        flex-shrink: 0;
        font-size: 14px;
        padding: 14px 8px;
    }

    .btn-clear-filter {
        border: 1px solid #E2E8F0;
        color: #334155;
    }

    .btn-show-detail {
        background: #185ADB;
        color: #fff;
    }

    .filter-modal__body .all-categories {
        padding-bottom: 0;
        border-radius: 0;
        border: none;
    }

    .filter-modal__body .categories {
        direction: ltr;
        height: 400px !important;
        overflow: auto;
        display: flex;
        flex-direction: column;
        transition: all .3s;
        opacity: 100;
        visibility: visible;
        padding-bottom: 0;
        max-height: unset !important;
    }

    .filter-modal__body .categories {
        border: none;
        border-radius: 0;
    }

    .filter-modal__body .all-categories .categories li {
        flex-direction: row-reverse;
    }

    .filter-modal__body .categories::-webkit-scrollbar {
        width: 3px;
        height: 40px
    }

    .filter-modal__body .categories::-webkit-scrollbar-track {
        background: #F8FAFC;
        border-radius: 99px;
    }

    .filter-modal__body .categories::-webkit-scrollbar-thumb {
        background-color: #D5DDE8;
        border-radius: 99px
    }

}

@media (min-width: 993px) {
    .filter-modal {
        display: none;
    }
}