/* Stick the outer container: #header alone is bounded by .page-header. */
@media screen {
    .page-wrapper > .page-header {
        position: sticky;
        top: 0;
        z-index: 30;
    }
}

.ip-header__topbar {
    height: 22px;
    overflow: hidden;
    border-bottom: 1px solid #d7dde1;
    background: #e8e8e8;
    color: var(--ip-primary);
    font-size: 13px;
    line-height: 1;
}

.ip-header__topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 22px;
}

.ip-header__topbar-left,
.ip-header__topbar-right {
    display: flex;
    align-items: center;
    min-width: 0;
}

.ip-header__topbar-right {
    justify-content: flex-end;
    overflow: hidden;
    white-space: nowrap;
}

.ip-header__topbar .header-cms-content,
.ip-header__topbar .header-cms-content .tel {
    margin: 0;
    padding: 0;
}

.ip-header__topbar .header-cms-content .tel {
    color: var(--ip-primary);
    font-size: 13px;
    line-height: 22px;
    white-space: nowrap;
}

.ip-header__topbar .header-cms-content a {
    color: var(--ip-primary);
    text-decoration: none;
}

.ip-header__topbar .header-cms-content a:hover,
.ip-header__topbar .header-cms-content a:focus {
    color: var(--ip-primary);
    text-decoration: underline;
}

.ip-header__topbar .header-cms-content .telI {
    display: inline-block;
    width: auto;
    max-height: 14px;
    margin-right: 3px;
    vertical-align: -2px;
}
.ip-header__main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: nowrap;
}

.ip-header__logo {
    flex: 0 0 auto;
    min-width: 0;
}

.ip-header__logo img {
    display: block;
    height: auto;
}

.ip-header__search {
    flex: 1 1 520px;
    max-width: 720px;
    min-width: 280px;
    margin: 0 auto;
}

.ip-header__actions {
    flex: 0 0 auto;
    white-space: nowrap;
}

.ip-header__desktop-account {
    display: flex;
    align-items: center;
}

.ip-header__mobile-account {
    display: none;
}

