/* Proof-of-Delivery capture modals — camera + signature pad. */

.rspod-modal {
  position: fixed; inset: 0; z-index: 1000;
  background: #000;
  display: flex; align-items: stretch; justify-content: center;
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0)
           env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}
.rspod-stage {
  position: relative;
  width: 100%; max-width: 700px;
  display: flex; align-items: center; justify-content: center;
}
.rspod-video {
  width: 100%; height: 100%;
  object-fit: cover;
  background: #000;
}
.rspod-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: env(safe-area-inset-top, 16px) 16px env(safe-area-inset-bottom, 16px) 16px;
  pointer-events: none;
}
.rspod-overlay > * { pointer-events: auto; }
.rspod-label {
  align-self: center;
  background: rgba(0,0,0,0.55);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
}
.rspod-spacer { flex: 1; }
.rspod-actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
}
.rspod-btn {
  background: rgba(255,255,255,0.9);
  color: #0B0F14;
  border: 0; border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px; font-weight: 600;
  min-height: 48px; min-width: 48px;
  cursor: pointer;
}
.rspod-btn--ghost { background: rgba(255,255,255,0.18); color: #fff; }
.rspod-btn--primary { background: #2D4BFF; color: #fff; padding: 10px 22px; }
.rspod-shutter {
  width: 78px; height: 78px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.35), inset 0 0 0 4px rgba(0,0,0,0.05);
  padding: 0;
}
.rspod-shutter:active { transform: scale(0.94); }

/* Signature pad */
.rspod-modal--sig {
  background: #f3f6fa;
  align-items: center;
  padding: 16px;
}
.rspod-sig-stage {
  width: 100%; max-width: 700px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  display: flex; flex-direction: column;
  padding: 18px;
  gap: 12px;
}
.rspod-sig-head { text-align: center; }
.rspod-sig-label { font-size: 16px; font-weight: 700; }
.rspod-sig-hint { font-size: 12px; color: var(--text-muted, #5b6470); margin-top: 2px; }
.rspod-sig-canvas {
  display: block;
  width: 100%; height: 240px;
  background: #fbfcfd;
  border: 1px solid var(--border, #d3d8de);
  border-radius: 10px;
  touch-action: none;     /* prevent scroll-during-draw on touch devices */
  cursor: crosshair;
}
.rspod-sig-baseline {
  height: 0; margin-top: -34px; margin-bottom: 18px;
  border-bottom: 1px dashed #c6cdd6;
  pointer-events: none;
}
.rspod-modal--sig .rspod-actions {
  padding: 0;
  justify-content: flex-end;
}
.rspod-modal--sig .rspod-btn { color: #0B0F14; background: var(--surface-2, #eef1f4); }
.rspod-modal--sig .rspod-btn--primary { color: #fff; background: #2D4BFF; }
