
.notify {
    position: fixed;
    top: 6.8965517241rem;
    right: 2.7586206897rem;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 0.5517241379rem;
    width: min(400px, calc(100vw - 32px));
    max-height: calc(100dvh - 48px);
    overflow-y: auto;

    pointer-events: none;
    scrollbar-width: none;
}

.notify::-webkit-scrollbar {
    display: none;
}

.notify__container {
    display: flex;
    align-items: flex-start;
    gap: 1.1034482759rem;
    padding: 1.1034482759rem;
    border-left: 0.5517241379rem solid transparent;
    border-radius: 0.5517241379rem;
    box-shadow: 0px 0px 0.275862069rem 0px rgba(0, 0, 0, 0.2509803922);
    background: var(--yoga_Black);
    pointer-events: auto;
    animation: notifyIn .3s ease both;
}

.notify__cover {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.3103448276rem;
    height: 3.3103448276rem;
    flex-shrink: 0;
    border-radius: 0.5517241379rem;
    border: 0.0689655172rem solid transparent;
}

.notify__text {
    flex: 1;
    min-width: 0;
}

.notify__text h4 {
    line-height: 130%;
    color: var(--clear_White);
}

.notify__text p {
    padding-top: 0.1379310345rem;
    color: var(--base_Grey-1);
    font-weight: 500;
    font-size: 0.9655172414rem;
    line-height: 125%;
    overflow-wrap: anywhere;
}

.notify__close {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--clear_White);
    cursor: pointer;
    transition: color .2s;
}

.notify__close .X {
  background: var(--clear_White);
}


/* Типы уведомлений */
/* success */
.notify--success.notify__container  {
    border-left-color: #30C480;
}
.notify--success .notify__cover {
    /* background: #dcfce7; */
    border-color: #30C480;
}
.notify--success .notify__cover i {
    background: #30C480;
}

/* error */
.notify--error.notify__container  {
    border-left-color: #dc2626;
}
.notify--error .notify__cover {
    /* background: #fee2e2; */
    border-color: #dc2626;
}
.notify--error .notify__cover i {
    background: #dc2626;
}

/* warning */
.notify--warning .notify__cover i {
    background: #d97706;
}
.notify--warning.notify__container  {
    border-left-color: #d97706;
}
.notify--warning .notify__cover {
    /* background: #fef3c7; */
    border-color: #d97706;
}

/* info */
.notify--info.notify__container  {
    border-left-color: #2563eb;
}
.notify--info .notify__cover {
    /* background: #dbeafe; */
    border-color: #2563eb;
}
.notify--info .notify__cover i {
    background: #2563eb;
}


/* Анимации */

@keyframes notifyIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes notifyOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(30px);
    }
}

.notify__container.is-hiding {
    animation: notifyOut .25s ease forwards;
}

@media (max-width: 480px) {
    .notify {
        top: 12px;
        right: 16px;
        left: 16px;
        width: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .notify__container,
    .notify__container.is-hiding {
        animation-duration: .01ms;
    }
}
