/**
 * ChatImageAttach 共用樣式（站內 / 訪客 / 簡報）
 * 走 CSS Token，禁止寫死色值。
 */

/* 縮圖 chips 容器：預設收合，有圖才顯示 */
.chat-image-previews {
    display: none;
    flex-wrap: wrap;
    gap: var(--space-2, 8px);
    padding: var(--space-2, 8px) 0 0;
}
.chat-image-previews.has-images {
    display: flex;
}

/* 單張縮圖 chip */
.chat-image-chip {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md, 10px);
    overflow: hidden;
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
    background: var(--surface-2, rgba(0, 0, 0, 0.03));
    flex-shrink: 0;
}
.chat-image-chip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 移除按鈕 */
.chat-image-chip-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    line-height: 16px;
    text-align: center;
    border: none;
    border-radius: 50%;
    background: var(--overlay-strong, rgba(0, 0, 0, 0.55));
    color: var(--w-0, #fff);
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}
.chat-image-chip-remove:hover {
    background: var(--error, #ef4444);
}

/* 拖拉懸停高亮 */
.drag-over {
    outline: 2px dashed var(--primary, #6366f1);
    outline-offset: -4px;
    transition: outline-color 0.15s ease;
}
