.webthe-toast-region {
    position: fixed;
    z-index: 1100;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 400px;
    max-width: calc(100% - 32px);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    pointer-events: none;
}

.webthe-toast {
    --toast-color: #b42332;
    --toast-accent: #dc3545;
    --toast-border: #f4d5d8;
    --toast-soft: #fcebed;
    display: flex;
    align-items: flex-start;
    flex-shrink: 0;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--toast-border);
    border-left: 4px solid var(--toast-accent);
    border-radius: 8px;
    background: #fff;
    color: #252b36;
    box-shadow: 0 6px 24px #18243426;
    font-size: 14px;
    line-height: 1.5;
    pointer-events: auto;
    animation: webthe-toast-in 180ms ease-out;
}

.webthe-toast--success {
    --toast-color: #18743a;
    --toast-accent: #20a53a;
    --toast-border: #cce8d4;
    --toast-soft: #eaf7ee;
}

.webthe-toast--info {
    --toast-color: #175ca4;
    --toast-accent: #287acb;
    --toast-border: #cdddf2;
    --toast-soft: #edf5ff;
}

.webthe-toast--warning {
    --toast-color: #855500;
    --toast-accent: #d89916;
    --toast-border: #f0dfb5;
    --toast-soft: #fff6df;
}

.webthe-toast__icon {
    display: grid;
    place-items: center;
    flex: 0 0 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--toast-soft);
    color: var(--toast-color);
    font-weight: 700;
}

.webthe-toast__content {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.webthe-toast__title {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    color: var(--toast-color);
}

.webthe-toast__message {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-line;
}

.webthe-toast__close {
    display: grid;
    place-items: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #667085;
    font: inherit;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.webthe-toast__close:hover {
    background: var(--toast-soft);
    color: var(--toast-color);
}

.webthe-toast__close:focus-visible {
    outline: 2px solid var(--toast-color);
    outline-offset: 2px;
}

@keyframes webthe-toast-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 575.98px) {
    .webthe-toast-region { top: 16px; right: 16px; }
}

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