/**
 * Chat-uitbreidingen (fase 16): emoji-venster, bijlage-kaartjes en de weergave
 * van meegestuurde bestanden in de gespreksballonnen. Bewust rustig en
 * herkenbaar, met flinke tikvlakken voor de telefoon.
 */

.gichat-veld { position: relative; }

/* De knoppenrij onder het berichtveld (emoji, paperclip). */
.gichat-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 2px;
}

.gichat-knop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  font-size: 22px;
  line-height: 1;
  background: #f2f7f7;
  border: 1px solid #d7e3e3;
  border-radius: 12px;
  cursor: pointer;
  color: #112524;
}
.gichat-knop:hover { background: #e6f1f1; }
.gichat-knop:focus-visible { outline: 3px solid #53C4C8; outline-offset: 2px; }

/* Het emoji-venster: een klein zwevend paneel bij de knop. */
.gichat-emojipaneel {
  position: absolute;
  left: 0;
  bottom: 52px;
  z-index: 30;
  width: min(320px, 92vw);
  background: #fff;
  border: 1px solid #d7e3e3;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(17, 37, 36, 0.18);
  padding: 10px 10px 8px;
}
.gichat-emojipaneel[hidden] { display: none; }

.gichat-emojisluit {
  position: absolute;
  top: 4px;
  right: 6px;
  width: 32px;
  height: 32px;
  font-size: 22px;
  line-height: 1;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  color: #4a5a59;
}
.gichat-emojisluit:hover { background: #f2f7f7; }
.gichat-emojisluit:focus-visible { outline: 3px solid #53C4C8; outline-offset: 1px; }

.gichat-emojirooster {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
  margin-top: 22px;
}
.gichat-emoji {
  min-width: 34px;
  height: 38px;
  font-size: 22px;
  line-height: 1;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
.gichat-emoji:hover { background: #eef6f6; }
.gichat-emoji:focus-visible { outline: 3px solid #53C4C8; outline-offset: 1px; }

/* De verborgen bestandskiezer (de paperclip-knop bedient hem). */
.gichat-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Kaartjes met de gekozen bestanden, boven het berichtveld, voor het versturen. */
.gichat-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 8px;
}
.gichat-previews:empty { display: none; }
.gichat-preview {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 8px 10px;
  background: #f2f7f7;
  border: 1px solid #d7e3e3;
  border-radius: 12px;
  font-size: 14px;
  color: #112524;
}
.gichat-preview__naam {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.gichat-preview__meta { color: #4a5a59; }
.gichat-preview__weg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 20px;
  line-height: 1;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  color: #4a5a59;
}
.gichat-preview__weg:hover { background: #e2ecec; color: #112524; }
.gichat-preview__weg:focus-visible { outline: 3px solid #53C4C8; outline-offset: 1px; }

/* Rustige privacyregel onder het berichtveld van de hulpzoeker. */
.gichat-privacy {
  margin: 6px 0 0;
  font-size: 13px;
  color: #4a5a59;
}

/* ---------- Bijlagen zoals ze in de gespreksballonnen verschijnen ---------- */

.giw-bijlagen {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.giw-bijlage { max-width: 100%; }

/* Afbeelding: een kleine miniatuur met de naam eronder. */
.giw-bijlage--beeld {
  display: inline-block;
  text-decoration: none;
  color: inherit;
  max-width: 200px;
}
.giw-bijlage--beeld img {
  display: block;
  max-width: 200px;
  max-height: 200px;
  width: auto;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(17, 37, 36, 0.12);
}
.giw-bijlage--beeld .giw-bijlage__naam {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Ander bestand (PDF, HEIC): een kaartje met naam, type en een openknop. */
.giw-bijlage--bestand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(17, 37, 36, 0.14);
  border-radius: 12px;
}
.giw-bijlage__pictogram { font-size: 22px; line-height: 1; }
.giw-bijlage__info { display: flex; flex-direction: column; min-width: 0; }
.giw-bijlage--bestand .giw-bijlage__naam {
  font-weight: 600;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.giw-bijlage__meta { font-size: 12px; color: #4a5a59; }
.giw-bijlage__download {
  align-self: center;
  padding: 6px 12px;
  background: #53C4C8;
  color: #112524;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  font-size: 13px;
}
.giw-bijlage__download:hover { background: #45b3b7; }
.giw-bijlage__download:focus-visible { outline: 3px solid #112524; outline-offset: 2px; }

/* Fase 32: uitleg onder een gemaskeerd bericht. */
.giw-masker-note { font-size: .82rem; color: #6b807e; margin: 4px 0 0; }
