.sb-toast-host {
    position: fixed;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: min(26rem, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    pointer-events: none;
}

.sb-toast-host-topleft {
    top: 1rem;
    left: 1rem;
}

.sb-toast-host-topcenter {
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
}

.sb-toast-host-topright {
    top: 1rem;
    right: 1rem;
}

.sb-toast-host-bottomleft {
    bottom: 1rem;
    left: 1rem;
}

.sb-toast-host-bottomcenter {
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
}

.sb-toast-host-bottomright {
    right: 1rem;
    bottom: 1rem;
}

.sb-toast {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--sb-color-border);
    border-left: 0.35rem solid var(--sb-color-primary);
    border-radius: var(--sb-control-border-radius);
    color: var(--sb-color-text);
    background: var(--sb-color-surface);
    box-shadow: 0 0.5rem 1.5rem rgb(0 0 0 / 25%);
    pointer-events: auto;
}

.sb-toast-information {
    border-left-color: var(--sb-color-primary);
}

.sb-toast-success {
    border-left-color: var(--sb-color-success);
}

.sb-toast-warning {
    border-left-color: var(--sb-color-warning);
}

.sb-toast-error {
    border-left-color: var(--sb-color-error);
}

.sb-toast-message {
    flex: 1;
}

.sb-toast-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    color: var(--sb-color-on-primary);
    background: var(--sb-color-primary);
    font-weight: 600;
    font-size: 0.8rem;
}

.sb-toast-close {
    border: 0;
    color: inherit;
    background: transparent;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
}
