/* Social proof plugin — structural styles. Colours come from the active theme's tokens. */
.sp-product, .sp-toast, .sp-badge {
    --sp-primary: var(--color-theme-primary, var(--theme-primary, #4f46e5));
    --sp-text: var(--color-theme-text, var(--theme-text, #18181b));
    --sp-muted: var(--color-theme-muted, var(--theme-text-muted, #71717a));
    --sp-surface: var(--color-theme-surface, var(--theme-surface, #fff));
    --sp-border: var(--color-theme-border, var(--theme-border, #e4e4e7));
}
.sp-product { display: flex; flex-direction: column; gap: .3rem; margin-top: .75rem; }
.sp-product:empty { display: none; }
.sp-line { margin: 0; color: var(--sp-muted); font-size: .875rem; }
.sp-line::before { content: '● '; color: #10b981; }
.sp-urgent { color: #dc2626; font-weight: 600; }
.sp-urgent::before { color: #dc2626; }
.sp-badge { display: inline-flex; align-items: center; padding: .2rem .6rem; border-radius: 999px; background: #f59e0b; color: #fff; font-size: .6875rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.sp-toast { position: fixed; left: 1rem; bottom: 1rem; z-index: 80; display: flex; align-items: center; gap: .75rem; max-width: 22rem; padding: .7rem 2.25rem .7rem .7rem; border: 1px solid var(--sp-border); border-radius: 1rem; background: var(--sp-surface); color: var(--sp-text); box-shadow: 0 12px 30px rgba(0, 0, 0, .15); text-decoration: none; font-size: .8125rem; opacity: 0; transform: translateY(1rem); transition: opacity .3s, transform .3s; }
.sp-toast.is-visible { opacity: 1; transform: translateY(0); }
.sp-toast img { width: 3.25rem; height: 3.25rem; flex: none; border-radius: .6rem; object-fit: cover; }
.sp-toast > span { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.sp-toast strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sp-toast-who, .sp-toast-ago { color: var(--sp-muted); font-size: .75rem; }
.sp-toast-close { position: absolute; top: .35rem; right: .5rem; border: 0; background: none; color: var(--sp-muted); font-size: 1.1rem; line-height: 1; cursor: pointer; }
@media (max-width: 640px) { .sp-toast { left: .5rem; right: .5rem; max-width: none; } }
