body,
html {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    background-color: #fff;
    color: #333;
}

.isNotExternal#html body,
.isNotExternal#html {
    height: 100%;
}

html {
    font-size: 62.5% !important; /* Please don't change, otherwise media queries will be messed up */
}

body {
    font-size: inherit !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.isNotExternal#html body {
    overflow: hidden;
}

#sbPage {
    width: 100%;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-align-content: flex-start;
    -ms-flex-line-pack: start;
    align-content: flex-start;
}

.isExternal #sbPage {
    position: fixed;
    z-index: 9999;
    top: 0;
}

.isNotExternal #sbPage {
    height: 100%;
}

#sbHead {
    -webkit-flex: 0 0 auto;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    z-index: 9992;
}

#sbContent {
    -webkit-flex: 1 1 auto;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    position: relative; /* to position inner content */
    overflow-y: scroll;
}

.noScroll #sbContent {
    overflow: hidden;
}

#sbContentOverlay {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba( 0, 0, 0, 0.4);
    z-index: 9991;
}

/* */

.inlineBlock, .inlineSet {
    display: inline-block;
    zoom: 1;
    *display: inline;
}
.inlineSet {
    height: 100%;
}
#titlesOuterCont {
    min-height: 5.7rem;
    padding-top: 1.8rem;
    z-index: 2;
}
#titleCont {
    margin: 0;
    padding: 0;
    color: #1f4f8d;
    font-size: 2.8rem;
    font-weight: bold;
    text-align: left;
    font-family: 'Open Sans', sans-serif;
}
#districtmCont {
    text-align: center;
}
.districtm > div {
    position: relative !important;
    margin: 0 auto;
}
#topBarSpacer {
    height: 5.7rem;
    margin-top: 3.2rem;
}
.isSearchMenuBeenClosed #topBarSpacer {
    margin-top: 1.2rem;
    height: 4.5rem;
}
.loggedIn #topBarSpacer {
    margin-top: 0;
}
#sbGlobalNav {
    background: #fff;
    border-bottom: .1rem solid #ccc;
}
.sbPopupIsShown #sbGlobalNav {
    z-index: 1000;
}
#sbGlobalNavDecorationTourFix {
    position: absolute;
    z-index: 9999;
    bottom: -.1rem;
    right: 0;
    left: 0;
    height: .1rem;
}
#sbGlobalNav .inlineBlock {
    vertical-align: middle;
}
#sbGlobalNavContent {
    max-width: 136rem;
    position: relative;
    margin: 0 auto;
}
/* ( 136rem + 1.7rem scroll bar width + 2 * 2rem margin-right ) / 16px base font size, doesn't use 62.5% */
@media ( max-width: 88.5625em ) {
    #sbGlobalNavContent {
        padding: 0 2rem;
    }
}

#sbGlobalNavSearchSelector,
.sbGlobalNavSearchType {
    margin: 0;
    padding: 0;
    list-style: none;
}

#sbSearchMenuInnerWrapper,
#sbSearchMenuWrapper,
#sbGlobalNavSearch {
    display: flex;
    align-items: center;
    justify-content: center;
}

#sbGlobalNavSearch {
    background-color: #fff;
}

#sbSearchMenuWrapper {
    max-width: 32.2rem;
    height: 4rem;
    position: relative;
    margin: 0;
    box-sizing: border-box;
    background: #f2f2f2;
    border: .1rem solid #ccc;
    border-radius: .4rem;
}

#sbSearchMenuInnerWrapper,
#sbGlobalNavSearch {
    width: 100%;
    height: 100%;
    border-radius: .4rem;
}

.sbGlobalNavSearchInput {
    width: 100%;
    height: 3.5rem;
    right: 3.5rem;
    margin: 0;
    padding: 0;
    color: #333;
    font-family: inherit;
    font-size: 1.6rem;
    font-weight: 300;
    line-height: 3.5rem;
    background: none;
    border: none;
    display: none;
}
.sbGlobalNavSearchInput.selectedSearchType {
    display: block;
}
.sbGlobalNavSearchInput:focus {
    outline: none;
}
#sbGlobalNavSearchSubmit.fadeIn {
    -webkit-animation: fadein .25s linear;
    animation: fadein .25s linear;
}
#sbGlobalNavSearchSubmit.fadeOut {
    -webkit-animation: fadeout .25s linear;
    animation: fadeout .25s linear;
}
#sbGlobalNav .vline {
    width: .1rem;
    height: 3.4rem;
    background: #e8e8e8;
}

