.public-notifications {
    position: fixed;
    top: calc(0.8rem + 18px);
    right: 22px;
    z-index: 6000;
    width: min(410px, calc(100vw - 44px));
    display: grid;
    gap: 12px;
    pointer-events: none;
}

.public-notification {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    min-height: 92px;
    padding: 20px 50px 20px 20px;
    overflow: hidden;
    background: rgba(15, 15, 15, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    color: #fff;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    pointer-events: auto;
    animation: public-notification-in 320ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.public-notification::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background: #f47721;
}

.public-notification--error::after {
    background: #e05252;
}

.public-notification__icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f47721;
    color: #fff;
    display: grid;
    place-items: center;
}

.public-notification--error .public-notification__icon {
    background: #e05252;
}

.public-notification__icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.public-notification__content {
    min-width: 0;
    padding-top: 1px;
}

.public-notification__content strong {
    display: block;
    margin: 0 0 6px;
    font-family: "Montserrat-SemiBold", sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.public-notification__content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-family: "Montserrat-Regular", sans-serif;
    font-size: 13px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.public-notification__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, 0.62);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background-color 160ms ease, color 160ms ease;
}

.public-notification__close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.public-notification__close:focus-visible {
    outline: 2px solid #f47721;
    outline-offset: 2px;
    color: #fff;
}

.public-notification__close svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
}

.public-notification.is-leaving {
    animation: public-notification-out 220ms ease forwards;
}

@keyframes public-notification-in {
    from {
        opacity: 0;
        transform: translate3d(24px, -8px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes public-notification-out {
    to {
        opacity: 0;
        transform: translate3d(18px, 0, 0);
    }
}

@media (max-width: 768px) {
    .public-notifications {
        top: calc(0.8rem + 12px);
        right: 14px;
        width: calc(100vw - 28px);
    }

    .public-notification {
        min-height: 84px;
        padding: 17px 46px 17px 17px;
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 13px;
    }

    .public-notification__icon {
        width: 34px;
        height: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .public-notification,
    .public-notification.is-leaving,
    .public-notification__close {
        animation: none;
        transition: none;
    }
}
