#header.loading { transition: none !important; opacity: 0 }
#header.loading * { transition: none !important }
#header_spacer.loading { transition: none !important }

#header {
    opacity: 1;
    position: fixed;
    top: 0!important;
    left: 0;
    right: 0;
    z-index: 2000;
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.3);
    height: 175px;
    background-color:white;
}
#header_top {
    color: black;
    height: 50px;
    overflow: hidden;
    font-size: 14px;
    font-weight: 400;
    background-color: #ececec;
    width: 80%;
    position: absolute;
    right: 0;
    z-index: 15;
}
#header_top > ul {
    margin: 0;
    margin: auto;
    list-style: none outside none;
    padding: 0;
    text-align: right;
}
#header_top li.link {
    display: inline-block;
    vertical-align: middle;
    position: relative;
    line-height: 50px;
    height: 50px;
    padding: 0 10px;
}
#header_top li * {
    color: black;
    text-decoration: none;
    display: inline-block;
    text-align: left;
    font-weight: 300;
    vertical-align: middle;
}
#header_top a.border {
    border-bottom: 3px solid transparent;
    transition: border 500ms;
}
#header_top a.border:hover {
    border-bottom: 3px solid #f47721;
}
#header_top li.separator {
    border-right: 1px solid #a9a9a9;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
}
#header_top_user {
    padding-left: 40px;
    padding-right: 10px;
    position: relative;
    display: inline-block;
    vertical-align: middle;
}
#header_top_user > img:nth-child(1) {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}
#header_top_user > img:nth-child(2) {
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
}
#header_top_user div {
    cursor: pointer;
}
#header_top_user sub {
    display: block;
    margin-top: -3px;
}

#header_top_cart {
    background-color: #30b0c5;
    padding-left: 20px;
    padding-right: 20px;
    display: inline-block;
    vertical-align: middle;
}
#header_top_cart > a {
    display: block;
    height: 40px;
    padding-top: 10px;
}
#header_top_cart span {
    color: white !important;
    background-color: #60c2d2;
    border-radius: 100%;
    line-height: 30px !important;
    height: 30px;
    width: 30px;
    text-align: center;
    margin-right: 5px;
}
#header_logo {
    background-color: white;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 20%;
    text-align: center;
    z-index: 200;
}
#header_logo1 {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: all 400ms;
    z-index: 2;
}
#header_logo2 {
    position: absolute;
    top: 120px;
    left: 0;
    right: 0;
    text-align: center;
    transition: all 400ms;
    z-index: 1;
}
#header_logo3 { display: none }
#header_menu_button {
    width: 50px;
    height: 50px;
    background-color: #30b0c5;
    transition: background-color 200ms;
    position: relative;
    cursor: pointer;
    display: none;
    vertical-align: middle;
}
#header_menu_button:hover {
    background-color: #60c2d2;
}
#header_menu_button > img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
#header_search {
    width: 50%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 80px;
    position: relative;
    color: white;
}

#header_search form {
  display: flex;
  align-items: center;
}

#header_search select{
  width: 20%;
  height: 60px;
  border:none;
  background-color: #f57722;
  color:white;
  font-family: inherit;
  padding:1rem;
}

#header_search input[type="text"] {
    width:80%;
    height:60px;
    font-size:20px;
    background-color:#30b0c5;
    border:0;
    padding:20px;
    box-sizing:border-box;
    color:white;
}
#header_search input[type="text"]::-webkit-input-placeholder {
    color: white;
}
#header_search_submit {
    background-color: #1c97ab;
    width: 60px;
    height: 60px;
    background-image: url(../img/search-icon.png);
    background-position: center center;
    background-repeat: no-repeat;
    float: right;
    /* display: inline-block; */
    position: absolute;
    right: 0;
    cursor:pointer;
}
#header_search form { position: relative }
.header_search_dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
}
.header_search_dropdown ul {
    list-style: none outside none;
    padding: 0;
    margin: 0;
}
.header_search_dropdown li {
    padding: 10px 20px;
}
.header_search_dropdown li a {
    text-decoration: none;
    color: black;
}
.header_search_dropdown li:hover {
    background-color: #f47721;
}
#header_top_cart_button {
    float: right;
    display: block;
    height: 80px;
    width: 50px;
    background-image: url(../img/icon-cart-b.png);
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: filter 200ms;
}

#header_spacer {
    height: 175px!important;
    transition: height 400ms;
}
#header_spacer.collapsed { height: 50px }


#basket {
    padding: 10px;
    width: 280px;
    font-size: 15px;
    white-space: normal;
}
#basket_header { font-size: 14px }
#basket > ul {
    list-style: none outside none;
    padding: 0;
    margin: 0;
    margin-bottom: 10px;
}
#basket li {
    border-top: 1px solid silver;
    margin-top: 10px;
    padding-top: 10px;
}
#basket_menu .button { display: block }
#basket_menu .button + .button { margin-top: 10px }

.basket_item_image { float: left }
.basket_item_content { position: relative }
.basket_item_content.floated { margin-left: 85px }
.basket_item_remove {
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
    width: 10px;
    height: 10px;
    background-image: url(../img/basket-remove.png);
    background-position: center center;
    background-repeat: no-repeat;
}



#header_search form {
    padding: 5px;
}
#header_search .ac_edit { display: inline-block; width: 150px }

