.toast-region {
    position: fixed;
    top: var(--toast-top, 84px);
    right: max(12px, env(safe-area-inset-right));
    z-index: 60;
    display: grid;
    width: min(360px, calc(100vw - 24px));
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 10px 8px 10px 12px;
    color: var(--good);
    background: var(--good-bg);
    border: 1px solid currentColor;
    border-left-width: 5px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    pointer-events: auto;
    transition: opacity .18s ease, transform .18s ease;
}

.toast p {
    margin: 0;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.toast-icon {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    color: #fff;
    background: var(--good);
    border-radius: 50%;
    font-weight: 800;
}

.toast-close {
    display: grid;
    width: 44px;
    height: 44px;
    min-height: 44px;
    place-items: center;
    padding: 0;
    color: currentColor;
    background: transparent;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    font-size: 1.55rem;
    line-height: 1;
}

.toast-close:hover {
    background: rgba(40, 106, 72, .1);
}

.toast.is-leaving {
    opacity: 0;
    transform: translateX(18px);
}

.toast[hidden] {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .toast {
        transition: none;
    }
}
