/* Общие стили для попапов */
.city-popup-confirmation {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 80px;
    left: 70px;
    z-index: 1000;
    box-sizing: border-box;
    min-width: 537px;
    height: 60px;
    background: #FFFFFF;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    padding: 14px 14px 14px 25px;
    border-radius: 54px;
}

.city-popup-confirmation .popup-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 32px;
}

.city-popup-confirmation .popup-title {
    display: flex;
    align-items: center;
    min-width: 240px;
    font-weight: 400;
    font-size: 12px;
    line-height: 12px;
    height: 18px;
    color: #000000;
}

.city-popup-confirmation .popup-title::before {
    content: url(../images/city-icon-blue.svg);
    width: 18px;
    height: 18px;
    margin-right: 6px;
}

.city-popup-confirmation .popup-buttons {
    display: flex;
    gap: 10px;
}

.city-popup-confirmation .button {
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 104px;
    height: 32px;
    font-size: 10px;
    line-height: 10px;
    color: #1C52DC;
    border-radius: 40px;
}

.city-popup-confirmation .button-primary {
    border: 1px solid #1C52DC;
    color: #1C52DC;
    font-weight: 700;
    background: transparent;
}

.city-popup-confirmation .button-primary:hover {
    background: #1C52DC;
    color: #FFFFFF;
}

.city-popup-confirmation .button-secondary {
    color: #1C52DC;
    font-weight: 400;
    width: 116px;
    height: 32px;
    background: #EDF4FF;
    border: none;
}

.city-popup-confirmation .button-secondary:hover {
    background: #DBEAFF;
}

.popup-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.city-popup-list {
    position: fixed;
    left: calc(50% - 854px/2);
    top: calc(50% - 515px/2);
    z-index: 1000;
    box-sizing: border-box;
    padding: 43px 40px;
    width: 854px;
    height: 515px;
    background: #FFFFFF;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    border-radius: 54px;
}


.city-popup-list .popup-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.city-popup-list .close-button {
    position: absolute;
    width: 34px;
    height: 34px;
    left: 780px;
    top: 40px;
}

.city-popup-list .close-button svg {
    width: 100%;
    height: 100%;
}

.city-popup-list .close-button:hover {
    cursor: pointer;
}

.city-popup-list .close-button:hover svg * {
    stroke: #1C52DC; 
}

.city-popup-list .popup-title {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 24px;
    line-height: 28px;
    color: #1C52DC;
}

.city-popup-list .popup-description {
    display: flex;
    align-items: center;
    width: 621px;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #000000;
    margin: 14px 0 0 0;
}

.city-popup-list .cities-container {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0 0 0;
    border-top: 2px solid #C0CBDD;
    height: 250px;
    box-sizing: border-box;
    padding: 29px 0 0 0;
}

.city-popup-list .city-item {
    display: flex;
    align-items: center;
    width: 183px;
    height: 28px;
    font-weight: 400;
    font-size: 16px;
    line-height: 28px;
}

.city-popup-list .city-item:hover {
    color: #1C52DC;
    cursor: pointer;
}

.city-popup-list .city-item.active {
    font-weight: 700;
    text-decoration-line: underline;
    pointer-events: none;
}

.city-popup-list .other-city-button-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 44px 0 0 0;
}

.city-popup-list .button {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 40px;
    box-sizing: border-box;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    color: #1C52DC;
}

.city-popup-list .button-other {
    border: 1px solid #1C52DC;
    width: 278px;
    height: 40px;
    background: transparent;
}

.city-popup-list .button-other:hover {
    background: #1C52DC;
    color: #fff;
}

.city-popup-list .button-cancel {
    width: 116px;
    height: 40px;
    background: #EDF4FF;
    border: none;
}

.city-popup-list .button-cancel:hover {
    background: #DBEAFF;
}



/* Адаптивность для мобильных */
@media (max-width: 500px) {
    .city-popup-confirmation {
        top: auto;
        bottom: 0;
        left: 0;
        min-width: 100vw;
        width: 100vw;
        height: 38.46vw;
        box-shadow: 0px 1.03vw 2.05vw rgba(0, 0, 0, 0.2);
        border-radius: 13.85vw 13.85vw 0px 0px;
        padding: 4.36vw 14.62vw 8.97vw 14.62vw;
    }
    
    .city-popup-confirmation .popup-content {
        flex-direction: column;
        width: 100%;
        height: 100%;
    }
    
    .city-popup-confirmation .popup-line {
        border: 0.5vw solid #D7D7D7;
        width: 7.69vw;
        height: 0;
    }
    
    .city-popup-confirmation .popup-title {
        min-width: 70.77vw;
        font-size: 3.59vw;
        line-height: 4.62vw;
        height: 4.62vw;
        width: 50vw;
    }
    
    .city-popup-confirmation .popup-title::before {
        width: 4.62vw;
        height: 4.62vw;
        margin-right: 1.54vw;
    }
    
    .city-popup-confirmation .popup-buttons {
        gap: 3.08vw;
    }
    
    .city-popup-confirmation .button {
        width: 33.08vw;
        height: 10.26vw;
        font-size: 3.59vw;
        line-height: 4.10vw;
        border-radius: 10.26vw;
    }
    
    .city-popup-confirmation .button-primary {
        border: 0.26vw solid #1C52DC;
    }
    
    .city-popup-confirmation .button-secondary {
        width: 29.74vw;
        height: 10.26vw;
    }

    .popup-backdrop {
        display: none;
    }
    
    .city-popup-list {
        left: 0;
        top: 0;
        width: 100vw;
        height: 100vh;
        padding: 5.13vw;
        box-shadow: none;
        border-radius: 0;
        overflow: hidden;
    }
    
    .city-popup-list .close-button {
        width: 8.72vw;
        height: 8.72vw;
        right: 5.13vw;
        top: 3vw;
        left: auto;
    }
    
    .city-popup-list .close-button svg {
        width: 100%;
        height: 100%;
    }
    
    .city-popup-list .popup-title {
        font-size: 5.13vw;
        line-height: 7.18vw;
        color: #000;
    }
    
    .city-popup-list .popup-description {
        display: none;
    }
    
    .city-popup-list .cities-container {
        flex-wrap: nowrap;
        gap: 2.56vw;
        margin: 3.85vw 0 0 0;
        border-top: 0.51vw solid #C0CBDD;
        overflow: scroll;
        height: 55vh;
        padding: 7.44vw 0 0 0;
    }
    
    .city-popup-list .city-item {
        width: auto;
        height: 7.18vw;
        font-size: 4.10vw;
        line-height: 7.18vw;
    }
    
    .city-popup-list .other-city-button-container {
        flex-direction: column;
        gap: 2.56vw;
        margin: 12.05vw 0 0 0;
    }
    
    .city-popup-list .button {
        font-size: 3.59vw;
        line-height: 4.10vw;
        width: 89.74vw !important;
        height: 14.36vw !important;
        border-radius: 10.26vw;
    }
    
    .city-popup-list .button-other {
        border: 0.26vw solid #1C52DC;
    }
}
