.swem-toast-container {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    top: auto;
    left: auto;
    z-index: 3000;
    display: grid;
    gap: 0.85rem;
    justify-items: end;
    width: min(460px, calc(100vw - 2.5rem));
    max-width: none;
}

.swem-toast {
    position: relative;
    width: 100%;
    min-height: 92px;
    border: 1px solid var(--swem-border, #e8dcd6);
    border-radius: 24px;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            color-mix(in srgb, var(--swem-surface, #ffffff) 96%, #ffffff),
            color-mix(in srgb, var(--swem-bg, #fffaf7) 78%, #ffffff)
        );
    box-shadow: 0 26px 80px rgba(45, 30, 20, 0.22);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.swem-toast-accent {
    position: absolute;
    inset: 0 auto 0 0;
    width: 7px;
    background: var(--swem-primary, #2b1d18);
}

.swem-toast-content {
    padding: 1rem 1rem 1rem 1.25rem;
}

.swem-toast-top {
    display: grid;
    grid-template-columns: 42px 1fr 32px;
    align-items: center;
    gap: 0.75rem;
}

.swem-toast-icon {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--swem-primary-soft, #fff1ed);
    color: var(--swem-secondary, #7a3c32);
    font-size: 1.15rem;
    flex-shrink: 0;
}

.swem-toast-title-area {
    min-width: 0;
    display: grid;
    gap: 0.1rem;
}

.swem-toast-title-area strong {
    color: var(--swem-text, #2b1d18);
    font-size: 0.98rem;
    font-weight: 950;
    line-height: 1.2;
}

.swem-toast-title-area small {
    color: var(--swem-muted, #7a675f);
    font-size: 0.78rem;
    font-weight: 700;
}

.swem-toast-close {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 999px;
    background-size: 0.75rem;
    opacity: 0.65;
}

.swem-toast-close:hover {
    opacity: 1;
    background-color: color-mix(in srgb, var(--swem-border, #e8dcd6) 35%, transparent);
}

.swem-toast-body {
    margin-top: 0.65rem;
    padding-left: 3.55rem;
    color: var(--swem-muted, #7a675f);
    font-size: 0.92rem;
    font-weight: 650;
    line-height: 1.55;
}

/* Tipos */
.swem-toast-success .swem-toast-accent {
    background: #23743a;
}

.swem-toast-success .swem-toast-icon {
    background: #eef8f0;
    color: #23743a;
}

.swem-toast-error .swem-toast-accent,
.swem-toast-danger .swem-toast-accent {
    background: #9b2c2c;
}

.swem-toast-error .swem-toast-icon,
.swem-toast-danger .swem-toast-icon {
    background: #fff1f1;
    color: #9b2c2c;
}

.swem-toast-warning .swem-toast-accent {
    background: #b7791f;
}

.swem-toast-warning .swem-toast-icon {
    background: #fff7e6;
    color: #9a6416;
}

.swem-toast-info .swem-toast-accent {
    background: var(--swem-primary, #2b1d18);
}

.swem-toast-info .swem-toast-icon {
    background: var(--swem-primary-soft, #fff1ed);
    color: var(--swem-secondary, #7a3c32);
}

/* Animação */
.swem-toast.showing,
.swem-toast.show {
    animation: swemToastIn 0.22s ease both;
}

@keyframes swemToastIn {
    from {
        opacity: 0;
        transform: translateY(12px) translateX(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) translateX(0) scale(1);
    }
}

@media (max-width: 575px) {
    .swem-toast-container {
        right: 0.85rem;
        bottom: 0.85rem;
        width: min(420px, calc(100vw - 1.7rem));
    }

    .swem-toast-content {
        padding: 0.9rem 0.9rem 0.9rem 1.1rem;
    }

    .swem-toast-top {
        grid-template-columns: 38px 1fr 30px;
        gap: 0.65rem;
    }

    .swem-toast-icon {
        width: 38px;
        height: 38px;
        border-radius: 14px;
        font-size: 1rem;
    }

    .swem-toast-body {
        padding-left: 3.25rem;
        font-size: 0.86rem;
    }
}