/* ════════════════════════════════════════════════════════════════════════
   bo-consent.css — "Consentimiento informado" (mirror of iOS ConsentView).
   Consent text + accept + signature pad → A4 PDF → private `consents` bucket
   (<uid>/<bookingId>.pdf). Tokens only (DESIGN.md).
   ════════════════════════════════════════════════════════════════════════ */

.bo-cs-overlay { position: fixed; inset: 0; z-index: 1000; display: none; align-items: flex-start; justify-content: center; background: rgba(0,0,0,0.66); backdrop-filter: blur(4px); padding: 24px 16px; overflow-y: auto; }
.bo-cs-overlay.open { display: flex; }
.bo-cs-modal { width: 100%; max-width: 520px; margin: auto; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-lg, 24px); box-shadow: 0 25px 50px -12px rgba(0,0,0,0.7); overflow: hidden; }
.bo-cs-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border-color); position: sticky; top: 0; background: var(--bg-secondary); z-index: 2; }
.bo-cs-head h3 { font-size: 18px; font-weight: 800; }
.bo-cs-head .x { background: none; border: none; color: var(--text-secondary); font-size: 18px; cursor: pointer; }
.bo-cs-body { padding: 20px; display: grid; gap: 16px; }

.bo-cs-doc { font-size: 13px; line-height: 1.5; color: var(--text-secondary); background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: 12px; padding: 14px; max-height: 220px; overflow-y: auto; }
.bo-cs-doc b { color: var(--text-primary); }

.bo-cs-accept { display: flex; gap: 11px; align-items: flex-start; cursor: pointer; }
.bo-cs-accept input { appearance: none; flex: 0 0 auto; width: 24px; height: 24px; border: 1.5px solid var(--text-muted); border-radius: 7px; background: var(--bg-card); cursor: pointer; position: relative; margin-top: 1px; }
.bo-cs-accept input:checked { background: var(--crimson); border-color: var(--crimson); }
.bo-cs-accept input:checked::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 800; }
.bo-cs-accept span { font-size: 13.5px; font-weight: 500; color: var(--text-primary); line-height: 1.4; }

.bo-cs-siglabel { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--text-secondary); }
.bo-cs-clear { background: none; border: none; cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.bo-cs-clear:hover { color: var(--text-primary); }
.bo-cs-pad { width: 100%; height: 180px; background: #fff; border: 1px solid var(--border-color); border-radius: 12px; touch-action: none; cursor: crosshair; display: block; }

.bo-cs-err { font-size: 13px; color: var(--danger); font-weight: 600; }

.bo-cs-save { width: 100%; font-family: inherit; font-size: 15px; font-weight: 800; cursor: pointer; color: #fff; background: var(--crimson); border: none; border-radius: 12px; padding: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.bo-cs-save:hover { background: #b53333; }
.bo-cs-save:disabled { opacity: 0.5; cursor: default; }
.bo-cs-save .spin { width: 16px; height: 16px; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: bo-cs-sp .7s linear infinite; display: none; }
.bo-cs-save.loading .spin { display: inline-block; }
@keyframes bo-cs-sp { to { transform: rotate(360deg); } }
