.geo-client {
    position: relative;
    float: right;

    display: flex;
    align-items: center;

    height: 64px;

    margin: 0 8px;

    z-index: 100;
}


.geo-client-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    height: 34px;

    padding: 0 12px;
    margin: 15px 0 0;

    font: inherit;
    font-size: 13px;

    color: #fff;

    background: rgba(255, 255, 255, 0.10);

    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 18px;

    outline: none;
    box-shadow: none;

    cursor: pointer;
}


.geo-client-current:hover,
.geo-client-current:focus {
    color: #fff;

    background: rgba(255, 255, 255, 0.17);

    border-color: rgba(255, 255, 255, 0.30);
}


.geo-client-popup {
    position: fixed;

    inset: 0;

    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    box-sizing: border-box;

    background: rgba(15, 23, 42, 0.58);
}

.geo-client-list {
    display: flex;
    flex-direction: column;

    max-height: calc(100vh - 270px);

    overflow-y: auto;
    overflow-x: hidden;

    padding-right: 8px;
}

.geo-client-city {
    display: flex;
    align-items: center;

    gap: 7px;

    width: 100%;

    padding: 7px 4px;

    font-size: 13px;
    line-height: 18px;

    color: #343940;
    text-align: left;

    background: transparent;

    border: 0;

    cursor: pointer;
}


.geo-client-city:hover {
    color: #c82d50;
}


.geo-client-city.active {
    color: #c82d50;

    font-weight: 600;
}


.geo-client-city span {
    display: block;

    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* -----------------------------
   Подтверждение GEO-города
----------------------------- */

.geo-client-confirm {
    position: absolute;

    top: 4.5rem;
    right: 0;

    z-index: 10000;

    box-sizing: border-box;

    width: 340px;

    padding: 22px;

    color: #17191d;
    text-align: left;

    background: #fff;

    border-radius: 14px;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.20);
}


.geo-client-confirm::before {
    content: '';

    position: absolute;

    top: -7px;
    right: 48px;

    width: 14px;
    height: 14px;

    background: #fff;

    transform: rotate(45deg);
}


.geo-client-confirm-title {
    font-size: 18px;
    line-height: 26px;
    font-weight: 600;
    align-self: center;
    display: flex;
    gap:7px;
}

div.geo-client-confirm-title > span.user-city-auto-name
{
    border-bottom: 1px solid rgb(100, 100, 232);
}


.geo-client-confirm-title strong {
    font-weight: 600;
}


.geo-client-confirm-close {
    position: absolute;

    top: 14px;
    right: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    padding: 0;

    font-size: 24px;
    line-height: 30px;

    color: #343941;

    background: #f2f4f7;

    border: 0;
    border-radius: 50%;

    cursor: pointer;
}


.geo-client-confirm-close:hover {
    background: #e7eaee;
}


.geo-client-confirm-actions {
    display: flex;

    gap: 10px;

    margin-top: 20px;
}


.geo-client-confirm-yes,
.geo-client-confirm-other {
    min-height: 42px;

    padding: 0 18px;

    font: inherit;
    font-size: 14px;

    border-radius: 22px;

    cursor: pointer;
}


.geo-client-confirm-yes {
    color: #fff;

    background: #c82d50;

    border: 1px solid #c82d50;
}


.geo-client-confirm-yes:hover {
    background: #b72747;
    border-color: #b72747;
}


.geo-client-confirm-other {
    color: #30353d;

    background: #fff;

    border: 1px solid #d7dbe1;
}


.geo-client-confirm-other:hover {
    background: #f6f7f8;
}


@media (max-width: 480px) {

    .geo-client-confirm {
        right: -50px;

        width: 310px;

        padding: 18px;
    }


    .geo-client-confirm-actions {
        flex-direction: column;
    }


    .geo-client-confirm-yes,
    .geo-client-confirm-other {
        width: 100%;
    }
}

/* -----------------------------
   Группы городов
----------------------------- */

.geo-client-group,
.geo-client-ungrouped {
    padding: 26px 0;

    border-bottom: 1px solid #edf0f3;
}


.geo-client-group:first-of-type {
    padding-top: 24px;
}


.geo-client-ungrouped:last-child {
    border-bottom: 0;
}


.geo-client-group-title {
    display: flex;
    align-items: center;

    gap: 14px;

    width: 100%;

    margin: 0 0 14px;
    padding: 0;

    color: #242a32;

    font-size: 17px;
    font-weight: 600;
    line-height: 24px;

    text-align: left;

    background: transparent;

    border: 0;

    cursor: pointer;

    transition: color 0.2s ease;
}


