.popup {
    display: none;
    flex-direction: column;
    gap: 8px;

    background-color: #ffffff;
    align-items: stretch;

    color: #c6c7c7;
    font-size: 0.8em;
    font-weight: 600;
    font-family: "OpenSans";

    padding: 24px 119px 24px 20px;
    border-radius: 12px;
    position: relative;
    text-align: center;
}

.popup > *:not(:first-child) {
    text-align: left;
}

.popup_state_active {
    display: flex;
}

.popup::after {
    content: "";
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    border: 15px solid transparent;
    border-bottom: 15px solid #ffffff;
    z-index: 1;
}

.popup__title {
    width: 100%;
    display: block;
    position: relative;

    color: #1e2022;
    font-size: 1em;
    font-weight: 600;
    font-family: "OpenSans";
}

.popup__title:after {
    content: "";
    display: block;
    position: absolute;
    bottom: -8px;

    width: 100%;
    height: 1px;
    padding: 0 0;
    background-color: #f5f5f5;
}

.popup__button {
    background-color: transparent;
    border: 1px solid white;
    border-radius: 5px;
    padding: 5px;
    color: #000000;

    font-family: Oswald;

    cursor: pointer;
}

.popup__button_type_edit {
    position: absolute;
    top: 30px;
    right: 50px;
    transform: translate(50%, -50%);

    width: 22px;
    height: 22px;

    border-radius: 50%;
    border: none;

    transition: all 0.2s ease-in-out;
    background-color: #000;
    background-image: url("/static/maps/images/edit_icon.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 15px;

    cursor: pointer;
}

.popup__button_type_close {
    position: absolute;
    top: 30px;
    right: 20px;
    transform: translate(50%, -50%);

    width: 22px;
    height: 22px;

    border-radius: 50%;
    border: none;

    transition: all 0.2s ease-in-out;
    background-color: #e1e4e6;
    background-image: url("/static/maps/images/close_icon.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;

    cursor: pointer;
}