/* Animation */
@-webkit-keyframes fadein {
    from {background-color: #f2f2f2;}
    to {background-color: #fff}
}
@-webkit-keyframes fadeout {
    from {background-color: #fff;}
    to {background-color: #f2f2f2;}
}
@keyframes fadein {
    from {background-color: #f2f2f2;}
    to {background-color: #fff}
}
@keyframes fadeout {
    from {background-color: #fff;}
    to {background-color: #f2f2f2;}
}
@-webkit-keyframes rotate {
  from {
    -webkit-transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
  }
}
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/*new toolbar tip styles */
#sbGlobalNav .toolbarTip {
    display: none;
    position: absolute;
    z-index: 999999;
    top: 6rem;
    right: 0;
    margin: 0;
    padding: 0;
    background: #fff;
    border: .1rem solid #b0b8bc;
    border-radius: .3rem;
    background-color: #f7f7f7;
    background: #f7f7f7;
    background: -moz-linear-gradient(top, #ffffff 0%, #e9eef0 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#e9eef0));
    background: -webkit-linear-gradient(top, #ffffff 0%,#e9eef0 100%);
    background: -o-linear-gradient(top, #ffffff 0%,#e9eef0 100%);
    background: -ms-linear-gradient(top, #ffffff 0%,#e9eef0 100%);
    background: linear-gradient(to bottom, #ffffff 0%,#e9eef0 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#e9eef0',GradientType=0);
    box-shadow: 0 .5rem .5rem rgba(0,0,0,0.21);
    zoom: 1;
    overflow: visible !important;
}
#sbGlobalNav .toolbarTip:before, #sbGlobalNav .toolbarTip:after {
    top: -.6rem;
    border-left: 1rem solid transparent;
    border-right: 1rem solid transparent;
    right: 5.7rem;
    left: auto;
}
#sbGlobalNav .toolbarTip:before {
    border-bottom: .7rem solid #fff;
}
#sbGlobalNav .toolbarTip:after {
    border-bottom: .7rem solid #b0b8bc;
    margin-top: -.1rem;
}
#sbGlobalNav .toolbarTip .toolbarTipContent {
    text-align: right;
}
#sbGlobalNav .toolbarTip .toolbarTipContent .sbBlock {
    height: 100%;
    display: inline-block;
    vertical-align: middle;
    margin: 0;
    padding: 1.5rem;
    color: #87b436;
    font-size: 1.6rem;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 .1rem 0 rgba(255,255,255,1);
    background-color: #f7f7f7;
    background: #f7f7f7;
    background: -moz-linear-gradient(top, #fefefe 0%, #f7f7f7 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fefefe), color-stop(100%,#f7f7f7));
    background: -webkit-linear-gradient(top, #fefefe 0%,#f7f7f7 100%);
    background: -o-linear-gradient(top, #fefefe 0%,#f7f7f7 100%);
    background: -ms-linear-gradient(top, #fefefe 0%,#f7f7f7 100%);
    background: linear-gradient(to bottom, #fefefe 0%,#f7f7f7 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fefefe', endColorstr='#f7f7f7',GradientType=0);
    border-left: .1rem solid #c9ced1;
    border-top-right-radius: .3rem;
    border-bottom-right-radius: .3rem;
    box-shadow: inset .2rem 0 .2rem rgba(235,235,235,1);
    zoom: 1;
    *display: inline;
    min-width: 4.8rem;
}
#sbGlobalNav .toolbarTip .toolbarTipText {
    height: 100%;
    padding: 0 1rem;
    display: inline-block;
    vertical-align: middle;
    text-align: left;
    zoom: 1;
    *display: inline;
}
#sbGlobalNav .toolbarTip .toolbarTipText h3, #sbGlobalNav .toolbarTip .toolbarTipText p {
    margin: 0;
    padding: 0;
    color: #555;
    font-size: 1.3rem;
}
/* Animation */
@-webkit-keyframes animationBlink {
    0% {
        -webkit-opacity: 1;
        opacity: 1;
    }
    100% {
        -webkit-opacity: 0;
        opacity: 0;
    }
}
@keyframes animationBlink {
    0% {
        -webkit-opacity: 1;
        -moz-opacity: 1;
        -o-opacity: 1;
        -ms-opacity: 1;
        opacity: 1;
    }
    100% {
        -webkit-opacity: 0;
        -moz-opacity: 0;
        -o-opacity: 0;
        -ms-opacity: 0;
        opacity: 0;
    }
}
.fadeInOut {
    -webkit-opacity: 1;
    -moz-opacity: 1;
    -o-opacity: 1;
    -ms-opacity: 1;
    opacity: 1;
}
.fadeInOut  {
    -webkit-animation-name: animationBlink;
    -webkit-animation-timing-function: ease-in-out;
    -webkit-animation-iteration-count: 12;
    -webkit-animation-duration: 1s;
    -webkit-animation-direction: alternate;
    animation-name: animationBlink;
    animation-timing-function: ease-in-out;
    animation-iteration-count: 12;
    animation-duration: 1s;
    animation-direction: alternate;
}
#fadeCover, .fadeCover  {
    display: none;
    background-color: rgba(0, 0, 0, 0.8);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1001;
    zoom: 1;
}

#sbGlobalNavSearchCurrentSelection {
    height: 100%;
    padding: 1.1rem 3rem 1.1rem 1.6rem;
    font-size: 1.2em;
    font-weight: 700;
    line-height: 1.4;
    box-sizing: border-box;
}

#sbGlobalNavSearchSelector {
  position: absolute;
  top: 4rem;
  padding: 1rem;
  margin-left: -.8rem;
}

ul#sbGlobalNavSearchSelector {
    list-style: none;
    width: 17rem;
    left: 1.4rem;
    padding: 0;
    border-radius: .3rem;
    border: .1rem solid #ccc;
    background-color: #fff;
    font-size: 1.2em;
    font-weight: 400;
    z-index: 4;
}
ul#sbGlobalNavSearchSelector li:not(:first-child) {
    border-top: .1rem solid #ccc;
}
ul#sbGlobalNavSearchSelector li {
    padding: 1rem;
    position: relative;    
    text-align: left;
}
ul#sbGlobalNavSearchSelector li:not(.selectedSearchType):hover {
    cursor: pointer;
    background-color: #efefef;
}
#sbGlobalNavSearchSelector::before {
    position: absolute;
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: .8rem;
    border-color: transparent transparent #ccc transparent;
    top: -1.7rem;
    left: 1.4rem;
}
#sbGlobalNavSearchSelector:after {
    position: absolute;
    content: '';
    border-style: solid;
    border-color: transparent;
    border-width: 1rem;
    margin-left: -.9rem;
    border-top-width: .285rem;
    border-bottom-color: #fff;
    top: -1rem;
    left: 2.1rem;
}
#sbGlobalNavSearchCurrentSelection:after {
    content: '';
    position: absolute;
    width: 1rem;
    height: .6rem;
    top: 1.7rem;
    margin-left: 1.1rem;
    background: url( /dist-non-modules/content/source/components/header/images/arrow-2.3e1a344ea3a1743ef1b1.svg ) center / 100% no-repeat;
}