.geo-client-group-title i {
    display: block;

    flex: 0 0 auto;

    width: 24px;

    color: #69727d;

    font-size: 18px;
    text-align: center;
}


.geo-client-group-title span {
    min-width: 0;

    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.geo-client-group-title:hover,
.geo-client-group-title.active {
    color: #c82d50;
}


.geo-client-group-title.active i {
    color: #c82d50;
}


.geo-client-group-cities {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 4px 40px;

    padding-left: 38px;
}


.geo-client-group-cities .geo-client-city {
    position: relative;

    min-width: 0;

    padding: 7px 6px 7px 16px;

    color: #252a31;

    font-size: 15px;
}


.geo-client-group-cities .geo-client-city::before {
    content: '';

    position: absolute;

    top: 50%;
    left: 1px;

    width: 4px;
    height: 4px;

    background: #bbc1c9;

    border-radius: 50%;

    transform: translateY(-50%);
}


.geo-client-group-cities .geo-client-city > i {
    display: none;
}


.geo-client-group-cities .geo-client-city:hover,
.geo-client-group-cities .geo-client-city.active {
    color: #c82d50;
}


.geo-client-group-cities .geo-client-city.active::before {
    background: #c82d50;
}


.geo-client-ungrouped .geo-client-group-title {
    cursor: default;
}


.geo-client-ungrouped .geo-client-group-title:hover {
    color: #242a32;
}


.geo-client-popup-dialog {
    position: relative;

    box-sizing: border-box;

    width: 100%;
    max-width: 900px;

    max-height: calc(100vh - 60px);

    padding: 42px 52px;

    overflow: visible;

    color: #1e232b;

    background: #fff;

    border-radius: 18px;

    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.22);
}

.geo-client-popup-head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;

    margin-bottom: 30px;
}


.geo-client-popup-title {
    margin: 0;

    color: #171b22;

    font-size: 28px;
    font-weight: 700;
    line-height: 36px;
}


.geo-client-popup-close {
    flex: 0 0 auto;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    color: #7d8795;

    background: #f4f6f8;

    border: 0;
    border-radius: 50%;

    font-size: 25px;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.geo-client-popup-close:hover {
    color: #252a31;

    background: #e9edf1;
}

.geo-client-search {
    position: relative;

    width: 100%;

    margin-bottom: 26px;
}


.geo-client-search input {
    box-sizing: border-box;

    display: block;

    width: 100%;
    height: 54px;

    padding: 0 18px 0 48px;

    color: #252a31;

    font: inherit;
    font-size: 16px;

    background: #fff;

    border: 1px solid #d8dde5;
    border-radius: 14px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.geo-client-search input::placeholder {
    color: #aab1bc;
}


.geo-client-search input:focus {
    border-color: #c82d50;

    box-shadow:
        0 0 0 3px rgba(200, 45, 80, 0.08);
}


.geo-client-search .fa-search {
    position: absolute;

    top: 50%;
    left: 17px;
    right: auto;

    color: #a0a8b4;

    font-size: 17px;

    transform: translateY(-50%);
}

.geo-client-all {
    display: flex;
    align-items: center;

    gap: 14px;

    width: 100%;

    margin: 0;
    padding: 14px 0 22px;

    color: #c82d50;

    font-size: 17px;
    font-weight: 600;

    border-bottom: 1px solid #edf0f3;
}


.geo-client-all i {
    width: 24px;

    color: #c82d50;

    font-size: 21px;
    text-align: center;
}


.geo-client-all:hover,
.geo-client-all.active {
    color: #b52346;
}

#geo-client-search
{
    border: 1px solid black;
    border-radius: 14px;
    height: 40px;
    width: 100%;
}


@media (max-width: 700px) {

    .geo-client-popup {
        padding: 12px;
    }

    .geo-client-search
    {
        display: flex;
        justify-content: center;
    }


    .geo-client-popup-dialog {
        max-height: calc(100vh - 24px);

        padding: 24px 20px;

        border-radius: 14px;
    }


    .geo-client-popup-title {
        font-size: 22px;
        line-height: 28px;
    }


    .geo-client-group-cities {
        grid-template-columns: 1fr;

        gap: 2px;

        padding-left: 28px;
    }


    .geo-client-list {
        width: 100%;
        max-height: calc(100vh - 220px);
    }

    #geo-client-current
    {
        margin-top: -14px;
    }

    .geo-client-confirm
    {
        top: 3.5rem;
        right: -1rem;
    }

}