/* Site-side overrides for the platform stylesheet, which ships with the editor's runtime in
   charge of a few states. Here the states are set by site.js instead. */

/* the sticky header the platform keeps hidden until its script reveals it */
.theme .fixed-header-wrapper {
    display: block;
    transition: transform .3s ease, opacity .3s ease;
}

.theme .fixed-header-wrapper.visible {
    top: 0 !important;
    transform: none;
    opacity: 1;
    z-index: 999;
}

/* the hero slider's slides are loaded by the platform at runtime and are not part of this
   copy; the widget keeps its opener background, so its empty arrows go */
.tmdp-nav-arrow {
    display: none;
}

/* the mobile drawer only exists below the tablet breakpoint */
.theme .site-mobile-nav {
    display: none;
}

/* the mobile header: the platform's script assembles it at runtime, so the shell ships empty
   and hidden; site.js fills the drawer from the desktop nav and these rules show the parts */
@media (max-width: 768px) {
    .theme .mobile-header-shell {
        display: flow-root;
        position: relative;
        z-index: 100;
        background: #fff;
        box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
    }

    .theme .mobile-menu {
        display: flex;
        float: none;
        width: 100%;
        box-sizing: border-box;
        align-items: center;
        justify-content: space-between;
        min-height: 60px;
        padding: 10px 20px;
    }

    .theme .mobile-menu .mobile-burger {
        display: block !important;
        position: relative;
        width: 26px;
        margin: 0;
        padding: 0;
        list-style: none;
        cursor: pointer;
    }

    .theme .mobile-menu .mobile-burger li {
        display: block;
        width: 26px;
        height: 3px;
        margin: 5px 0;
        border-radius: 2px;
        background: #333;
        transition: transform .2s ease, opacity .2s ease;
    }

    .theme .menu-open .mobile-burger li.before {
        transform: translateY(8px) rotate(45deg);
    }

    .theme .menu-open .mobile-burger li.middle {
        opacity: 0;
    }

    .theme .menu-open .mobile-burger li.after {
        transform: translateY(-8px) rotate(-45deg);
    }

    .theme .mobile-menu-logo {
        flex: 1;
        text-align: center;
    }

    .theme .mobile-menu-logo .header-widget {
        display: block !important;
    }

    .theme .mobile-menu-logo .header-widget img {
        max-height: 40px;
    }

    .theme .mobile-menu .shopping-cart-mobile {
        display: table !important;
        position: static;
    }

    .theme .site-mobile-nav {
        display: none;
        margin: 0;
        padding: 0;
        list-style: none;
        border-top: 1px solid #eee;
    }

    .theme .menu-open .site-mobile-nav {
        display: block;
    }

    .theme .site-mobile-nav li {
        display: block;
    }

    .theme .site-mobile-nav li a {
        display: block;
        height: auto;
        min-height: 0;
        padding: 14px 20px;
        border-bottom: 1px solid #eee;
        color: #333;
        font-size: 14px;
        line-height: 1.4;
        text-transform: uppercase;
        text-decoration: none;
    }
}
