.popup {
    position: fixed;
    bottom: 0;
    min-width: 100vw;
    min-height: 100vh;
    z-index: 16;
    display: flex;
    justify-content: center;
    align-items: end;
    pointer-events: none;
}

.popup-btn {
    position: relative;
}

.popup-btn.notify::before {
    position: absolute;
    content: '';
    width: .4rem;
    height: .4rem;
    border-radius: 50%;
    background: var(--status-red);
    top: .3rem;
    right: .3rem;
}
.main__top-button.notify::before {
    top: -0.2rem;
    right: -0.2rem;
}

.popup.active {
    display: flex;
    pointer-events: all;
}

.popup__bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.164);
    visibility: hidden;
    opacity: 0;
    transition: .2s linear;
}

.popup.active .popup__bg {
    visibility: visible;
    opacity: 1;
}

.popup__container {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg-color-80);
    border-top: 1px solid var(--border-color-05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    min-height: 50vh;
    width: 100%;
    border-top-right-radius: .5rem;
    border-top-left-radius: .5rem;
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s linear, 
    visibility .3s linear, backrop-filter .3s linear, -webkit-backdrop-filter .3s linear, transform .6s ease-in-out;
}

.popup.logged .popup__container {
    min-height: 80vh;
}

.popup.active .popup__container {
    transform: translateY(0%);
    opacity: 1;
    visibility: visible;
    transition: opacity .3s linear, 
    visibility .3s linear, backrop-filter .3s linear, -webkit-backdrop-filter .3s linear, transform .6s cubic-bezier(.28,-0.03,0,.99);
}

.popup__close {
    position: absolute;
    top: 0;
    right: 0;
    padding: .5rem;
    display: flex;
    z-index: 5;
}
.popup__close-svg {
    width: var(--space-150);
    fill: var(--border-color-80);
    transition: .15s linear;
}

.popup__close:hover .popup__close-svg{
    fill: var(--border-color-primary);
}

.popup__top {
}
.popup__image {
    position: relative;
}

.popup__icon {
    position: absolute;
    bottom:0%;
    left: 50%;
    transform: translate(-50%, 50%);
}

.icon {
    display: flex;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 5px 10px;
    width: fit-content;
    border-radius: 50%;
}

.icon__container {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    overflow: hidden;
    background: var(--border-color-20);
    width: var(--space-300);
    height: var(--space-300);
}

.icon__sign {
    color: black;
    font-size: var(--text-size-200);
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    display: flex;
}

.icon__img {
    aspect-ratio: 1/1;
    border-radius: 50%;
    width: var(--space-350);
    max-width: var(--space-300);
}

.popup__header {
    color: var(--border-color-primary);
    text-align: center;
    padding: var(--space-250) .7rem var(--space-100);
}


.popup__body {
    padding-bottom: 3rem;
}
.popup__element {
    display: flex;
    align-items: center;
    column-gap: var(--space-50);
    padding: .7rem 1.5rem;
    transition: .15s linear;
    border-radius: .5rem;
    color: var(--border-color-70);
}
.popup__svg {
    fill: var(--border-color-70);
    width: var(--space-120);
    transition: .15s linear;
}

.popup__text {
    color: var(--border-color-70);
    transition: .15s linear;
}


.popup__element:hover {
    background: var(--border-color-05);
}

.popup__element:hover .popup__svg {
    fill: var(--border-color-primary);
}
.popup__element:hover .popup__text {
    color: var(--border-color-primary);
}


.popup__wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: 50vh;
    text-align: center;
    padding-inline: 1.5rem;
    
}

.popup__wrapper-header {
    color: var(--border-color-primary);
    margin-bottom: var(--space-50);
}

.popup__warning {
    color: var(--border-color-primary);
    margin-bottom: var(--space-100);
}
.popup__button {
    color: var(--bg-color-80);
    display: flex;
    column-gap: var(--space-50);
    background: var(--border-color-80);
    padding: var(--space-50) var(--space-150);
    border-radius: .5rem;
    transition: background .15s linear, box-shadow .15s linear, transform .3s cubic-bezier(.28,-0.03,0,.99);
    box-shadow: rgba(0, 0, 0, 0.2) 0px 5px 12px;
    transform: translateY(0%);
}
.popup__wrapper-svg {
    fill: var(--bg-color-80);
    width: var(--space-120);
    transition: .1s linear;
}

.popup__wrapper-preview {
    width: 3rem;
    fill: var(--status-blue);
    margin-bottom: var(--space-70);
}

