.sw-member-action-toast {
    position: fixed;
    inset-inline: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 1088;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 12px;
    width: calc(100% - 32px);
    max-width: 560px;
    margin-inline: auto;
    padding: 10px 10px 10px 16px;
    border: 1px solid #383838;
    border-radius: 6px;
    background: #171717;
    color: #fff;
    box-shadow: 0 6px 20px #0003;
    animation: sw-member-toast-enter 160ms ease-out;
}

.sw-member-action-toast[hidden],
.sw-member-action-toast [hidden],
.sw-member-action-toast[data-tone="success"] .sw-member-action-toast__icon--error,
.sw-member-action-toast[data-tone="error"] .sw-member-action-toast__icon--success {
    display: none;
}

.sw-member-action-toast__icon {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
}

.sw-member-action-toast__icon--success {
    border: 1.5px solid currentColor;
    border-radius: 50%;
}

.sw-member-action-toast__icon--error {
    color: #ffb4b4;
}

.sw-member-action-toast .sw-member-ui-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sw-member-action-toast__message {
    min-width: 0;
    margin: 0;
    color: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.sw-member-action-toast__close {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.sw-member-action-toast__close:hover {
    background: #ffffff1f;
}

.sw-member-action-toast__close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -3px;
}

.sw-member-item-panel [data-site-member-item-status]:empty {
    display: none;
}

@keyframes sw-member-toast-enter {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .sw-member-action-toast {
        animation: none;
    }
}
