.header-container {
    background-color: #fff;
}

.header-top {
    padding: 30px 0;
    border-bottom: 1px solid #eee;

    .logo-container {
        float: right;
        width: 220px;
    }

    .r-top-content {
        float: left;
        width: calc(~'100% - 250px');
    }
}

.r-top-content {
    ul {
        margin: 0;
        padding: 0;
        list-style: none;
        display: flex;
        float: left;
    }

    ul > li {
        margin-bottom: 0;
        position: relative;
        top: 2px;

        &:not(:first-child) {
            padding-right: 90px;
        }

        .info-top {
            color: #111;
            line-height: 1;
            margin-bottom: 4px;
        }

        .info {
            min-height: 40px;
            padding-right: 50px;
            position: relative;
        }

        .info:before {
            content: "";
            display: block;
            width: 40px;
            height: 40px;
            background-image: url("../images/icon-image.png");
            background-repeat: no-repeat;
            position: absolute;
            top: -2px;
            right: 0;
        }

        &.time-top .info:before {
            background-position: -180px -667px;
        }

        &.phone-top .info:before {
            background-position: -247px -667px;
        }

        &.address-top .info:before {
            background-position: -318px -667px;
        }
    }
}

.header-bottom {
    border-bottom: 1px solid #eee;
    background-color: #fff;

    .bottom-content {
        position: relative;
    }
}

.sm_megamenu_wrapper_horizontal_menu .sm_megamenu_menu > li {
    float: right;
    margin-left: 35px;
    margin-right: 0;

    > a {
        display: block;
        height: 52px;
        line-height: 52px;
        text-transform: uppercase;
        font-weight: 700;
        position: relative;
        font-size: 107.69%;

        .icon_items {
            position: absolute;
            top: -15px;
            line-height: 1;
            left: 0;
        }
    }

    > div {
        border: none !important;
        .box-shadow(0 0 15px rgba(0, 0, 0, 0.1));
    }
}

.header-bottom .customer-actions {
    display: flex;
    position: absolute;
    left: 0;
    top: 0;
    background-color: #fff;
    z-index: 220;

    > div {
        border-right: 1px solid #eee;
    }

    > div:last-child {
        border-left: 1px solid #eee;
    }

    > div:hover > a:before,
    > div:hover:before {
        background-color: #f9f9f9;
    }

    .search-container {
        position: relative;

        &:before {
            display: block;
            width: 62px;
            height: 52px;
            line-height: 52px;
            text-align: center;
            color: #111;
            .icomoon(e954, 19px);
        }

        .block-search {
            display: none;
            position: absolute;
            left: 0;
            right: auto;
            top: 0;
            margin: 0;
            padding: 0;
            width: unset;

            .input-text {
                width: 270px;
                height: 52px;
                border: none;
                padding-right: 15px;
                border-right: 1px solid #eee;
                .border-radius(0);
            }

            .action.search {
                width: 62px;
                height: 52px;
                padding: 0;
                margin: 0;
                line-height: 52px;
                text-align: center;
                position: absolute;
                left: 0;
                right: auto;
                color: #111;
                opacity: 1;

                &:before,
                span {
                    display: none;
                }

                &:after {
                    .icomoon(e954, 19px);
                }
            }
        }

        .block-content {
            position: relative;
        }

        .block-search .control {
            display: flex;
            margin: 0;
            padding: 0;
        }

        .nested {
            display: none !important;
        }

        &:hover .block-search {
            display: block;
        }

        .block-search.search-pro {
            .searchbox-cat {
                width: 150px;
                height: 52px;
                border: none;
                border-right: 1px solid #eee;
                .border-radius(0);
            }
        }
    }

    .customer-links {
        position: relative;

        > a {
            &:before {
                display: block;
                width: 62px;
                height: 52px;
                line-height: 52px;
                text-align: center;
                color: #111;
                .icomoon(e95e, 19px);
            }

            span {
                display: none;
            }
        }

        > .header.links {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            right: auto;
            background-color: #fff;
            padding: 10px;
            list-style: none;
            min-width: 150px;
            text-align: center;
            z-index: 500;
            .box-shadow(0 0 15px rgba(0, 0, 0, 0.1));

            li {
                margin: 0;
            }

            li a {
                display: block;
                padding: 7px 10px !important;
            }

            li a:hover {
                background-color: #f5f5f5;
            }
        }

        &:hover > .header.links {
            display: block;
        }
    }

    .setting-block {
        position: relative;

        &:before {
            display: block;
            width: 62px;
            height: 52px;
            line-height: 52px;
            text-align: center;
            color: #111;
            .icomoon(e956, 19px);
        }

        .header-dropdown {
            display: none;
            position: absolute;
            background: #fff;
            padding: 20px;
            z-index: 200;
            top: 100%;
            left: 0;
            min-width: 200px;
            .box-shadow(0 0 15px rgba(0, 0, 0, 0.1));
        }

        &:hover .header-dropdown {
            display: block;
        }
    }
}

