/* ============================================================
   Wendewerk GKV Tools – Social Proof Slide-Ins
   ============================================================ */

.wwgt-sp-container {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 999990;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 340px;
}

.wwgt-sp-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--wwgt-surface, #ffffff);
    border: 1px solid var(--wwgt-border, #e2e8f0);
    border-radius: 8px;
    padding: 14px 16px;
    box-shadow: 0 4px 16px rgba(18, 48, 74, 0.12);
    pointer-events: auto;
    opacity: 0;
    transform: translateX(-24px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.wwgt-sp-toast--visible {
    opacity: 1;
    transform: translateX(0);
}

.wwgt-sp-toast--clickable {
    cursor: pointer;
}

.wwgt-sp-toast--clickable:hover {
    border-color: var(--wwgt-primary, #00aeef);
    box-shadow: 0 6px 20px rgba(18, 48, 74, 0.16);
}

.wwgt-sp-toast--clickable:focus-visible {
    outline: 2px solid var(--wwgt-primary, #00aeef);
    outline-offset: 2px;
}

.wwgt-sp-toast__icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--wwgt-primary-light, #e8f7fd);
    color: var(--wwgt-primary, #00aeef);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wwgt-sp-toast__icon svg {
    width: 20px;
    height: 20px;
}

.wwgt-sp-toast__body {
    flex: 1;
    min-width: 0;
}

.wwgt-sp-toast__text {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--wwgt-text, #1a3d5c);
}

.wwgt-sp-toast__name {
    font-weight: 700;
}

.wwgt-sp-toast__meta {
    margin: 2px 0 0;
    font-size: 11px;
    color: var(--wwgt-text-muted, #64748b);
}

.wwgt-sp-toast__close {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--wwgt-text-muted, #64748b);
    cursor: pointer;
    padding: 0;
    transition: background 0.15s, color 0.15s;
}

.wwgt-sp-toast__close:hover {
    background: var(--wwgt-surface-soft, #f8fafc);
    color: var(--wwgt-text, #1a3d5c);
}

.wwgt-sp-toast__close svg {
    width: 13px;
    height: 13px;
}

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 520px) {
    .wwgt-sp-container {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
    }
    .wwgt-sp-toast {
        padding: 12px 14px;
    }
}

/* ── Reduced Motion ─────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    .wwgt-sp-toast {
        transition: opacity 0.15s ease;
        transform: none;
    }
}
