.widget.card:not(.widget-mobile-single-financial-institution) {
    position: sticky;
    padding: 1rem;
    border: none !important;

    .widget-title {
        display: flex;
        flex-direction: row-reverse;
        cursor: pointer;

        span {
            font-size: 18px;
        }
    }

    .widget-content {
        padding: 0px !important;
        -ms-overflow-style: none; /* IE and Edge */
        scrollbar-width: none; /* Firefox */

        #ez-toc-container {
            padding: 0px !important;
            border: none !important;
            box-shadow: none !important;
            margin-bottom: 0px;

            .ez-toc-title-container {
                display: none !important;

            }

            .ez-toc-list {
                padding: unset;
                line-height: 30px;
                color: #4A4A4A;
                margin-top: 10px;

                li {
                    font-size: 12px;
                    font-weight: 600;
                    font-variation-settings: "wght" 600, "KSHD" 100;
                    transition: color 0.2s linear;
                    padding-right: 15px;
                    max-height: 30px;
                    overflow: hidden;

                    a {
                        text-decoration: none;
                        color: #4A4A4A;
                    }
                }

                li.active > a {
                    text-decoration: none;
                    color: #007aff !important;
                }

                li:has(.active),
                li.active {
                    max-height: fit-content !important;
                }
            }
        }
    }

    .widget-content::-webkit-scrollbar {
        display: none;
    }
}

.single-financial-institution #sidebar:has(:not(.btn)) .widget-card-desktop {
    top: 50px;
}

.single-financial-institution .widget.card:not(.widget-mobile-single-financial-institution) {
    top: 140px !important;
}

:not(.single-financial-institution) .widget.card:not(.widget-mobile-single-financial-institution) {
    top: 0;
}


@media (min-width: 768px) {
    .widget.card:not(.widget-mobile-single-financial-institution) {
        .widget-content {
            min-height: min-content;
            max-height: 495px !important;
            overflow-y: scroll !important;

            .ez-toc-list {
                li {
                    padding-top: 4px !important;

                    a {
                        height: 22px !important;
                        display: block;
                        overflow: hidden;
                        display: -webkit-box;
                        -webkit-line-clamp: 1;
                        line-clamp: 1;
                        -webkit-box-orient: vertical;
                        overflow: hidden;
                        text-decoration: none;
                    }
                }

                li:before {
                    content: '';
                    position: absolute;
                    width: 1px;
                    background: #EBF0F5;
                    right: 0;
                    height: 30px;
                    z-index: 1;
                    margin-top: -4px;
                }

                li.active:before {
                    background: #185ADB;
                }
            }
        }
    }

    .irb-financial-article-limit.toggle {
        .contentstyle {
            max-height: 500px;
            overflow: hidden;
        }
    }
}

@media (max-width: 767px) {
    .widget.card.widget-mobile-single-financial-institution {
        display: block;
        position: fixed;
        top: 50%;
        z-index: 1;

        .widget-title {
            /* display: none; */
            background: #185adb;
            color: #fff;
            border-radius: 8px 8px 0px 0px;
            transform: rotate(-90deg);
            position: absolute;
            right: -59px;
            font-size: 12px;
            height: max-content;
            width: max-content;
            align-items: baseline;
            padding: 5px 15px;
            margin: 0px !important;

            svg {
                display: none;
            }
        }

        .widget-content {
            position: absolute;
            top: -50px;
            right: 18px;
            width: 80%;

            #ez-toc-container {
                padding: 20px 0px !important;
                border-radius: 6px;
                border-left: 3px solid #185ADB !important;
                box-shadow: 0px 0px 34.6px 0px rgba(255, 255, 255, 0.15);
                background: #fff;
                min-width: 280px;
                max-width: 450px;

                .ez-toc-title-container {
                    display: none !important;
                }

                nav {
                    background: #fff;
                    border-radius: 6px;
                    padding: 0px 20px;
                    max-height: 150px;
                    overflow-y: scroll;
                    scrollbar-width: none;
                    margin-top: 0.4rem;

                    .ez-toc-list {
                        width: 100%;
                        height: 100%;

                        li {
                            max-height: 26px;

                            a {
                                font-size: 12px;
                                line-height: 220%;
                                font-variation-settings: "wght" 600;
                                color: #444;
                                box-shadow: none;
                                text-decoration: none;
                                text-shadow: none;
                                display: inline-flex;
                                align-items: stretch;
                                flex-wrap: nowrap;
                            }

                            a:hover {
                                color: #185ADB;
                            }
                        }

                        li:has(.active),
                        li.active {
                            max-height: max-content;

                            ul {
                                margin: 0px;
                                margin-right: 10px;
                            }
                        }
                    }
                }

                .irb-single-list-close-btn {
                    position: absolute;
                    top: 5px;
                    left: 5px;
                    z-index: 11;
                }
            }
        }
    }

    .widget.card.widget-mobile-single-financial-institution.active::before {
        content: "";
        width: 120%;
        height: 130vh;
        background-color: rgba(0, 0, 0, 0.25);
        position: fixed;
        top: 0;
        left: 0;
    }

    .widget.card:not(.widget-mobile-single-financial-institution) {
        .widget-content {
            min-height: min-content;
            max-height: 495px !important;
            overflow-y: scroll !important;

            .ez-toc-list {
                li {
                    padding-top: 4px !important;

                    a {
                        height: 22px !important;
                        display: block;
                        overflow: hidden;
                        display: -webkit-box;
                        -webkit-line-clamp: 1;
                        line-clamp: 1;
                        -webkit-box-orient: vertical;
                        overflow: hidden;
                        text-decoration: none;
                    }
                }

                li:before {
                    content: '';
                    position: absolute;
                    width: 1px;
                    background: #EBF0F5;
                    right: 0;
                    height: 30px;
                    z-index: 1;
                    margin-top: -4px;
                }

                li.active:before {
                    background: #185ADB;
                }
            }
        }

        .irb-financial-article-limit.toggle .contentstyle {
            max-height: 500px;
            overflow: hidden;
        }
    }
}

.ez-toc-title-container {
    display: none !important
}

.single-post__sidebar-list, #ez-toc-container {
    border: none !important
}

.sidebarSingleBlogList .widget-title {
    padding-right: 15px
}

.sidebarSingleBlogList {
    border-right: 1px solid #EBF0F5;
    /*padding: 0 20px 0 10px;*/
}

.sidebarSingleBlogList #ez-toc-container {
    padding: 0
}
