/* Temporarily make all page elements kind of responsive - START */
body {
    min-width: 30rem !important;
}
#confirmEmailBarOuter,
#sbGlobalNav,
#middle,
#sbCarouselContainer,
#gamebannerWrap,
#sbFooterWrap,
#sbFooterContainer,
#sbFooter,
#sbBoilerplateContainer {
    min-width: 20rem !important;
}
/* Temporarily make all page elements kind of responsive - END */

.isEmailNotVerified #topBarSpacer {
    height: 9.2rem;
}

/* JSTB only */
.isDomContentLoaded.isExternal #sbGlobalNav {
    display: block;
}
.isDomContentLoaded.isExternal #wrapper {
    overflow-x: hidden; /* otherwise fixed top bar doesn't work (correctly) */
}
/* JSTB only - END */

#sbGlobalNavContent {
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    padding: 0;
    background-color: #fff;
}

/* Log in / Sign up */

#sbLogInSignUpContainer {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: flex-end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    -webkit-flex-grow: 1;
    flex-grow: 1;
    margin-right: 1rem;
}
#sbLogInSignUpContainer:hover {
    background-color: transparent;
    background-color: initial;
}
.sbLogInSignUpCta {
    display: block;
    box-sizing: border-box;
    font-size: 1.4em;
    line-height: 2.214;
    margin-left: .5rem;
    padding: 0;
    width: 10rem;
    height: 3.1rem;
    border-width: .1rem !important;
    border-style: solid !important;
    border-radius: .4rem;
    font-weight: 700;
    text-align: center;
}

.sbLogInSignUpCta:first-child {
    margin-left: 0;
}

.isExternal #sbSignUpCta {
    color: #fff;
}

/* Footer */

.noScroll #sbFooterWrap {
    position: static;
}

/* Tiny & Narrow - 300-1023 */

@media ( max-width: 63.9375em ) { /* 1023px */

    /* Tiny & Narrow - Logo, Main Nav Toggle, Search Toggle */

    #sbSearchToggleLoggedOut::before {
        content: '';
        display: inline-block;
        width: 2.1rem;
        height: 1.4rem;
        background: url(/dist-non-modules/content/shared/images/main-sprite.min.89aa814afdb2c0563f7a.svg) -10rem -57.2rem / 32.2rem no-repeat;
    }
    #sbSearchToggleCopy2 {
        display: none;
        box-sizing: content-box;
    }
}

/* Medium & Wide - 1024+ */

@media ( min-width: 64em ) { /* 1024px */

    /* Medium & Wide - Logo, Main Nav Toggle */

    #sbLogoContainer:hover {
        background-color: #fff;
    }
}

/* Tiny - 300-767px */

