.header.content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header.content .logo {
    flex: 0 0 auto;
}

.header.content .amsearch-wrapper-block {
    flex: 1 1 auto;
    max-width: 650px;
    margin: 0 20px;
}

.amsearch-input-wrapper {
    width: 100%;
}

.amsearch-result-section {
    z-index: 1000;
}

.header.links {
    display: flex;
    align-items: center;
    gap: 16px;
    white-space: nowrap;
}

.header.links > li {
    margin: 0;
}

.header.links .authorization-link,
.header.links .greet,
.header.links li:last-child {
    display: none;
}

.header.links a,
.minicart-wrapper .action.showcart {
    font-size: 0;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px;
}

.header.links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.header.links > li {
    list-style: none;
}

.header.links li:first-child a {
    background-image: url('../images/icons/account-icon.png');
}

.header.links .wishlist a {
    background-image: url('../images/icons/wishlist-icon.png');
}

.header.links .compare a {
    background-image: url('../images/icons/compare-icon.png');
}

.minicart-wrapper .counter.qty {
    position: absolute;
    top: -6px;
    right: -6px;
}

.switcher-language .switcher-trigger {
    font-size: 0; /* hide text */
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: url('../images/icons/language-icon.png') no-repeat center;
    background-size: 20px;
    cursor: pointer;
}

.switcher-language .switcher-label,
.switcher-language strong span {
    display: none;
}

.switcher-language .switcher-dropdown {
    list-style: none;
    padding: 0;
    margin: 0;
}

.switcher-language .switcher-dropdown > li {
    list-style: none;
}

.header.content .switcher-language {
    order: 5; /* AFTER minicart */
}

@media (max-width: 1024px) {
    .header.content {
        flex-wrap: wrap;
    }

    .amsearch-wrapper-block {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin: 10px 0 0;
    }
}
