/* Sales Testing Plugin - Frontend Styles */
/* These are supplementary — most styling is inline in templates via Tailwind */

*, *::before, *::after {
    box-sizing: border-box;
}

body.st-page {
    margin: 0;
    padding: 0;
}

html.st-scroll-locked,
body.st-sidebar-open {
    overscroll-behavior: none;
}

/* Mobile sidebar behavior for plugin + themed pages */
@media (max-width: 768px) {
    body.st-sidebar-open [data-slot="sidebar-gap"] {
        display: none !important;
    }

    body.st-sidebar-open [data-slot="sidebar-container"],
    body.st-sidebar-open #td-sidebar-fixed,
    body.st-sidebar-open #st-sidebar-fixed {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        right: auto !important;
        height: 100dvh !important;
        width: min(86vw, 18rem) !important;
        z-index: 70 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    body.st-sidebar-open [data-slot="sidebar"],
    body.st-sidebar-open .group.peer {
        display: block !important;
    }

    .st-sidebar {
        position: fixed;
        left: -18rem;
        top: 0;
        bottom: 0;
        z-index: 70;
        width: min(86vw, 18rem);
        min-width: 0;
        transition: left 0.2s ease;
        box-shadow: 0 24px 40px rgba(0, 0, 0, 0.35);
    }

    .st-sidebar.st-mobile-open,
    body.st-sidebar-open .st-sidebar {
        left: 0;
    }

    body.st-sidebar-open {
        overflow: hidden;
    }
}