#header_top_search {
    opacity: 0;
    background-color: #30b0c5;
    width: 62px;
    height: 50px;
    position: absolute;
    transition: opacity 400ms;
    z-index: 10;
    left: 0;
    top: 0;
    padding: 0;
    display: inline-block;
    vertical-align: middle;
}
#header_top_search > img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
}
#header_user_dropdown {
    position: absolute;
    z-index: 25;
    background-color: #30b0c5;
    display: none;
    color:white;
    width: 295px;
    padding: 15px;
    box-sizing: border-box;
    top: 50px;
    right: 114px;
    padding-bottom:40px;
    font-size:14px;
}
#header_user_dropdown .orange_button {
    margin-top:10px;
    text-transform:none;
    display: inline-block;
}
#header_user_dropdown a {
    color:white;
    text-decoration:none;
}
#header_user_dropdown h3 {
    color:white;
    text-transform:uppercase;
    font-weight:700;
    font-size:16px;
}
#header_user_dropdown hr {
    height:1px;
    width:100%;
    background-color:#229eb3;
    border:0;
}
#header_user_dropdown input[type="text"], #header_user_dropdown input[type="password"] {
    background-color:#229eb3;
    padding:20px;
    box-sizing:border-box;
    width:100%;
    border:0;
    height:35px;
    margin-bottom:10px;
    color:white;
}

/* ANIMATIONS */
#header {  }
#header.collapsed {
    height: 50px;
    background-color: #ececec;
    transition: all 400ms
}
#header.collapsed #header_logo1 {
    transform: translate(-50%,-32px) scale(0.4);
    left: 40px;
}
#header.collapsed #header_logo2 {
    left: 80px;
    right: 0;
    top: 0;
    bottom: 0;
    overflow: hidden;
}
#header.collapsed #header_logo2 > img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
}

#header.collapsed #header_search {
    display: none;
}
#header.collapsed #header_top_search {
    opacity: 1;
    cursor: pointer;
}
#header_menu .header_menu_item { transition: height 400ms }
#header_menu_right > a { transition: height 400ms }
#header .header_dropdown { transition: top 400ms }
#header.compact .header_dropdown { top: 60px }
#header.compact .header_menu_item { height: 40px }
#header.compact #header_menu_right > a { height: 60px }

#header #header_search {display:block}
#header.collapsed #header_search {
    background: white;
    width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
    position: relative;
    top: -30px;
    box-shadow:0px 0px 5px 0px rgba(0, 0, 0, 0.3);
    display:none;
}
#header .visible {display:block!important}
#header.collapsed #header_search form {
    width:50%;
    margin:0 auto;
    position:relative;
}


#header_user_message {
    padding-bottom: 10px;
    color: white;
}
#header_user_message:empty {
    display: none;
}

@media(max-width: 1200px) {
    #header_logo {
        width: 235px;
    }
    #header_top {
        left: 235px;
        width: auto;
    }
}

@media(min-width: 1000px) {
    #header:not(.collapsed) #header_search { display: block !important }
}

@media(max-width: 900px) {
    #header_top_cart {
        position: absolute;
        top: 0;
        right: 0;
        padding: 0 !important;
        transition: background-color 200ms;
    }
    #header_top_cart:hover {
        background-color: #60c2d2;
    }
    #header_top_cart a {
        width: 50px;
        height: 50px;
        padding: 0;
        position: relative;
    }
    #header_top_cart a > img {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    #header_top_cart span {
        display: none;
    }
    #header_top_search {
        position: absolute;
        top: 0;
        left: auto;
        right: 50px;
        width: 50px;
        transition: background-color 200ms;
    }
    #header_top_search:hover {
        background-color: #60c2d2;
    }
    #header_logo {
        width: 80px;
        background-color: #30b0c5 ! important;
    }
    #header_logo1, #header_logo2 { display: none }
    #header_logo3 {
        display: inline-block;
        height: 45px
    }
    #header_top {
        left: 80px;
    }
    #header_top > ul {
        margin-right: 80px;
        text-align: center;
    }
}
@media(max-width: 1000px) {
    #header_spacer { height: 50px }
}
@media(max-width: 700px) {
    #header_user_info { display: none }
    #header_top > ul {
        margin-right: 0;
        text-align: right;
    }
    #header_top_cart,
    #header_top_search {
        position: relative;
        right: auto;
    }
    #header_top_user {
        background-color: #30b0c5;
        width: 50px;
        height: 50px;
        position: relative;
        right: auto;
        padding: 0;
        margin: 0;
        cursor: pointer;
        transition: background-color 200ms;
    }
    #header_top_user:hover,
    #header_top_search:hover {
        background-color: #60c2d2;
    }
    #header_top_user > div {
        display: none;
    }
    #header_top_user > img:nth-child(1) { display: none }
    #header_top_user > img:nth-child(2) { display: block }
    #header_top li.link, #header_top li.separator { display: none }
    #header_top {
        background-color: #30b0c5 ! important;
    }
    #header_menu_button {
        display: inline-block;
    }
}


@media(max-width: 500px) {
    #header_user_dropdown {
        left: 0;
        right: 0;
        width: auto;
    }
    #header.collapsed #header_search form {
        width: 90%;
    }

}
