.header-top {
    position: relative;
}

@media (min-width: 992px) {
    .box-header {
        display:-webkit-box;
        display: -moz-box;
        display: box;
        display: -webkit-flex;
        display: -moz-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -moz-box-align: center;
        box-align: center;
        -webkit-align-items: center;
        -moz-align-items: center;
        -ms-align-items: center;
        -o-align-items: center;
        align-items: center;
        -ms-flex-align: center;
    }
}

@media (max-width: 991px) {
    .box-header {
        margin:0 0 0 0;
    }

    .rtl .box-header {
        margin: 0 0 0 0;
    }
}

.box-header > [class*="col-"] {
    display: -webkit-box;
    display: -moz-box;
    display: box;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -moz-box-align: center;
    box-align: center;
    -webkit-align-items: center;
    -moz-align-items: center;
    -ms-align-items: center;
    -o-align-items: center;
    align-items: center;
    -ms-flex-align: center;
}

.box-header .group-left-header {
    -webkit-box-pack: start;
    -moz-box-pack: start;
    box-pack: start;
    -webkit-justify-content: flex-start;
    -moz-justify-content: flex-start;
    -ms-justify-content: flex-start;
    -o-justify-content: flex-start;
    justify-content: flex-start;
    -ms-flex-pack: start;
}

@media (min-width: 992px) {
    .box-header .group-left-header {
        padding-left:30px;
    }

    .rtl .box-header .group-left-header {
        padding-right: 30px;
        padding-left: inherit;
    }
}

@media (max-width: 991px) {
    .box-header .group-left-header {
        -webkit-box-pack:center;
        -moz-box-pack: center;
        box-pack: center;
        -webkit-justify-content: center;
        -moz-justify-content: center;
        -ms-justify-content: center;
        -o-justify-content: center;
        justify-content: center;
        -ms-flex-pack: center;
    }
}

.box-header .group-left-header .logo {
    padding: 30px 0;
}

.box-header .group-center-header {
    min-height: auto;
    -webkit-box-pack: center;
    -moz-box-pack: center;
    box-pack: center;
    -webkit-justify-content: center;
    -moz-justify-content: center;
    -ms-justify-content: center;
    -o-justify-content: center;
    justify-content: center;
    -ms-flex-pack: center;
}

@media (max-width: 991px) {
    .box-header .group-center-header {
        position:static;
        -webkit-box-pack: start;
        -moz-box-pack: start;
        box-pack: start;
        -webkit-justify-content: flex-start;
        -moz-justify-content: flex-start;
        -ms-justify-content: flex-start;
        -o-justify-content: flex-start;
        justify-content: flex-start;
        -ms-flex-pack: start;
    }
}

.box-header .group-right-header {
    position: relative;
    -webkit-box-pack: end;
    -moz-box-pack: end;
    box-pack: end;
    -webkit-justify-content: flex-end;
    -moz-justify-content: flex-end;
    -ms-justify-content: flex-end;
    -o-justify-content: flex-end;
    justify-content: flex-end;
    -ms-flex-pack: end;
}

@media (min-width: 992px) {
    .box-header .group-right-header {
        padding-right:30px;
    }

    .rtl .box-header .group-right-header {
        padding-left: 30px;
        padding-right: inherit;
    }
}

@media (min-width: 992px) {
    .box-header .group-vertical-menu {
        position:absolute;
        left: 0;
        right: 0;
        top: 100%;
        padding: 0;
    }
}

@media (max-width: 991px) {
    .box-header .group-vertical-menu .ApMegamenu {
        width:100%;
    }
}

.vertical-top-menu {
    width: 250px;
    z-index: 99;
    -webkit-transition: all 0.4s ease;
    -o-transition: all 0.4s ease;
    transition: all 0.4s ease;
}

@media (max-width: 991px) {
    .vertical-top-menu {
        width:100%;
    }
}

.vertical-top-menu .title_block {
    margin: 0;
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 500;
    padding: 10px 20px 10px 20px;
}

.rtl .vertical-top-menu .title_block {
    padding: 10px 20px 10px 20px;
}

@media (min-width: 992px) {
    #index .vertical-top-menu {
        position:absolute;
        left: 0;
        top: 0;
    }

    .rtl #index .vertical-top-menu {
        right: 0;
        left: auto;
    }
}

#header .search-widget {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    #header .search-widget {
        position:static;
    }
}

#header .search-widget .popup-content {
    width: 280px;
    max-width: 100%;
}

@media (min-width: 1200px) {
    #header .search-widget .popup-content {
        margin-right:15px;
    }

    .rtl #header .search-widget .popup-content {
        margin-left: 15px;
        margin-right: inherit;
    }
}

@media (max-width: 1199px) {
    #header .search-widget .popup-content {
        position:absolute;
        top: 100%;
        display: none;
        right: 15px;
        left: auto;
        opacity: 0;
        filter: alpha(opacity=0);
    }

    .rtl #header .search-widget .popup-content {
        right: auto;
        left: 15px;
    }
}

@media (max-width: 767px) {
    #header .search-widget .popup-content {
        width:280px;
    }
}

@media (max-width: 1199px) {
    #header .search-widget a.popup-title {
        display:block;
    }
}

@media (max-width: 1199px) {
    #header .search-widget.open .popup-content {
        display:block;
        opacity: 1;
        filter: alpha(opacity=100);
    }
}

@media (min-width: 992px) {
    .active-vertical-menu .icon-action-vertical-menu {
        -webkit-transform:translateX(100%);
        -moz-transform: translateX(100%);
        -ms-transform: translateX(100%);
        -o-transform: translateX(100%);
        transform: translateX(100%);
    }

    .active-vertical-menu .vertical-top-menu {
        -webkit-transform: translateX(-100%);
        -moz-transform: translateX(-100%);
        -ms-transform: translateX(-100%);
        -o-transform: translateX(-100%);
        transform: translateX(-100%);
    }

    .icon-action-vertical-menu {
        position: fixed;
        left: -50px;
        top: 50%;
        margin-top: -25px;
        width: 50px;
        height: 50px;
        line-height: 50px;
        z-index: 99;
        text-align: center;
        background: #19c868;
        font-style: normal;
        cursor: pointer;
        border-radius: 3px;
        -webkit-transition: all 0.5s ease;
        -o-transition: all 0.5s ease;
        transition: all 0.5s ease;
    }

    .rtl .icon-action-vertical-menu {
        right: -50px;
        left: auto;
    }

    .icon-action-vertical-menu::before {
        content: "\f0c9";
        display: inline-block;
        font-size: 20px;
        color: #FFFFFF;
        font-family: "FontAwesome";
    }

    .rtl .active-vertical-menu .icon-action-vertical-menu {
        -webkit-transform: translateX(-100%);
        -moz-transform: translateX(-100%);
        -ms-transform: translateX(-100%);
        -o-transform: translateX(-100%);
        transform: translateX(-100%);
    }

    .rtl .active-vertical-menu .vertical-top-menu {
        -webkit-transform: translateX(100%);
        -moz-transform: translateX(100%);
        -ms-transform: translateX(100%);
        -o-transform: translateX(100%);
        transform: translateX(100%);
    }
}