.customer-links .header.links .customer-welcome .customer-menu {
    display: block;
    position: static;
    margin: 0;
    padding: 0;
    .box-shadow-none();

    .customer-menu .header.links li a {
        padding: 7px 10px !important;
    }
}

.customer-links .greet.welcome {
    display: none;
}

.header.links .customer-welcome .customer-menu .header.links li.authorization-link a {
    padding: 0 10px !important;
}

.search-active {
    .header-bottom .customer-actions .search-container .block-search {
        display: block;
    }
}

.header-container .setting-block {
    .switcher {
        display: block;

        .list-item {
            .ul-nostyle();
        }

        &:not(:last-child) {
            margin-bottom: 10px;
        }
    }

    .action-switcher {
        display: none;
    }

    .switcher-label {
        display: block;
        margin-bottom: 10px;
        text-transform: uppercase;
        color: #111;
    }

    .switcher-language {
        .list-item li {
            display: inline-block;
            margin-left: 5px;
            vertical-align: top;
        }

        .list-item li a {
            display: block;
        }

        .list-item li a span {
            overflow: hidden;
            text-indent: -9999px;
            width: 30px;
            display: block;
            background-size: 24px auto;
            height: 25px;
            border: 1px solid #e5e5e5;
            background-position: center center;
        }

        .list-item li a span:hover {
            border-color: #222;
        }
    }
}

.header-container .minicart-wrapper {
    margin: 0;
    padding: 0;
    float: none;

    .mage-dropdown-dialog {
        display: none !important;
        left: 0;
        right: auto;
    }

    &:hover .mage-dropdown-dialog {
        display: block !important;
    }

    &:hover .action.showcart:after {
        background-color: #f9f9f9;
    }

    .action.showcart {
        width: 62px;
        height: 52px;
        text-align: center;
        position: relative;

        .text-min-cart,
        .counter-label,
        .price-minicart,
        .text {
            display: none !important;
        }
    }

    .action.showcart:before {
        display: none !important;
    }

    .action.showcart:after {
        .icomoon(e958, 19px);
        color: #111;
        display: block;
        line-height: 52px;
    }

    .action.showcart .counter.qty {
        display: inline-block !important;
        width: unset;
        height: 21px;
        line-height: 21px;
        min-width: 21px;
        padding: 0 2px;
        background-color: #ff4466;
        color: #fff;
        position: absolute;
        top: 3px;
        right: 3px;
        margin: 0;
        font-size: 85.714%;
        .border-radius(11px);
    }
}

.header-container .bottom-note {
    text-align: center;
    padding: 10px 0;
}


.horizontal-block .navigation {
    background: none;
    font-weight: unset;
    z-index: 200;

    .ui-icon {
        display: none !important;
    }

    > ul {
        padding-right: 0;
    }

    > ul > li {
        margin-left: 35px;
        margin-right: 0;
    }

    > ul > li.parent > a:after {
        display: none;
    }

    > ul > li > a {
        font-weight: 700;
        height: 52px !important;
        line-height: 52px !important;
        padding: 0 !important;
        border: none !important;
        text-transform: uppercase;
        font-size: 107.69%;
        color: #111 !important;

        &:before {
            display: none;
        }
    }

    > ul > li.has-active > a,
    > ul > li.active > a,
    > ul > li:hover > a {
        z-index: 10;
    }

    .level0 .submenu {
        text-align: right;
        border: none !important;
        font-weight: 400;
        .box-shadow(0 0 10px rgba(0, 0, 0, 0.1));
    }

    .level0 .submenu a {
        padding: 10px 20px;
        border: none !important;
    }

    .level0 .submenu .parent > a:after {
        float: left;
        .icomoon(e930, 14px);
    }

    .level0 .submenu li:hover,
    .level0 .submenu li:hover > a {
        background-color: @submenu-desktop-item__hover__background;
    }
}
