.at-story-reel {
    --at-story-w: 108px;
    --at-story-h: 172px;
    position: fixed;
    left: max(14px, env(safe-area-inset-left, 0px));
    bottom: var(--app-fab-base, 24px);
    z-index: 99990;
    width: var(--at-story-w);
}

body.is-static-site .at-story-reel {
    bottom: 24px;
}

.at-story-reel.is-hidden {
    display: none !important;
}

.at-story-reel__dismiss {
    position: absolute;
    top: -8px;
    right: -8px;
    z-index: 2;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #111;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.at-story-reel__dismiss svg {
    width: 11px;
    height: 11px;
}

.at-story-reel__card {
    display: block;
    width: var(--at-story-w);
    height: var(--at-story-h);
    padding: 3px;
    border: 0;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(135deg, #8a3ffc 0%, #e11d74 42%, #ff4d2e 72%, #ffcc33 100%);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    position: relative;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.at-story-reel__media {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 25px;
    overflow: hidden;
    background: #111;
}

.at-story-reel__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    border-radius: 25px;
}

.at-story-fs {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    min-height: 100vh;
    z-index: 2147483000;
    background: #000;
    display: none;
    align-items: center;
    justify-content: center;
}

.at-story-fs.is-open {
    display: flex !important;
}

.at-story-fs__video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.at-story-fs__close {
    position: absolute;
    top: max(12px, env(safe-area-inset-top, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.at-story-fs__close svg {
    width: 16px;
    height: 16px;
}

body.at-story-fs-open,
html.at-story-fs-open {
    overflow: hidden !important;
    height: 100% !important;
}

body.at-story-fs-open .whatsapp-float-container,
body.at-story-fs-open .whatsapp-float-btn,
body.at-story-fs-open .flotting-incone-whatsapp,
body.at-story-fs-open .autotech-chatbot-trigger,
body.at-story-fs-open #scroll__top,
body.at-story-fs-open .at-tabbar,
body.at-story-fs-open .st-tabbar,
body.at-story-fs-open .offcanvas__stikcy--toolbar,
body.at-story-fs-open .pwa-install-banner {
    display: none !important;
}

body.at-search-lock .at-story-reel,
body.at-chatbot-lock .at-story-reel,
body.at-mobile-zoom-open .at-story-reel,
body.st-menu-open .at-story-reel,
body.mobile_menu_open .at-story-reel {
    visibility: hidden;
    pointer-events: none;
}

@media only screen and (max-width: 991px) {
    .at-story-reel {
        --at-story-w: 92px;
        --at-story-h: 148px;
        left: max(10px, env(safe-area-inset-left, 0px));
        bottom: calc(var(--app-fab-base, 24px));
    }

    body.is-static-site .at-story-reel {
        bottom: calc(var(--st-tabbar-h, 70px) + var(--st-safe-bottom, 0px) + 12px);
    }
}
