.popup {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    flex-direction: column;
    align-items: center;
    z-index: -9999;
    min-width: 100vw;
    height: 100vh;
    transition: all 0s .5s, opacity .25s ease;
    opacity: 0;
    overflow-y: scroll;
    visibility: hidden;
}

.popup-opened {
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: all 0s, opacity .25s ease;
}

.popup-visible {
    overflow-y: hidden;
}

.popup-overlay {
    display: none;
    position: fixed;
    background: rgba(0, 0, 0, 0.75);
    width: 100vw;
    height: 100vh;
    z-index: 900;
    top: 0;
    left: 0;
}

.popup-visible .popup-overlay {
    display: block;
}

.popup > div {
    z-index: 10;
    margin: auto 1em;
    position: relative;
    transform: translateY(-5em);
    transition: .25s ease;
}

.popup-opened div {
    transform: translateY(0);
}

.popup-close {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    font-size: 1em;
    padding: 1em;
    z-index: 99;
    background: none;
    border: 1px solid transparent;
    transition: .25s ease;
    cursor: pointer;
    color: #555;
    box-sizing: border-box;
}

.popup-close:hover {
    color: #000;
}

.popup-close:active {
    transform: scale(0.9);
}


.popup-success,
.popup-error {
    background: #fff;
    border-radius: 5px;
    max-width: 90vw;
    font-family: 'Arial', sans-serif;
}

.popup-error {
    width: 30em;
}

.popup-success {
    width: 45em;
    /*transition: opacity .5s ease !important;*/
}

.popup-success .popup-close,
.popup-error .popup-close {
    filter: invert(100%);
    /*padding: 1.5em;*/
    font-size: 1.3em;
}

.popup-success__head,
.popup-error__head {
    margin: 0;
    padding: 1.5em 1em;
    border-radius: 5px 5px 0 0;
    color: #fff;
}

.popup-success__head {
    background: #00897b;
}

.popup-error__head {
    background: #d32f2f;
}

.popup-error__content {
    padding: 1.5em 1em;
}

.popup-success-addresses {
    list-style-type: none;
    padding-left: 0.5em;
}

.popup-success-addresses li {
    padding: 0.5em;
    cursor: pointer;
}

.popup-success-addresses a {
    color: #426FC5;
}

.popup-success-admin-li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid transparent;
    border-top: 1px solid transparent;
}

.popup-success-admin-li_chosen {
    border-color: black;
}

.popup-success-add {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    min-height: 1.5em;
    min-width: 1.5em;
    border-radius: 100%;
    cursor: pointer;
    border: 1px solid black;
    background: #ddd;
    transition: .25s ease;
}

.popup-success-add:hover {
    box-shadow: 0 0 3px 1px #888;
}


.popup-success-admin-li_chosen .popup-success-add {
    transform: rotate(45deg);
}

.popup-success__search {
    display: block;
    position: sticky;
    bottom: 0;
    width: 100%;
    font-size: 1.1em;
    --button-color: #00897b;
    padding: .75em;
}