.popup__button-text {
    color: var(--bg-color-70);
    transition: .1s linear; 
}

.popup__button-text:visited {
    color: var(--bg-color-70);
}

.popup__button:hover {
    background: var(--border-color-primary);
    transform: translateY(-10%);
    box-shadow: rgba(0, 0, 0, 0.3) 0px 5px 15px;
}

.popup__button:hover .popup__wrapper-svg {
    fill: var(--bg-color-primary);
}

.popup__button:hover .popup__button-text {
    color: var(--bg-color-primary);
}

.popup__logout {
    position: absolute;
    right: 0;
    bottom: 0;
    margin: 1rem 1.5rem;
    display: flex;
    column-gap: .5rem;
    opacity: .7;
    transition: .15s linear;
}

.popup__logout-svg {
    fill: var(--status-red);
    width: var(--space-120);
}

.popup__logout-text {
    color: var(--status-red);
}

.popup__logout:hover {
    opacity: 1;
}

.notification .popup__container {
    max-height: 80vh;
}

.notification .popup__body {
    height: 100%;
    overflow-x: auto;
    padding-bottom: 0;
}

.notification .popup__header {
    padding: var(--space-100) .7rem var(--space-100);
}

.popup__notification {
    display: flex;
    column-gap: .7rem;
    align-items: center;
    padding: .7rem 1rem;
    transition: background .1s linear;
    border-radius: .5rem;
    border-block: 1px solid var(--border-color-05);
}

.popup__notification:hover {
    background: var(--border-color-05);
}
.popup__notification-svg {
    width: var(--space-150);
    fill: var(--border-color-primary);
}
.notification-event .popup__notification-svg{
    fill: var(--bg-orange-primary);
}
.notification-message .popup__notification-svg{
    fill: var(--bg-blue-primary);
}
.notification-order .popup__notification-svg{
    fill: var(--bg-pink-primary);
}
.popup__notification-text {
    width: 100%;
}
.popup__notification-name {
}
.popup__notification-description {
    color: var(--border-color-60);
}

.popup__utils {
    display: flex;
    flex-direction: column;
    align-items: end;
    row-gap: var(--space-30);
}
.popup__time {
    color: var(--border-color-50);
    font-weight: 500;
}
.popup__notification-label {
    font-size: var(--text-size-50);
    background: var(--accent-color);
    border-radius: .5rem;
    color: white;
    min-width: var(--space-100);
    padding: 0 var(--space-30);
    height: var(--space-100);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
}

.popup__notification-label.active {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 1000px) {
    .popup {
        min-width: unset;
        top: 3rem;
        right: .5rem;
        min-height: unset;
        height: fit-content;
        width: 0;
        z-index: 16;
        transition: width .6s ease .1s, height .6s ease, transform .3s ease-in-out;
        overflow: hidden;
        align-items: start;
        border-radius: .5rem !important;
        padding: 1rem;
    }

    .popup.active {
        width: 600px;
        transition: width .6s cubic-bezier(.28,-0.03,0,.99), height .6s cubic-bezier(.28,-0.03,0,.99) .1s;
    }

    .moved .popup {
        width: 0;
    }


    .popup__bg {
        opacity: 0 !important;
        visibility: hidden !important;
        height: 0;
        width: 0;
    }

    .popup__container {
        min-height: fit-content !important;
        transform: translateY(0%);
        box-shadow: rgba(0, 0, 0, 0.1) 0px 5px 8px;
        border-radius: .5rem;
        border: 1px solid var(--border-color-10);
        padding: 1.5rem;
        text-wrap: nowrap;
        transition: opacity .3s linear .11, visibility .3s linear .11;
    }
    

    .popup__svg {
        min-width: var(--space-120);
    }

    .popup.active .popup__container {
        opacity: 1;
        visibility: visible;
        transition: opacity .3s linear, visibility .3s linear ;
    }

    .popup__icon {
        display: flex;
        justify-content: center;
        position: static;
        transform: unset;
        
    }

    .popup__header {
        padding: var(--space-100);
    }

    .notification .popup__header {
        text-align: start;
        padding: var(--space-70) var(--space-100) ;
    }

    .popup__wrapper {
        min-height: 400px;
        overflow: hidden;
    }

    .popup__warning {
        width: 400px;
        text-wrap: wrap;
    }

    .notification .popup__container {
        overflow: auto;
    }
    .notification .popup__body {
        overflow-y: auto;
        height: 300px;
        display: flex;
        flex-direction: column;
    }
}