/*
 * SBM AI Demo Mode — the "Did you know?" card (see demo-note.js).
 *
 * Built from the site's own tokens, so it takes each demo's brand colour:
 * --sbm-button-bg is the accent the advisor already uses for its launcher and
 * the visitor's bubbles, tinted down here so the card reads as an aside, not
 * a button. Fallbacks cover a page without the tokens.
 */
.sbm-demo-note {
    --sbm-demo-note-accent: var(--sbm-button-bg, #4f46e5);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    box-sizing: border-box;
    margin: 0.25rem 0 0;
    padding: 0.75rem 0.875rem;
    border: 1px solid color-mix(in srgb, var(--sbm-demo-note-accent) 22%, transparent);
    border-radius: var(--sbm-advisor-radius, 0.875rem);
    background: color-mix(in srgb, var(--sbm-demo-note-accent) 7%, var(--sbm-bg-color, #fff));
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
    font-size: 0.8125rem;
    line-height: 1.5;
    text-align: left;
    animation: sbm-demo-note-in 0.28s ease-out both;
}

.sbm-demo-note__icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 1.875rem;
    height: 1.875rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--sbm-demo-note-accent) 15%, transparent);
    color: var(--sbm-demo-note-accent);
}

.sbm-demo-note__icon svg {
    width: 1rem;
    height: 1rem;
}

.sbm-demo-note__body {
    min-width: 0;
}

.sbm-demo-note .sbm-demo-note__label {
    margin: 0 0 0.125rem;
    color: var(--sbm-demo-note-accent);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sbm-demo-note .sbm-demo-note__text {
    margin: 0;
    color: inherit;
    font-style: normal;
}

.sbm-demo-note a {
    color: inherit;
    text-decoration: underline;
}

@keyframes sbm-demo-note-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .sbm-demo-note { animation: none; }
}
