/* Warrix E-Sign Overlay — hide Signature & Full Name sections on signing page */

/* NOTE: SIGNATURE field type in the document body must remain visible (yellow placeholders).
   The Signature INPUT section (Upload/Draw/Type) in the side panel is hidden by warrix-custom.js. */

/* Hide signature pad and full-name input in the signing side panel */
.warrix-hide {
  display: none !important;
}

/* FOUC rules removed — form.tsx now renders Warrix buttons natively in the panel.
   No need to hide bg-widget children since the native Sign Document form is replaced. */

/* ── Disable signature field clicks on signing pages ──
   Signers must use the อนุมัติเอกสาร button — not click fields to manually sign.
   .field-card-container is the base class on ALL field Card elements (field.tsx). */
.warrix-signing .field-card-container {
  pointer-events: none !important;
  cursor: default !important;
}

/* ── Fix email/name field overlap on Add Signers step ── */
.warrix-email-error {
  position: relative;
  z-index: 1;
}

/* Ensure signer row inputs don't overflow/overlap */
input[type="email"], input[name*="email"], input[placeholder*="Email"] {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* ── Hide navbar on signing pages (/sign/{token}) ── */
/* The server-wrapper.js proxy adds .warrix-signing to <html> on /sign/ pages */
.warrix-signing header {
  display: none !important;
}
/* Remove the top margin that was for the header */
.warrix-signing main {
  margin-top: 0 !important;
  padding-top: 1rem !important;
}
