.glxads {
    width: min(100%, 980px);
    margin: 30px auto;
    padding: 12px;
    border-radius: 20px;
    border: 1px solid rgba(148,163,184,.16);
    background: rgba(15,23,42,.38);
    box-shadow: 0 18px 50px rgba(0,0,0,.16);
    text-align: center;
    clear: both;
    box-sizing: border-box;
}

.glxads,
.glxads * {
    box-sizing: border-box;
}

.glxads-label {
    display: block;
    margin-bottom: 8px;
    color: rgba(148,163,184,.82);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .12em;
    line-height: 1;
    text-transform: uppercase;
}

.glxads .adsbygoogle {
    min-height: 90px;
}

.glxads-in_article_1,
.glxads-in_article_2,
.glxads-bottom {
    margin-top: 34px;
    margin-bottom: 34px;
}

.glxads-rails {
    position: fixed;
    inset: 0;
    z-index: 9990;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
}

.glxads-rails.glxads-rails-visible {
    opacity: 1;
    visibility: visible;
}

.glxads-rails.glxads-rails-bottom {
    opacity: 0;
    visibility: hidden;
}

.glxads-rail {
    position: fixed;
    top: calc(var(--glxh-height, 120px) + 26px);
    z-index: 9990;
    width: 160px;
    max-height: calc(100vh - var(--glxh-height, 120px) - 64px);
    pointer-events: auto;
    transform: translate3d(0, 12px, 0);
    transition: transform .35s ease, opacity .35s ease;
}

.glxads-rails-visible .glxads-rail {
    transform: translate3d(0, 0, 0);
}

.glxads-rail-left {
    left: max(12px, calc((100vw - 1380px) / 2 - 190px));
}

.glxads-rail-right {
    right: max(12px, calc((100vw - 1380px) / 2 - 190px));
}

.glxads-rail .glxads {
    width: 160px;
    min-height: 600px;
    margin: 0;
    padding: 8px;
    border-radius: 18px;
    background: rgba(15,23,42,.44);
    box-shadow: 0 18px 55px rgba(0,0,0,.24);
}

.glxads-rail .adsbygoogle {
    min-width: 120px;
    min-height: 560px;
}

.glxads-sticky-wrap {
    position: fixed;
    left: 50%;
    bottom: max(8px, env(safe-area-inset-bottom));
    z-index: 9995;
    width: min(728px, calc(100% - 32px));
    height: 82px;
    transform: translate3d(-50%, 0, 0);
    transition: transform .22s ease, opacity .22s ease, visibility .22s ease;
}

.glxads-sticky-wrap[hidden],
.glxads-sticky-wrap.glxads-closed {
    display: none !important;
}

.glxads-sticky-wrap.glxads-scroll-hide {
    opacity: 0;
    visibility: hidden;
    transform: translate3d(-50%, calc(100% + 28px), 0);
    pointer-events: none;
}

.glxads-sticky-wrap .glxads-sticky {
    position: static;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 7px 12px 9px;
    transform: none;
    overflow: hidden;
    border-radius: 14px;
    background: rgba(15,23,42,.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 12px 34px rgba(0,0,0,.36);
}

.glxads-sticky-wrap .glxads-label {
    margin-bottom: 5px;
    font-size: 9px;
    letter-spacing: .14em;
}

.glxads-sticky-wrap .adsbygoogle {
    display: block !important;
    width: 100% !important;
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    overflow: hidden !important;
}

.glxads-close {
    position: absolute;
    top: -12px;
    right: -12px;
    z-index: 9998;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(148,163,184,.26);
    border-radius: 999px;
    background: rgba(2,6,23,.96);
    color: #f8fafc;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(0,0,0,.32);
}

@media (max-width: 1540px) {
    .glxads-rails {
        display: none !important;
    }
}

@media (max-width: 720px) {
    .glxads {
        margin-top: 24px;
        margin-bottom: 24px;
        border-radius: 16px;
    }

    .glxads .adsbygoogle {
        min-height: 120px;
    }

    .glxads-sticky-wrap {
        bottom: max(6px, env(safe-area-inset-bottom));
        width: min(100% - 22px, 430px);
        height: 70px;
    }

    .glxads-sticky-wrap .glxads-sticky {
        padding: 6px 10px 8px;
        border-radius: 14px;
    }

    .glxads-sticky-wrap .adsbygoogle {
        height: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;
    }
}


/* 4.0.4 keep mobile sticky ad compact */
@media (max-width: 768px) {
    .glxads-sticky-wrap {
        width: min(100% - 28px, 360px) !important;
        height: 58px !important;
        bottom: max(8px, env(safe-area-inset-bottom)) !important;
    }
    .glxads-sticky-wrap .glxads-sticky {
        padding: 4px 8px 6px !important;
        border-radius: 13px !important;
    }
    .glxads-sticky-wrap .glxads-label {
        margin-bottom: 2px !important;
        font-size: 8px !important;
    }
    .glxads-sticky-wrap .adsbygoogle {
        height: 34px !important;
        min-height: 34px !important;
        max-height: 34px !important;
    }
}


/* 4.0.8: keep sticky close button above any ad iframe/overlay. */
.glxads-close {
    z-index: 9998 !important;
    pointer-events: auto !important;
}
