.fake-time-banner {
    position: fixed;
    top: 58px;
    left: 0;
    width: 100vw;
    padding: 12px 15px;
    box-sizing: border-box;
    text-align: center;
    z-index: 1029;
}

.maintenance-banner {
    position: fixed;
    top: 58px;
    left: 0;
    width: 100vw;
    padding: 12px 15px;
    box-sizing: border-box;
    text-align: center;
    z-index: 1030;
    color: #ffeb99;
    background-color: rgba(166, 122, 35, 0.7);
    border-bottom: 2px solid #d58512;
}

body.has-admin-bar .fake-time-banner {
    top: 102px;
}

body.has-admin-bar .maintenance-banner {
    top: 102px;
}

body.has-maintenance-banner.has-fake-time-banner .maintenance-banner {
    top: 58px;
}

body.has-maintenance-banner.has-fake-time-banner .fake-time-banner {
    top: 104px;
}

body.has-admin-bar.has-maintenance-banner.has-fake-time-banner .maintenance-banner {
    top: 102px;
}

body.has-admin-bar.has-maintenance-banner.has-fake-time-banner .fake-time-banner {
    top: 148px;
}

.fake-time-banner.session-override {
    background-color: #d9534f;
    border-bottom: 1px solid #ac2925;
}

.fake-time-banner.fake-time {
    background-color: #f0ad4e;
    border-bottom: 1px solid #ec971f;
}

.fake-time-banner.session-override .fake-time-text {
    color: #ffffff;
}

.fake-time-banner.fake-time .fake-time-text {
    color: #333;
}

.fake-time-text {
    display: block;
    width: 100%;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
    color: #333;
}

.maintenance-banner-text {
    display: block;
    width: 100%;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Adjust body and carousel when banner is present */
body.has-fake-time-banner {
    padding-top: 132px !important;
}

body.has-maintenance-banner {
    padding-top: 132px !important;
}

body.has-admin-bar.has-fake-time-banner {
    padding-top: 176px !important;
}

body.has-admin-bar.has-maintenance-banner {
    padding-top: 176px !important;
}

body.has-maintenance-banner.has-fake-time-banner {
    padding-top: 178px !important;
}

body.has-admin-bar.has-maintenance-banner.has-fake-time-banner {
    padding-top: 222px !important;
}

body.has-fake-time-banner .CarouselContainer {
    top: 110px !important;
}

body.has-maintenance-banner .CarouselContainer {
    top: 110px !important;
}

body.has-admin-bar.has-fake-time-banner .CarouselContainer {
    top: 154px !important;
}

body.has-admin-bar.has-maintenance-banner .CarouselContainer {
    top: 154px !important;
}

body.has-maintenance-banner.has-fake-time-banner .CarouselContainer {
    top: 156px !important;
}

body.has-admin-bar.has-maintenance-banner.has-fake-time-banner .CarouselContainer {
    top: 200px !important;
}

@media (min-width: 768px) and (max-width: 1199px) {
    body.has-admin-bar.has-team-search .maintenance-banner,
    body.has-admin-bar.has-team-search .fake-time-banner {
        top: 58px;
    }

    body.has-admin-bar.has-team-search.has-maintenance-banner,
    body.has-admin-bar.has-team-search.has-fake-time-banner {
        padding-top: 132px !important;
    }

    body.has-admin-bar.has-team-search.has-maintenance-banner.has-fake-time-banner {
        padding-top: 178px !important;
    }

    body.has-admin-bar.has-team-search.has-maintenance-banner.has-fake-time-banner .maintenance-banner {
        top: 58px;
    }

    body.has-admin-bar.has-team-search.has-maintenance-banner.has-fake-time-banner .fake-time-banner {
        top: 104px;
    }

    body.has-admin-bar.has-team-search.has-maintenance-banner .CarouselContainer,
    body.has-admin-bar.has-team-search.has-fake-time-banner .CarouselContainer {
        top: 110px !important;
    }

    body.has-admin-bar.has-team-search.has-maintenance-banner.has-fake-time-banner .CarouselContainer {
        top: 156px !important;
    }

    body.has-admin-bar.has-team-search.has-maintenance-banner .wc-admin-bar .wc-admin-tools-menu,
    body.has-admin-bar.has-team-search.has-maintenance-banner .wc-modern-nav .wc-admin-tablet-actions .wc-admin-tools-menu {
        top: 108px;
        max-height: calc(100vh - 126px);
    }

    body.has-admin-bar.has-team-search.has-maintenance-banner.has-fake-time-banner .wc-admin-bar .wc-admin-tools-menu,
    body.has-admin-bar.has-team-search.has-maintenance-banner.has-fake-time-banner .wc-modern-nav .wc-admin-tablet-actions .wc-admin-tools-menu {
        top: 154px;
        max-height: calc(100vh - 172px);
    }
}

/* Mobile adjustments for sticky carousel */
@media (max-width: 767px) {
    body.has-admin-bar .maintenance-banner,
    body.has-admin-bar .fake-time-banner {
        top: 100px;
    }

    body.has-admin-bar.has-maintenance-banner,
    body.has-admin-bar.has-fake-time-banner {
        padding-top: 158px !important;
    }

    body.has-admin-bar.has-maintenance-banner.has-fake-time-banner {
        padding-top: 204px !important;
    }

    body.has-maintenance-banner.has-fake-time-banner .fake-time-banner {
        top: 104px;
    }

    body.has-admin-bar.has-maintenance-banner.has-fake-time-banner .maintenance-banner {
        top: 100px;
    }

    body.has-admin-bar.has-maintenance-banner.has-fake-time-banner .fake-time-banner {
        top: 146px;
    }

    .CarouselContainer {
        position: -webkit-sticky;
        position: sticky !important;
        top: 55px;
        z-index: 900;
    }

    body.has-maintenance-banner .CarouselContainer,
    body.has-fake-time-banner .CarouselContainer {
        top: 110px !important;
    }

    body.has-admin-bar.has-maintenance-banner .CarouselContainer,
    body.has-admin-bar.has-fake-time-banner .CarouselContainer {
        top: 148px !important;
    }

    body.has-maintenance-banner.has-fake-time-banner .CarouselContainer {
        top: 156px !important;
    }

    body.has-admin-bar.has-maintenance-banner.has-fake-time-banner .CarouselContainer {
        top: 194px !important;
    }

    body.has-maintenance-banner .wc-admin-bar .wc-admin-tools-menu {
        top: 150px;
        max-height: calc(100vh - 168px);
    }

    body.has-maintenance-banner.has-fake-time-banner .wc-admin-bar .wc-admin-tools-menu {
        top: 196px;
        max-height: calc(100vh - 214px);
    }
}
