/* ============================================================
   toast.css
   Global transient notifications rendered by showToast()
   (assets/js/utilities/toast.js). Non-blocking: confirmations no
   longer interrupt the keyboard flow with a modal that needs a
   click to dismiss.

   The design tokens fall back to sane defaults so the toast
   renders on any page, not only where --cc-* is defined.
   ============================================================ */

.cc-toast-region {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10050;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: min(360px, calc(100vw - 40px));
    pointer-events: none;
}

.cc-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--cc-radius-sm, 6px);
    background: var(--cc-surface, #ffffff);
    border-left: 4px solid var(--cc-primary, #3fabf3);
    box-shadow: var(--cc-shadow-md, 0 4px 12px rgba(0, 0, 0, .08),
        0 2px 4px rgba(0, 0, 0, .04));
    color: var(--cc-text, #1e293b);
    font-size: .85rem;
    line-height: 1.35;
    cursor: pointer;
    animation: ccToastIn .18s ease;
}

.cc-toast--success { border-left-color: #1a9c53; }
.cc-toast--warning { border-left-color: #d99a00; }
.cc-toast--danger { border-left-color: #d64545; }

.cc-toast__icon { margin-top: 1px; color: var(--cc-primary, #3fabf3); }
.cc-toast--success .cc-toast__icon { color: #1a9c53; }
.cc-toast--warning .cc-toast__icon { color: #d99a00; }
.cc-toast--danger .cc-toast__icon { color: #d64545; }

.cc-toast--leaving {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease;
}

@keyframes ccToastIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}
