.melnik-city-switcher {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.melnik-city-switcher > summary {
    display: flex;
    min-height: 44px;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 4px 10px;
    border: 1px solid #b8cee8;
    border-radius: 8px;
    background: #f7fbff;
    color: #17344f;
    list-style: none;
    cursor: pointer;
}

.melnik-city-switcher > summary::-webkit-details-marker {
    display: none;
}

.melnik-city-switcher > summary:hover,
.melnik-city-switcher[open] > summary {
    border-color: #1769d1;
    background: #edf5ff;
}

.melnik-city-switcher :is(summary, a):focus-visible {
    outline: 2px solid #1769d1;
    outline-offset: 2px;
}

.melnik-city-switcher__location {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.melnik-city-switcher__label {
    color: #455e72;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
}

.melnik-city-switcher__current {
    max-width: 12rem;
    overflow: hidden;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.melnik-city-switcher__chevron {
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    margin-top: -3px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

.melnik-city-switcher[open] .melnik-city-switcher__chevron {
    margin-top: 3px;
    transform: rotate(225deg);
}

.melnik-city-switcher__panel {
    position: absolute;
    inset-block-start: calc(100% + 6px);
    inset-inline-end: 0;
    width: min(224px, calc(100vw - 24px));
    max-height: min(21rem, calc(100vh - 9rem));
    max-height: min(21rem, calc(100dvh - 9rem));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 5px;
    border: 1px solid #b8cee8;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 32px rgb(16 32 51 / 0.16);
}

.melnik-city-switcher__panel ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.melnik-city-switcher__panel a {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding: 7px 9px;
    border-radius: 6px;
    color: #17344f;
    font-size: 14px;
    line-height: 1.25;
    text-decoration: none;
}

.melnik-city-switcher__panel a:hover,
.melnik-city-switcher__panel a[aria-current="true"] {
    background: #edf5ff;
    color: #104781;
}

.melnik-city-switcher__panel a[aria-current="true"] {
    font-weight: 750;
}

.melnik-city-switcher-header .regional-header {
    grid-template-columns: minmax(0, 1fr) auto;
}

.melnik-city-switcher-header .regional-header > .melnik-city-switcher {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
}

.melnik-contact-areas ul,
.melnik-regional-contact-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 8px;
    padding: 0;
    list-style: none;
}

.melnik-contact-areas a,
.melnik-regional-contact-links a {
    display: inline-block;
    padding-block: 5px;
}

#regional-contacts,
#project-request.regional-request {
    scroll-margin-top: 6rem;
}

.regional-body .melnik-regional-home-action {
    margin-block-start: 1.25rem;
    text-decoration: none;
}

@media (max-width: 640px) {
    .melnik-city-switcher-header:not([data-regional-header]) .melnik-header__actions {
        display: grid;
        grid-template-columns: max-content max-content;
        align-items: center;
        column-gap: 8px;
        row-gap: 4px;
        min-width: 0;
        padding-top: 8px;
    }

    .melnik-city-switcher-header:not([data-regional-header]) .melnik-header__actions > .melnik-city-switcher {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: end;
    }

    .melnik-city-switcher-header:not([data-regional-header]) .melnik-header__inner > .melnik-header__brand {
        align-self: start;
        margin-top: 4px;
    }
}
