.top-banner {
    height: 46px;
    background: url(../img/backgrounds/bg-apex-banner.svg);
    background-position: center;
    background-color: #7919FF;
    background-size: cover;
    padding: 2px 8px;
    color: #fff;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    line-height: 24px;

    @include media-breakpoint-up(md) {
        padding: 5px 8px;
    }

    .btn {
        margin-top: 4px;
        margin-left: 8px;
        font-size: 12px;

        @include media-breakpoint-up(md) {
            margin-top: 2px;
            margin-left: 16px;
            font-size: 16px;
        }
    }

    p {
        padding-top: 10px;
        font-size: 12px;
        line-height: 20px;
        text-align: center;
        margin: auto;

        @include media-breakpoint-up(md) {
            padding-top: 8px;
            font-size: 16px;
            width: initial;
        }
    }
}

body {
    padding-top: 46px;
}
.top-nav {
    top: 46px;
}
.right-sidebar,
.left-sidebar {
    @include media-breakpoint-up(lg) {
        top: 100px;
    }
}

$banner-top-offset: 146px;

.floating-nav {
  top: $banner-top-offset;
}

.main h1:before,
.main h2:before,
.main h3:before,
.main h4:before,
.main h5:before,
.main h6:before,
#main_content_wrapper:before,
.interactive-block:before {
    margin-top: -$banner-top-offset;
    height: $banner-top-offset;
}

.content h1:first-child:before {
    margin-top: -$banner-top-offset;
}

#main_content_wrapper {
    margin-top: 53px;
}

html.light {
    .top-banner {
        .btn-outline-secondary {
            color: #E0E0E1;
            border-color: #E0E0E1;
            &:not(:disabled):not(.disabled):hover {
                color: #111112;
                background-color: #E0E0E1;
                border-color: #E0E0E1;
            }
        }

    }
}

.page-calculator #calculator-mobile-toggle.show {
  top: ($banner-top-offset + 4px)
}
