/* [CL] SYNGLI-7030 Syngli's toast (includes/common/toast.js): a compact white card at the top centre */
.syngli-toast_stack {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 16px;
    box-sizing: border-box;
    /* [CL] the stack spans the page; only the toasts themselves take clicks */
    pointer-events: none;
}

.syngli-toast {
    --syngli_toast_accent: #4f7ca7;
    pointer-events: auto;
    position: relative;
    box-sizing: border-box;
    /* [CL] one width for every toast, so a stack of them lines up */
    width: min(480px, 100%);
    margin: 0 0 8px;
    padding: 12px 44px 12px 46px;
    font-family: 'source_sans_proregular', 'Source Sans Pro', Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.45;
    color: #1f2a37;
    background: #ffffff;
    border: 1px solid #e3e7ec;
    border-left: 4px solid var(--syngli_toast_accent);
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.14), 0 2px 6px rgba(16, 24, 40, 0.06);
    animation: syngli_toast_in 0.16s ease-out;
}

/* [CL] the icon: a small coloured circle with a symbol, drawn in CSS so it doesn't need an icon font */
.syngli-toast::before {
    content: "i";
    position: absolute;
    left: 14px;
    top: 13px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--syngli_toast_accent);
    color: #ffffff;
    font: bold 13px/20px Helvetica, Arial, sans-serif;
    text-align: center;
}

.syngli-toast--danger {
    --syngli_toast_accent: #c0392b;
}

.syngli-toast--warning {
    --syngli_toast_accent: #c98a16;
}

.syngli-toast--danger::before,
.syngli-toast--warning::before {
    content: "!";
}

.syngli-toast--success {
    --syngli_toast_accent: #2e8b57;
}

.syngli-toast--success::before {
    content: "\2713";
}

.syngli-toast_message a {
    color: #004170;
    text-decoration: underline;
}

.syngli-toast_close {
    position: absolute;
    top: 50%;
    right: 10px;
    padding: 4px 6px;
    border: 0;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    color: #6b7785;
    cursor: pointer;
    transform: translateY(-50%);
}

.syngli-toast_close:hover,
.syngli-toast_close:focus {
    color: #1f2a37;
}

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

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