@media ( max-width: 47.9375em ) { /* 767px */

    /* Tiny - Header */

    .isSearchMenuActive #sbSearchToggleCopy2 {
        display: block;
    }
    /* Temporarily hide all old top bar elements + a few others */
    #disabledSB,
    #slider-outer {
        display: none;
    }
    .isEmailNotVerified #topBarSpacer {
        margin-top: 7rem;
    }
    .isEmailNotVerified.isSearchMenuBeenClosed #topBarSpacer {
        margin-top: 2.5rem;
    }
    #sbSearchToggleContainer,
    .isSearchMenuBeenClosed.isSearchMenuActive #sbSearchToggleContainer,
    .isSearchMenuBeenClosed #sbSearchToggleContainer:hover {
        background-color: #eaeaea;
    }
    .isSearchMenuBeenClosed #sbSearchToggleContainer,
    .isSearchMenuBeenClosed.isSearchMenuNotActive #sbSearchToggleContainer {
        background-color: #fff;
    }

    /* Tiny - Logo */

    .isSearchMenuActive #sbLogoContainer {
        z-index: 9997;
    }

    /* Tiny - Search Toggle */

    #sbSearchToggleLoggedOut {
        font-family: inherit;
        font-size: 1em;
        padding: 0 1.4rem;
        height: 4.4rem;
        z-index: 9997;
        box-sizing: border-box;
        right: 0;
        width: auto;
        position: static;
    }
    #sbSearchToggleLoggedOut::before {
        width: 1.7rem;
        height: 1.7rem;
        background-position: 0 -93.6rem;
        background-size: 36.225rem;
    }
    #sbSearchToggleCopy2 {
        display: block;
        font-size: 1.6em;
        font-weight: 300;
        width: 1.6rem;
        height: 1.6rem;
        position: absolute;
        top: 0 !important;
        right: 0;
        padding: 1.4rem 1.2rem;
        z-index: 110;
    }
    #sbSearchToggleCopy2:before {
        content: '';
        display: block;
        width: 1.6rem;
        height: 1.6rem;
        background: url(/dist-non-modules/content/shared/images/main-sprite.min.89aa814afdb2c0563f7a.svg) -12.9rem -63.2rem / 28rem auto no-repeat;
    }
    .isSearchMenuNotActive #sbSearchToggleCopy2,
    .isSearchMenuBeenClosed:not( .isSearchMenuActive ) #sbSearchToggleCopy2 {
        display: none;
    }
    .isEmailNotVerified #sbSearchToggleCopy2 {
        top: 8.1rem;
    }
    .isEmailNotVerified.isMenuActive #sbSearchToggleCopy2 {
        top: 8.1rem;
    }

    /* Tiny - Search */

    .isSearchMenuBeenClosed #sbMainNavSwagCodeAndSearchWrapper,
    .sbPopupIsShown #sbMainNavSwagCodeAndSearchWrapper {
        display: none;
    }
    .isSearchMenuActive #sbMainNavSwagCodeAndSearchWrapper {
        display: flex;
    }
    .isSearchMenuActive #sbGlobalNav {
        border: none;
    }
    .isSearchMenuActive #sbSearchMenu {
        display: flex!important;
    }
    #sbSearchMenu {
        width: 100%;
    }
    .isMainMenuActive #sbMainNavSwagCodeAndSearchWrapper {
        display: none;
    }
    #sbSearchMenuInnerWrapper {
        background-color: transparent;
    }
    #sbSearchToggleContainer {
        position: relative;
        z-index: 101;
    }
    #sbSearchToggleContainer:after,
    .isResponsive.isSearchMenuActive #sbSearchToggleContainer:after,
    .isSearchMenuBeenClosed.isMenuActive #sbSearchToggleContainer:after {
        border-color: transparent;
        border-bottom-color: #fff;
        border-width: .8rem;
        margin-left: -.9rem;
        -webkit-transform: translateY(-100%);
        -ms-transform: translateY(-100%);
        transform: translateY(-100%);
    }
    .sbGlobalNavLoggedOut #sbMainNavSwagCodeAndSearchWrapper {
        display: none;
    }

    /* Tiny - Search - Web suggestions */

    #sbSearchContainer #suggest,
    #sbGlobalNavSearchSuggestCont {
        width: 100% !important;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
    #sbSearchContainer #suggest {
        display: table;
        border-spacing: 0;
        padding: 0;
    }
    #sbSearchContainer #suggest td {
        position: relative;
        font-size: 1.7em;
        padding: .9rem 1.6rem 1rem !important;
    }
    #sbSearchContainer #suggest td:hover {
        background-color: transparent !important;
    }
    #sbSearchContainer #suggest td:after {
        content: '';
        position: absolute;
        top: 0;
        right: 1.6rem;
        bottom: 0;
        margin: auto;
        width: .8rem;
        height: 1.3rem;
        background: url(/dist-non-modules/content/shared/images/main-sprite.min.89aa814afdb2c0563f7a.svg) -6.4rem -20.4rem / 32.2rem no-repeat;
    }
    #sbSearchContainer #suggest tfoot {
        display: none;
    }

    /* Tiny - Search - Shop suggestions */

    #sbGlobalNavSearchSuggestCont .sbShopSearchSuggestion {
        font-size: 1.6rem;
        line-height: 1;
        border-top: 0;
        border-bottom: .1rem solid #ccc;
        color: #000;
    }
    #sbGlobalNavSearchSuggestCont .sbShopSearchSuggestion.categoryTitle {
        font-size: 1.4em;
        margin: 0;
        padding: .9rem 0 .8rem 1.5rem;
        background-color: #f1f1f1;
        font-weight: 700;
        text-transform: uppercase;
        border-bottom: .1rem solid #ddd;
        color: #999;
    }
    #sbGlobalNavSearchSuggestCont .sbShopSearchSuggestionCta {
        display: flex !important;
        justify-content: space-between;
        align-items: flex-start;
        padding: 1.5rem 0 1.3rem 2rem !important;
    }
    #sbGlobalNavSearchSuggestCont .suggestionName {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    #sbGlobalNavSearchSuggestCont .suggestionSbAmount {
        position: relative !important;
        font-size: 1.6rem !important;
        right: 0 !important;
        padding-right: 1.6rem;
        white-space: nowrap;
    }
    .isResponsive .sbMenu,
    .isResponsive #sbSearchContainer .sbMenuWrapper {
        z-index: 100 !important;
    }
    .isMenuActive .sbMenuWrapper:not( #sbSearchMenuWrapper ) {
        display: block;
        position: fixed !important;
        top: 0 !important;
        right: 0;
        bottom: 0;
        left: 0;
        margin-top: 5.5rem;
        overflow: auto !important;
        background-color: rgba( 0, 0, 0, .71 ) !important;
        z-index: 9996 !important;
        /* Fixes blurry text and some scrolling issues */
        -webkit-transform: translateZ( 0 );
        -ms-transform: translateZ( 0 );
        transform: translateZ( 0 );
        overflow-y: scroll;
    }
    .isUsingSBApp.isMenuActive .sbMenuWrapper:not( #sbSearchMenuWrapper ) {
        position: static !important;
    }
    .sbMenuInnerWrapper {
        background-color: #fff;
        max-height: 100%;
        overflow-y: scroll;
    }

    /* Tiny - Blog */

    .isExternal .blog #header {
        padding-top: 9rem;
    }
    .isSearchMenuBeenClosed.isExternal .blog #header {
        padding-top: 4.5rem;
    }
    /* Prevent a bug which makes top bar scrollable despite position: fixed */
    .isExternal .blog #footer-bg {
        max-width: 100vw;
        overflow-x: hidden;
    }

    @media ( max-width: 21.25em ) { /* 340px */

        /* fix some issues when not logged */

        .sbLogInSignUpCta {
            width: 9rem;
        }
    }

    @media ( max-width: 20.75em ) { /* 332px */

        /* fix some issues when not logged */

        #sbLogInSignUpContainer {
            margin-right: .5rem;
        }
    }
}

/* Narrow - 768-1023 */

@media ( min-width: 48em ) and ( max-width: 63.9375em ) { /* 768px & 1023px */

    /* Narrow - Logo */

    #sbLogoContainer {
        height: 100%;
    }
}
