.citystar-header-main {
    grid-template-areas: "departments logo search actions country language" !important;
    grid-template-columns: auto minmax(150px, 210px) minmax(250px, 1fr) auto auto auto !important;
}

.citystar-country-switcher {
    grid-area: country;
    position: relative;
    z-index: 1003;
}

.citystar-country-switcher__trigger {
    align-items: center;
    background: #fff;
    border: 1px solid #d7dbe2;
    border-radius: 999px;
    box-shadow: none;
    color: #071b4d;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    gap: 7px;
    justify-content: center;
    min-height: 40px;
    padding: 0 12px;
    white-space: nowrap;
}

.citystar-country-switcher__trigger:hover,
.citystar-country-switcher__trigger:focus {
    background: #fff;
    border-color: #e4002b;
    color: #e4002b;
}

.citystar-country-switcher__trigger:focus-visible {
    box-shadow: 0 0 0 3px rgba(7, 27, 77, .16);
    outline: 2px solid #071b4d;
    outline-offset: 2px;
}

.citystar-country-switcher__flag,
.citystar-country-switcher__option-flag {
    font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
    line-height: 1;
}

.citystar-country-switcher__flag {
    font-size: 18px;
}

.citystar-country-switcher__chevron {
    font-size: 15px;
    line-height: 1;
    transition: transform 160ms ease;
}

.citystar-country-switcher__trigger[aria-expanded="true"] .citystar-country-switcher__chevron {
    transform: rotate(180deg);
}

.citystar-country-switcher__panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 18px 44px rgba(7, 27, 77, .2);
    box-sizing: border-box;
    inset-inline-end: 0;
    margin-top: 10px;
    min-width: 300px;
    padding: 18px;
    position: absolute;
    top: 100%;
}

.citystar-country-switcher__panel[hidden] {
    display: none !important;
}

.citystar-country-switcher__title {
    color: #071b4d;
    display: block;
    font-size: 16px;
    margin-bottom: 12px;
}

.citystar-country-switcher__options {
    display: grid;
    gap: 9px;
}

.citystar-country-switcher__option {
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-sizing: border-box;
    color: #071b4d;
    display: grid;
    gap: 11px;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    min-height: 62px;
    padding: 10px 12px;
    text-decoration: none;
}

a.citystar-country-switcher__option:hover,
a.citystar-country-switcher__option:focus {
    background: #f8fafc;
    border-color: #e4002b;
    color: #071b4d;
    text-decoration: none;
}

.citystar-country-switcher__option.is-current {
    background: #f0fdf4;
    border-color: #86efac;
}

.citystar-country-switcher__option.is-disabled {
    background: #f7f8fa;
    color: #6b7280;
    cursor: not-allowed;
}

.citystar-country-switcher__option-flag {
    font-size: 25px;
}

.citystar-country-switcher__option-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.citystar-country-switcher__option-copy strong {
    font-size: 14px;
}

.citystar-country-switcher__option-copy small {
    color: #7b8496;
    font-size: 11px;
    margin-top: 2px;
}

.citystar-country-switcher__status {
    background: #e5e7eb;
    border-radius: 999px;
    color: #596273;
    font-size: 10px;
    font-weight: 700;
    padding: 5px 8px;
    white-space: nowrap;
}

.citystar-country-switcher__status.is-current {
    background: #dcfce7;
    color: #15803d;
}

.citystar-country-switcher__arrow {
    color: #e4002b;
    font-size: 18px;
}

@media only screen and (max-width: 1180px) and (min-width: 768px) {
    .citystar-header-main {
        gap: 10px !important;
        grid-template-columns: auto minmax(115px, 150px) minmax(200px, 1fr) auto auto auto !important;
    }

    .citystar-country-switcher__trigger {
        min-width: 42px;
        padding-left: 9px;
        padding-right: 9px;
    }

    .citystar-country-switcher__current {
        display: none;
    }
}

@media only screen and (max-width: 767px) {
    .page-header .citystar-header-main {
        column-gap: 4px !important;
        grid-template-areas: "departments logo search country language" !important;
        grid-template-columns: 42px 46px minmax(0, 1fr) 38px 38px !important;
    }

    .citystar-country-switcher,
    .citystar-country-switcher__trigger {
        height: 38px;
        min-height: 38px;
        min-width: 38px;
        width: 38px;
    }

    .citystar-country-switcher__trigger {
        padding: 0;
    }

    .citystar-country-switcher__current,
    .citystar-country-switcher__chevron {
        display: none;
    }

    .citystar-country-switcher__flag {
        font-size: 18px;
    }

    .citystar-country-switcher__panel {
        inset-inline: 12px;
        margin: 0;
        min-width: 0;
        position: fixed;
        top: 94px;
        width: auto;
    }
}

@media only screen and (max-width: 374px) {
    .page-header .citystar-header-main {
        grid-template-columns: 40px 44px minmax(0, 1fr) 36px 36px !important;
    }

    .citystar-country-switcher,
    .citystar-country-switcher__trigger {
        min-width: 36px;
        width: 36px;
    }
}
