/**
 * Pro-Modul: Datei-Upload im Live-Chat.
 * Gemeinsames Styling fuer Besucher-Widget (Frontend) und Agenten-Chat (Admin):
 * Anhang-Button + Datei-Chip (Bild-Vorschau / Download-Link).
 */

/* ── Anhang-Button in der Chat-Eingabe ──────────────────────── */
.ssts-lc-attach-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    margin-right: 4px;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, opacity .15s ease;
}

.ssts-lc-attach-btn:hover {
    background: #f1f5f9;
    color: #334155;
}

.ssts-lc-attach-btn.is-busy {
    opacity: .45;
    pointer-events: none;
}

.ssts-lc-attach-btn svg {
    display: block;
    pointer-events: none;
}

/* ── Datei-Chip (in einer Nachrichtenblase) ─────────────────── */
.ssts-lc-file-chip {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 240px;
}

.ssts-lc-file-thumb-link {
    display: block;
    line-height: 0;
}

.ssts-lc-file-thumb {
    display: block;
    max-width: 100%;
    max-height: 200px;
    width: auto;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.ssts-lc-file-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    font-size: 13px;
    line-height: 1.4;
    word-break: break-word;
}

.ssts-lc-file-link:hover .ssts-lc-file-name {
    text-decoration: underline;
}

.ssts-lc-file-ico {
    flex: 0 0 auto;
}

.ssts-lc-file-size {
    opacity: .7;
    font-size: 12px;
    white-space: nowrap;
}
