.image-compose-preview-bar {
  padding: 8px 12px 0;
  background: var(--bg-light, #f8fafc);
  border-top: 1px solid var(--border, #e2e8f0);
}

.image-compose-preview-bar[hidden] {
  display: none !important;
}

.image-compose-preview-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--bg-white, #fff);
  border: 1px solid var(--border, #e2e8f0);
  max-width: 100%;
}

.image-compose-preview-cancel {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-compose-preview-cancel:hover {
  background: rgba(15, 23, 42, 0.88);
}

.image-compose-preview-thumb-wrap {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-light, #f1f5f9);
}

.image-compose-preview-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-compose-preview-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 24px;
}

.image-compose-preview-hint {
  font-size: 12px;
  color: var(--text-muted, #64748b);
  line-height: 1.35;
}

@media (max-width: 640px) {
  .image-compose-preview-card {
    flex-wrap: wrap;
  }

  .image-compose-preview-meta {
    width: 100%;
    padding-right: 0;
  }
}

body.theme-dark .image-compose-preview-bar {
  background: var(--bg-light, #1e293b);
}

body.theme-dark .image-compose-preview-card {
  background: var(--bg-white, #0f172a);
  border-color: var(--border, #334155);
}
