/* Identity evidence capture blocks (Ghana Card front, back and liveness selfie).
   Two upload routes are always offered: the normal file picker, which on a
   phone also exposes the camera and the photo library, and a direct camera
   button for devices with no file browser. */

.id-capture {
  border: 1px solid #dfe6ee;
  border-radius: 12px;
  background: #fbfdff;
  padding: 14px;
  margin-bottom: 14px;
}

.id-capture-inner { display: block; }

.id-capture-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.id-capture-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #22313f;
  letter-spacing: .1px;
}

.id-capture-state {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eaf3ec;
  color: #1f7a44;
  border: 1px solid #c6e5d2;
  white-space: nowrap;
}

.id-capture-state.is-empty {
  background: #fdf3e0;
  color: #a8690d;
  border-color: #f0dfae;
}

.id-capture-state.is-bad {
  background: #fdecea;
  color: #b3261e;
  border-color: #f3c0b9;
}

.id-capture-help {
  font-size: 12px;
  color: #66788a;
  margin: 0 0 10px;
  line-height: 1.5;
}

.id-capture-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.id-capture-actions .ac-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  padding: 8px 13px;
}

.id-capture-actions .ac-btn:disabled {
  opacity: .55;
  cursor: progress;
}

.id-capture-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.id-capture-preview img {
  width: 128px;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #d6dee7;
  background: #eef2f6;
  display: block;
}

.id-capture-preview-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.id-capture-msg {
  font-size: 12px;
  margin: 8px 0 0;
  line-height: 1.5;
  min-height: 1px;
}

.id-capture-msg.is-ok { color: #1f7a44; }
.id-capture-msg.is-error { color: #b3261e; }
.id-capture-msg.is-warn { color: #a8690d; }

/* Face check result panel */
.face-check {
  border-radius: 12px;
  border: 1px solid #dfe6ee;
  padding: 14px;
  margin: 4px 0 16px;
  background: #f8fafc;
}

.face-check-head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 13.5px;
  color: #22313f;
  margin-bottom: 4px;
}

.face-check-head svg { flex: 0 0 auto; }

.face-check p {
  font-size: 12.5px;
  line-height: 1.55;
  color: #55677d;
  margin: 0;
}

.face-check.is-matched { background: #f1faf4; border-color: #c6e5d2; }
.face-check.is-matched .face-check-head { color: #1f7a44; }

/* A difference is a screening note for staff, not a rejection, so it uses the
   same non-blocking amber treatment as an unreadable portrait. */
.face-check.is-mismatch { background: #fdf8ef; border-color: #f0dfae; }
.face-check.is-mismatch .face-check-head { color: #a8690d; }

.face-check.is-unverified { background: #fdf8ef; border-color: #f0dfae; }
.face-check.is-unverified .face-check-head { color: #a8690d; }

.face-check-busy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #55677d;
}

.face-check-review {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #d7dee6;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: #55677d;
}

.face-check-review input { margin-top: 2px; }

@media (max-width: 560px) {
  .id-capture-actions .ac-btn { flex: 1 1 100%; justify-content: center; }
  .id-capture-preview img { width: 100%; height: 150px; }
}
