﻿
/*#region Gated*/

body:has(article.full-gated-content) .mims-footer-gated-content {
    display: block !important;
}

body:has(article.partial-gated-content) .mims-footer-gated-content {
    display: block !important;
}

body:has(div.control-section.full-gated-content) .mims-footer-gated-content {
    display: block !important;
}

body:has(article.full-gated-content) .mims-footer-content {
    display: none !important;
}

body:has(article.partial-gated-content) .mims-footer-content {
    display: none !important;
}

.partial-gated-content > .disease-content:has(#disease-algorithm-diagram):after {
    height: 100% !important;
}

/*#endregion*/

@media (max-width: 1023.98px) {

    /*#region Gated*/
    .msp-content-body-section:has(article.partial-gated-content) .msp-primesighttop-container {
        display: none !important;
    }

    .msp-content-body-section:has(article.full-gated-content) .msp-primesighttop-container {
        display: none !important;
    }

    body:has(article.full-gated-content) .mims-footer {
        position: relative;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1029;
    }

    body:has(article.partial-gated-content) .mims-footer {
        position: relative;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 1029;
    }


    .full-gated-content {
        position: relative;
        overflow: hidden;
        text-overflow: clip;
        height: 30vh;
        overflow-y: auto;
    }

    .full-gated-content:after {
        content: '';
        width: 100%;
        height: calc(100% - 10px);
        position: absolute;
        left: 0;
        bottom: 0;
        -webkit-filter: blur(4px);
        -moz-filter: blur(4px);
        filter: blur(4px);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    .partial-gated-content > .disease-content:after, .partial-gated-content > .article-content:after {
        height: calc(100% - 220px) !important;
    }

    .partial-gated-content > .article-content, .partial-gated-content > .disease-content {
        height: 285px !important;
    }
    /*#endregion*/

}

@media (min-width: 1024px) {

    .msp-body-content-container .full-gated-content {
        height: 260px;
        overflow: hidden;
    }

        .msp-body-content-container .full-gated-content * {
            height: 100%;
        }

    body:has(article.full-gated-content) .mims-footer {
        bottom: 0;
        height: 100%;
        width: 100%;
        top: calc(100vh - 100px);
        z-index: 1029;
    }

    body:has(article.partial-gated-content) .mims-footer {
        bottom: 0;
        height: 100%;
        width: 100%;
        top: calc(100vh - 100px);
        z-index: 1029;
    }

    .article-content-body-container:has(.partial-gated-content) {
        padding-bottom: 0 !important;
    }

    .article-content-body-container:has(.full-gated-content) {
        padding-bottom: 0 !important;
    }

}