.ip-header__switchers {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ip-header__navigation {
    border-top: 1px solid #f3f4f6;
}

.ip-header__navigation .navigation,
.ip-header__navigation .ninjamenus {
    width: 100%;
}

.ip-header-search {
    position: relative;
    width: 100%;
}

.ip-header-search__form {
    display: flex;
    align-items: stretch;
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.ip-header-search__form:focus-within {
    border-color: var(--ip-primary);
    box-shadow: 0 0 0 3px rgb(var(--ip-primary-rgb) / .12);
}

.ip-header-search__input {
    flex: 1 1 auto;
    min-width: 0;
    height: 36px;
    padding: 0 16px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #111827;
}

.ip-header-search__input:focus {
    box-shadow: none;
}

.ip-header-search__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    border: 0;
    background: transparent;
    color: var(--ip-primary);
    cursor: pointer;
}

.ip-header-search__button:hover,
.ip-header-search__button:focus {
    background: #f3f4f6;
}

.ip-header-search__suggestions {
    position: absolute;
    top: calc(100% + 7px);
    left: 0;
    right: 0;
    z-index: 1000;
    overflow: hidden;
    border-top: 2px solid var(--ip-primary);
    border-radius: 3px;
    background: #fff;
    text-align: left;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}

.ip-header-search__loading,
.ip-header-search__empty {
    padding: 10px;
    background: #efefef;
    color: #777;
    font-size: 13px;
    text-align: center;
}

.ip-header-search__results {
    max-height: 70vh;
    overflow-y: auto;
}

.ip-header-search__index-title {
    margin: 0 10px;
    padding: 10px 0 9px;
    border-bottom: 1px solid #efefef;
    color: #777;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

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

.ip-header-search__product {
    margin: 0;
    border-bottom: 1px solid #f6f6f6;
}

.ip-header-search__product:last-child {
    border-bottom: 0;
}

.ip-header-search__product-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 92px;
    padding: 10px;
    color: #333;
    text-decoration: none;
}

.ip-header-search__product-link:hover,
.ip-header-search__product-link:focus {
    background: #f8f8f8;
    text-decoration: none;
}

.ip-header-search__product-image {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
}

.ip-header-search__product-image img {
    display: block;
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.ip-header-search__product-meta {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.ip-header-search__product-name {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
    line-height: 1.3;
}

.ip-header-search__product-link:hover .ip-header-search__product-name,
.ip-header-search__product-link:focus .ip-header-search__product-name {
    text-decoration: underline;
}

.ip-header-search__product-sku {
    display: block;
    overflow: hidden;
    color: #777;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ip-header-search__product-price {
    flex: 0 0 auto;
    margin-left: 8px;
    color: #333;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.ip-header-search__show-all {
    display: block;
    padding: 10px 0;
    border-top: 1px solid #efefef;
    color: #777;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.ip-header-search__show-all:hover,
.ip-header-search__show-all:focus {
    background: #f8f8f8;
    color: #333;
    text-decoration: none;
}

.ip-header-switcher {
    position: relative;
}

.ip-header-switcher__button {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    max-width: 132px;
    padding: 0 24px 0 10px;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    background: #fff;
    color: #111827;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    position: relative;
}

.ip-header-switcher__button::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: translateY(-65%) rotate(45deg);
}

.ip-header-switcher__button:hover,
.ip-header-switcher__button:focus {
    border-color: #9ca3af;
    background: #f9fafb;
}

.ip-header-switcher__label {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ip-header-switcher__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 50;
    min-width: 180px;
    padding: 6px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 16px 32px rgba(15, 23, 42, .16);
}

.ip-header-switcher__item {
    display: block;
    width: 100%;
    padding: 9px 12px;
    border-radius: 8px;
    color: #111827;
    text-align: left;
    white-space: nowrap;
}

.ip-header-switcher__item:hover,
.ip-header-switcher__item:focus {
    background: #f3f4f6;
}

@media (min-width: 768px) {
    .ip-header__mobile-search {
        display: none !important;
    }
}

@media (max-width: 1023px) {
    .ip-header__desktop-account {
        display: none;
    }

    .ip-header__mobile-account {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        gap: 12px;
        min-height: 48px;
        padding: 10px 20px;
        border-bottom: 1px solid #d1d5db;
        color: #333;
        text-decoration: none;
    }

    .ip-header__mobile-account:hover,
    .ip-header__mobile-account:focus-visible {
        background: #edf5fa;
        text-decoration: underline;
    }

    .ip-header__main {
        flex-wrap: wrap;
    }

    .ip-header__search {
        order: 3;
        flex-basis: 100%;
        max-width: none;
    }

    .ip-header__actions {
        margin-left: auto;
    }
}

@media (max-width: 767px) {
    .ip-header__main {
        flex-wrap: nowrap;
        gap: 8px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .ip-header__logo {
        flex: 1 1 auto;
    }

    .ip-header__logo img {
        max-width: 100%;
    }

    .ip-header__actions {
        gap: 4px;
    }

    .ip-header__search {
        display: none;
    }

    #search-content .ip-header-search {
        max-width: none;
        padding: 8px 12px;
    }

    .ip-header__switchers {
        gap: 4px;
    }

    .ip-header-switcher__button {
        min-height: 32px;
        max-width: 74px;
        padding-left: 9px;
        padding-right: 22px;
        font-size: 12px;
    }

    .ip-header-switcher__menu {
        right: -48px;
    }

    .ip-header-search__suggestions {
        left: 12px;
        right: 12px;
    }

    .ip-header-search__product-link {
        align-items: flex-start;
        min-height: 76px;
    }

    .ip-header-search__product-image {
        flex-basis: 56px;
        width: 56px;
        height: 56px;
    }

    .ip-header-search__product-image img {
        width: 56px;
        height: 56px;
    }

    .ip-header-search__product-price {
        display: none;
    }
}

.ip-header__switchers {
    gap: 10px;
}

.ip-header-language.easyflags .options {
    display: flex;
    align-items: center;
}

.ip-header-language .easyflags-active,
.ip-header-language .easyflags-clickable-options {
    display: flex;
    align-items: center;
    width: auto;
}

.ip-header-language .flag-image {
    display: block;
    width: 22px;
    height: auto;
    margin: 0 7px 0 0;
    border: 0;
}

.ip-header-language .easyflags-active .flag-image {
    transform: scale(1.1);
    box-shadow: 2px 2px 3px rgb(var(--ip-primary-rgb) / .45);
}

.ip-header-language a {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.ip-header-currency {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 0;
    color: #333;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
}

.ip-header-currency .switcher-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.ip-header-currency .switcher-options {
    position: relative;
}

.ip-header-currency .switcher-trigger {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 14px 0 0;
    border: 0;
    background: transparent;
    color: #333;
    font: inherit;
    cursor: pointer;
}

.ip-header-currency .switcher-trigger strong {
    font-weight: 700;
}

.ip-header-currency .switcher-trigger::after {
    content: '';
    position: absolute;
    right: 1px;
    top: 50%;
    width: 0;
    height: 0;
    margin-top: -1px;
    border-top: 4px solid currentColor;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}

.ip-header-currency .switcher-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 60;
    min-width: 76px;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    border: 1px solid #d8d8d8;
    border-radius: 2px;
    background: #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .12);
}

.ip-header-currency .switcher-option {
    margin: 0;
}

.ip-header-currency .switcher-option a {
    display: block;
    padding: 7px 12px;
    color: #333;
    font-size: 13px;
    text-decoration: none;
}

.ip-header-currency .switcher-option a:hover,
.ip-header-currency .switcher-option a:focus {
    background: #f8f8f8;
    color: var(--ip-primary);
    text-decoration: none;
}

.ip-header-language-current {
    display: none;
}

.ip-header-language-settings__label {
    margin: 0 0 12px;
    font-weight: 700;
}

.ip-header-language-settings ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ip-header-language-settings a,
.ip-header-language-settings strong {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 48px;
    padding: 10px;
    color: #333;
    text-decoration: none;
}

.ip-header-language-settings [aria-current="true"] {
    background: #edf5fa;
    box-shadow: inset 3px 0 var(--ip-primary);
}

.ip-header-language-settings img {
    flex: 0 0 30px;
    width: 30px;
    height: auto;
}

.ip-header-language-settings a:hover,
.ip-header-language-settings a:focus-visible {
    background: #f3f4f6;
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .ip-header-language .flag-image {
        min-width: 20px;
        width: 20px;
        margin-right: 5px;
    }
}

@media (max-width: 767px) {
    .ip-header__switchers {
        gap: 7px;
    }

    .ip-header-language .easyflags-clickable-options {
        display: flex;
    }

    .ip-header-language .flag-image {
        width: 18px;
        min-width: 18px;
        margin-right: 4px;
    }

    .ip-header-currency {
        font-size: 12px;
    }

    .ip-header-currency .switcher-dropdown {
        right: -8px;
    }
}

/* Use the same breakpoint as the mobile navigation, including landscape. */
@media (max-width: 1023px) {
    .ip-header__topbar {
        height: auto;
        overflow: visible;
    }

    .ip-header__topbar-inner {
        flex-wrap: wrap;
        gap: 4px 8px;
        height: auto;
        min-height: 32px;
        padding: 0 12px;
    }

    .ip-header__topbar-left {
        flex-shrink: 0;
    }

    .ip-header__topbar-right {
        flex: 1 1 auto;
        overflow: visible;
        white-space: normal;
    }

    .ip-header__topbar .header-cms-content {
        max-width: 100%;
    }

    .ip-header__topbar .header-cms-content .tel {
        white-space: normal;
        text-align: right;
    }

    .ip-header__topbar .header-cms-content .inv,
    .ip-header__topbar .header-cms-content a[href^="mailto:"] {
        display: inline-block;
        white-space: nowrap;
    }

    .ip-header__topbar .ip-header-language {
        display: none;
    }

    .ip-header-language-current {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 36px;
        min-height: 32px;
        padding: 3px;
        border: 0;
        background: transparent;
        cursor: pointer;
    }

    .ip-header-language-current img {
        width: 30px;
        height: auto;
    }

    .ip-header__topbar .header-cms-content .ip-contact-icons {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-end;
        gap: 4px 8px;
    }

    .ip-header__topbar .header-cms-content .ip-contact-icons > a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 36px;
        min-height: 32px;
    }

    .ip-header__topbar .ip-contact-icons > .inv {
        order: 1;
        font-size: 14px;
        white-space: nowrap;
    }

    .ip-header__topbar .ip-contact-icons .telI {
        width: auto;
        height: 20px;
        max-height: none;
        margin-right: 0;
        vertical-align: -4px;
    }

    .ip-header__topbar .ip-contact-icons .ip-contact-text {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .ip-header__topbar .ip-contact-icons .ip-contact-spacer {
        display: none;
    }
}
