.rt-file-attach {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    max-width: 100%;
}
.rt-file-attach-row {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.rt-file-attach-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--border, rgba(255,255,255,0.12));
    background: rgba(255,255,255,0.04);
    color: var(--slate, #94a3b8);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    user-select: none;
    margin: 0;
}
.rt-file-attach-btn i { color: var(--gold, #c9a227); font-size: 0.85rem; }
.rt-file-attach-btn--icon {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
    border-radius: 10px;
}
.rt-file-attach-btn:hover {
    color: var(--ice, #e5e7eb);
    border-color: rgba(201,162,39,0.45);
    background: rgba(201,162,39,0.08);
}
.rt-file-attach.has-attachment .rt-file-attach-btn {
    border-color: rgba(201,162,39,0.45);
    background: rgba(201,162,39,0.1);
    color: var(--gold, #c9a227);
}
.rt-file-attach-name {
    color: var(--slate, #94a3b8);
    font-size: 0.72rem;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rt-file-attach-preview {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    box-sizing: border-box;
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    background: rgba(201, 162, 39, 0.1);
    border: 1px solid rgba(201, 162, 39, 0.28);
    font-size: 0.72rem;
    color: var(--gold, #c9a227);
}
.rt-file-attach-preview[hidden] { display: none !important; }
.rt-file-attach-preview > i { flex-shrink: 0; }
.rt-file-attach-preview-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: 'JetBrains Mono', monospace;
    color: var(--ice, #e5e7eb);
}
.rt-file-attach-preview-badge {
    flex-shrink: 0;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    opacity: 0.85;
}
.rt-file-attach-clear {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 6px;
    background: rgba(255,255,255,0.06);
    color: var(--slate, #94a3b8);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}
.rt-file-attach-clear:hover { color: #ef4444; background: rgba(239,68,68,0.12); }
.rt-live-chat-composer .rt-file-attach {
    width: auto;
    gap: 0;
}
.rt-live-chat-composer .rt-file-attach-row {
    width: auto;
}
.rt-live-chat-composer .rt-file-attach-preview {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 0.45rem);
    width: auto;
    margin: 0;
    z-index: 2;
    order: unset;
    flex: unset;
}
.rt-live-chat-composer .rt-file-attach-btn--icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
}
.rt-live-chat-composer .rt-file-attach-btn span { display: none; }
.rt-live-chat-composer .rt-file-attach-name { display: none; }
