.website-switcher--locked {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    padding: 7px 7px 7px 17px;
    align-items: center;
    vertical-align: middle;
    cursor: default;
}

.website-switcher--locked::before {
    position: absolute;
    top: 50%;
    left: 4px;
    width: 1px;
    height: 24px;
    content: "";
    background: #888;
    transform: translateY(-50%);
}

.website-switcher--locked img {
    display: block;
    position: static !important;
    width: 28px;
    height: 19px;
    object-fit: cover;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Reserve the final label width so opening the selector never moves the logo group. */
.website-switcher--selectable {
    width: 190px;
    min-width: 190px;
}

.website-switcher--selectable .website-switcher__current {
    box-sizing: border-box;
    width: 100%;
    justify-content: flex-start;
    color: #fff;
    background: #000;
    border-color: transparent;
}

.website-switcher--selectable .website-switcher__current img,
.website-switcher--selectable .website-switcher__dropdown img {
    border: 0;
    outline: 0;
    box-shadow: none;
}

.website-switcher--selectable .website-switcher__current span {
    box-sizing: border-box;
    flex: 1 1 auto;
    max-width: none;
}

.website-switcher--selectable .website-switcher__dropdown {
    box-sizing: border-box;
    width: 100%;
    min-width: 100%;
    color: #fff;
    background: #000;
    border-color: #333;
}

.website-switcher--selectable .website-switcher__dropdown a {
    color: #fff;
    background: #000;
}

.website-switcher--selectable .website-switcher__dropdown a:hover,
.website-switcher--selectable .website-switcher__dropdown a:focus-visible {
    color: #fff;
    background: #202020;
}

/* Standard Luma: keep the flag in the same header row as the floated logo. */
.header.content > .logo + .website-switcher--locked {
    float: left;
    clear: none;
    margin: 18px 0 0 8px;
}

/* Netgrade header: logo and locked flag stay together in the center column. */
.page-wrapper .page-header .header-main-container .center-col > .logo,
.page-wrapper .page-header .header-main-container .center-col > .logo img {
    width: 140px !important;
    min-width: 140px !important;
    max-width: 140px !important;
}

.page-wrapper .page-header .header-main-container .center-col > .logo img {
    height: auto !important;
}

.page-wrapper .page-header .header-main-container .center-col > .website-switcher--locked {
    margin: 0;
}

/* Hyvä renders its separator as a dedicated header element. */
.irmscher-header .website-switcher--locked::before {
    display: none;
    content: none;
}

@media only screen and (max-width: 767px) {
    .website-switcher--selectable {
        width: 168px;
        min-width: 168px;
    }
    .header.content > .logo + .website-switcher--locked {
        margin-top: 13px;
    }

    .page-wrapper .page-header .header-main-container .center-col {
        flex-direction: row;
    }
}
