.notifications {
    position: fixed;
    overflow: hidden;
    top: 0;
    right: 0;
    z-index: 2000;
    display: grid;
    gap: 26px;
    justify-items: end;
    padding: 40px;
    pointer-events: none;
}

.notifications.active {
    pointer-events: all;
}

.notification-toast, .group-notification {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    border-radius: 8px;
    overflow: hidden;
    padding: 16px;
    max-width: 300px;
    background: rgba(38, 38, 38, 0.80);
    backdrop-filter: blur(30px);
    transition: 0.6s cubic-bezier(.51, .92, .24, 1.15);
    transform: skew(-51deg) translate3d(200%, 0px, 0px);
    cursor: pointer;
    border: 1px solid rgba(63, 63, 63, 1);
    will-change: transform;
}

.notification-toast .notification-text, .group-notification .notification-text {
    position: relative;
    color: #FFFFFF;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
    margin-bottom: 0;
    font-family: 'Poppins', sans-serif;
    margin-left: 12px;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.notification-toast.active, .group-notification.active {
    transform: skew(0deg) translate3d(0px, 0px, 0px);
}

.notification-toast.hidden {
    transform: skew(-51deg) translate3d(200%, 0px, 0px);
}

.notification-toast:before, .group-notification:before {
    content: '';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.notification-toast#success:before, .group-notification#success:before {
    background: url('./svg/success.svg') no-repeat center center;
}

.notification-toast#error:before, .group-notification#error:before {
    background: url('./svg/error.svg') no-repeat center center;
}

.notification-toast#warning:before, .group-notification#warning:before {
    background: url('./svg/warning.svg') no-repeat center center;
}

.notification-toast#info:before, .group-notification#info:before {
    background: url('./svg/info.svg') no-repeat center center;
}

.notification-toast:after, .group-notification:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    pointer-events: none;
}

.notification-toast.active#success:after, .group-notification#success:after {
    background: rgba(50, 171, 113, 0.3);
    filter: blur(38.5px);
}

.notification-toast.active#error:after, .group-notification#error:after {
    background: rgba(209, 62, 62, 0.30);
    filter: blur(19.25px);
}

.notification-toast.active#warning:after, .group-notification#warning:after {
    background: rgba(210, 153, 38, 0.30);
    filter: blur(19.25px);
}

.notification-toast.active#info:after, .group-notification#info:after {
    background: rgba(171, 171, 171, 0.30);
    filter: blur(19.25px);
}

.notification-toast.active:after {
    animation: timing 5s linear;
}

.notification-toast.pause:after {
    animation-play-state: paused;
}

@keyframes timing {
    0% {
        transform: translate3d(0px, 0px, 0px);
    }

    100% {
        transform: translate3d(-100%, 0px, 0px);
    }
}

.group-notification {
    position: fixed;
    right: 32px;
    z-index: 1998;
}

.counter {
    position: fixed;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8px;
    width: 26px;
    height: 26px;
    background-color: #FFFFFF;
    border-radius: 4px;
    color: #262626;
    font-size: 1rem;
    font-weight: 500;
    transition: 0.2s ease;
    transform: scale(0);
}

.counter.active {
    transform: scale(1);
}