.sbGlobalNavSearchType {
    color: #aaa;
}

.sbGlobalNavSearchType.selectedSearchType {
    color: #333;
}

ul#sbGlobalNavSearchSelector li.selectedSearchType:after {
    content: '';
    position: absolute;
    width: 1.5rem;
    height: 1.5rem;
    left: 14.5rem;
    top: 1.3rem;
    background: url( /dist-non-modules/content/components/header/top-bar/checkmark.aebca5e43067f13ccbde.svg ) center / 100% no-repeat;
}

/* AutoComplete+ */

#sbSearchContainer #suggest {
    table-layout: fixed;
    box-sizing: border-box;
    position: absolute;
    width: 100%;
    top: 3.8rem;
    left: 0;
    background-color: #fff;
    border: .1rem solid #979797;
    border-radius: .4rem;
    box-shadow: 0 .7rem 1.6rem rgba( 0, 0, 0, .5 );
    overflow: hidden;
    border-spacing: 0;
    padding: 0;
}
#sbSearchContainer #suggestions td {
    font-family: inherit;
    font-size: 1.6em;
    line-height: 1.5;
    padding: 0 1.3rem .1rem 1.3rem;
    width: 28.4rem;
    color: #333;
    font-weight: 400;
    letter-spacing: .03rem;
}
#sbSearchContainer #suggestions tr:first-child td {
    padding-top: .4rem;
}
#sbSearchContainer #suggestions tr:last-child td {
    padding-bottom: .5rem;
}
#sbSearchContainer .activeAcpSuggestion {
    background-color: #ebebeb !important;
}

