/* photo-preview.css — Chat image upload preview overlay (.photo-preview-*) */

.photo-preview-overlay {
  position: fixed; inset: 0; z-index: 2500;
  background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s ease;
  touch-action: none;
}
.photo-preview-overlay--visible { opacity: 1; }

.photo-preview-card {
  background: #1e1e2e;
  border-radius: 16px;
  overflow: hidden;
  width: min(88vw, 340px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  transform: translateY(12px);
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1);
}
.photo-preview-overlay--visible .photo-preview-card { transform: translateY(0); }

.photo-preview-img-wrap {
  width: 100%; background: #111;
  display: flex; align-items: center; justify-content: center;
  max-height: 55vh; overflow: hidden;
}
.photo-preview-img {
  max-width: 100%; max-height: 55vh;
  object-fit: contain; display: block;
}

.photo-preview-actions {
  display: flex; gap: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.photo-preview-btn {
  flex: 1; padding: 15px 0;
  font-size: 15px; font-weight: 500;
  border: none; cursor: pointer;
  background: transparent; transition: background 0.15s;
}
.photo-preview-cancel { color: #aaa; }
.photo-preview-cancel:active { background: rgba(255,255,255,0.05); }

.photo-preview-send { color: #0a84ff; border-left: 1px solid rgba(255,255,255,0.08); font-weight: 600; }
.photo-preview-send:active { background: rgba(10,132,255,0.18); }

.photo-preview-size-hint {
  display: block;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  padding: 6px 16px 0;
  letter-spacing: 0.2px;
}