#sbGlobalNavSearchSuggestCont {
    position: absolute;
    width: 100%;
    top: 3.8rem;
    left: -.1rem;
    border: .1rem solid #ccc;
    border-radius: .2rem;
    box-shadow: 0 .2rem .5rem #ccc;
}

#sbGlobalNavSearchSuggestList {
    margin: 0;
    padding: 0;
    list-style: none;
}

#sbGlobalNavSearchSuggestCont .sbShopSearchSuggestion {
    position: relative;
    color: #000;
    background-color: #fff;
    font-size: 1.2rem;
    border-top: .1rem solid #ccc;
}
#sbGlobalNavSearchSuggestCont .sbShopSearchSuggestion:first-child {
    border-top: 0;
}
#sbGlobalNavSearchSuggestCont .sbShopSearchSuggestion a {
    display: block;
    padding: 1rem;
    color: #000;
}
#sbGlobalNavSearchSuggestCont .sbShopSearchSuggestion span.suggestionSbAmount {
    position: absolute;
    right: 1.6rem;
    color: #339fba;
    font-size: 1em;
}
.suggestionSbAmount .sbNotAvailable {
    color: #000;
    font-weight: 400;
}
#sbGlobalNavSearchSuggestCont .sbShopSearchSuggestion.categoryTitle {
    background-color: #999;
    color: #fff;
    font-weight: bold;
    font-size: 1.2em;
    padding: 1rem;
    width: inherit;
}
#sbGlobalNavSearchSuggestCont .sbShopSearchSuggestion:hover {
    background-color: #f9f9f9;
}
#sbGlobalNavSearchSuggestCont .sbShopSearchSuggestion.categoryTitle:hover {
    background-color: #999999;
}
#sbGlobalNavSearchSuggestCont .sbShopSearchSuggestion.selected {
    cursor: pointer;
    background-color: #f9f9f9;
    font-weight: bold;
    pointer-events: all;
}
#sbGlobalNavSearchSuggestCont .sbShopSearchSuggestion.selected.categoryTitle {
    cursor: default;
    background-color: #999999;
    font-weight: normal;
}

/*hide top-bar and footer when accessing from mobile app*/
.isUsingSBApp #sbMainNavSectionQuickLinks,
.isUsingSBApp #sbMainNavSectionSocialize, 
.isUsingSBApp #sbGlobalNav, 
.isUsingSBApp #topBarSpacer, 
.isUsingSBApp #sbFooterWrap, 
#switchMobileDeskFoot {
    display: none !important;
}

/* Narrow, Medium, Wide - 768+px */

@media ( min-width: 48em ) { /* 768px */
    #topBarSpacer {
        margin-top: 0;
    }
}

/* Tiny - 300-767px */

@media ( max-width: 47.9375em ) { /* 767px */

    /* to make cursor a bit smaller */
    .loggedIn #topBarSpacer {
        margin-top: 3.2rem;
    }
    .afterVerified .loggedIn #topBarSpacer {
        margin-top: 3.9rem;
    }
    .isSearchMenuBeenClosed .loggedIn #topBarSpacer {
        margin-top: 0;
    }
    .isSearchMenuBeenClosed #topBarSpacer {
        margin-top: 0;
        height: 4.5rem;
    }
    .sbGlobalNavSearchInput.selectedSearchType {
        font-size: 1.6em;
        height: 100%;
        line-height: normal;
    }
}
