/**
 * Doc-Ver Plugin — Frontend CSS
 * My Account verification page + badge + verification modal
 *
 * All values match The Slow Draw brand (docs/BRAND.md).
 * Layout context: plugin content renders inside .sd-content-box
 *   Desktop: padding 40px, border-radius 12px, white bg
 *   Mobile:  padding 20px, border-radius 8px
 *
 * NOTE: WooCommerce and the theme apply global button/input styles.
 * Every interactive element inside .dv-modal__panel and .dv-page is
 * preceded by a scoped reset so theme styles cannot bleed in.
 *
 * @package DocVer
 * @since   0.1.0
 */

/* ── CSS Custom Properties ─────────────────────────────────────── */
:root {
  --dv-gold:        #9b6b28;
  --dv-gold-light:  #c9a45a;
  --dv-gold-dark:   #7a4f1c;
  --dv-gold-bg:     rgba(155,107,40,0.06);
  --dv-gold-border: rgba(155,107,40,0.18);

  --dv-text-primary:  #1a1a1a;
  --dv-text-body:     #334155;
  --dv-text-muted:    #64748b;
  --dv-text-label:    #94a3b8;

  --dv-surface:       #ffffff;
  --dv-surface-warm:  #fcfaf7;

  --dv-border:        #eeeeee;
  --dv-border-input:  #dbe3ec;

  --dv-radius-card:   16px;
  --dv-radius-btn:    999px;
  --dv-radius-input:  10px;

  --dv-shadow-card:   0 2px 12px rgba(15,23,42,0.04), 0 1px 3px rgba(15,23,42,0.03);
  --dv-shadow-gold:   0 6px 20px rgba(155,107,40,0.30), inset 0 1px 0 rgba(255,255,255,0.12);
  --dv-shadow-modal:  0 32px 80px rgba(15,23,42,0.24), 0 8px 24px rgba(0,0,0,0.10);

  --dv-transition:    0.22s ease;
  --dv-focus-ring:    0 0 0 3px rgba(155,107,40,0.18);
}

/* ══ SCOPED RESET — overrides WooCommerce + theme button/input styles ══
   Applied inside both .dv-page and .dv-modal__panel so no theme rule
   can bleed in and break our layouts.
═══════════════════════════════════════════════════════════════════════ */

.dv-page button,
.dv-page input,
.dv-page select,
.dv-page textarea,
.dv-modal__panel button,
.dv-modal__panel input,
.dv-modal__panel select,
.dv-modal__panel textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* Button base reset — WooCommerce sets display:block, background:#1a1a1a, etc. */
.dv-page button:not(.dv-btn):not(.dv-modal__close):not(.dv-modal__back):not(.dv-modal__back),
.dv-modal__panel button:not(.dv-btn):not(.dv-modal__close):not(.dv-modal__back) {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: inherit;
  font-size: inherit;
  box-shadow: none;
  border-radius: 0;
  text-transform: none;
  letter-spacing: normal;
  width: auto;
  display: inline;
}


/* ── Page wrapper ──────────────────────────────────────────────── */
.dv-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ══ CARDS ═════════════════════════════════════════════════════════ */

.dv-card {
  border: 1px solid var(--dv-border);
  border-radius: var(--dv-radius-card);
  padding: clamp(20px, 3vw, 28px);
  background: var(--dv-surface);
  box-shadow: var(--dv-shadow-card);
}

/* ── Verified card ─────────────────────────────────────────────── */
.dv-card--verified {
  border-color: var(--dv-gold-border);
  background: linear-gradient(160deg, #fffef8 0%, #fcfaf3 100%);
}

.dv-verified-hero {
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 2vw, 20px);
}

.dv-verified-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--dv-gold-bg);
  border: 1px solid var(--dv-gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dv-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dv-gold);
  background: var(--dv-gold-bg);
  border: 1px solid var(--dv-gold-border);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.dv-verified-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 800;
  color: var(--dv-text-primary);
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.dv-verified-desc {
  font-size: clamp(13px, 1vw, 15px);
  color: var(--dv-text-body);
  line-height: 1.65;
  margin: 0;
}

.dv-verified-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--dv-gold-border);
}

.dv-verified-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--dv-text-muted);
}

.dv-verified-meta-item svg { flex-shrink: 0; color: var(--dv-gold); opacity: 0.75; }
.dv-verified-meta-item--provider { color: var(--dv-text-label); font-size: 11px; }

/* ── Status cards (processing / review / error) ─────────────────── */
.dv-card--processing,
.dv-card--review,
.dv-card--error {
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 2vw, 20px);
}

.dv-card--processing { border-left: 3px solid rgba(155,107,40,0.5); }
.dv-card--review     { border-left: 3px solid #3b82f6; }
.dv-card--error      { border-left: 3px solid #ef4444; }

.dv-status-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dv-status-icon--spin svg { animation: dvSpin 1.6s linear infinite; }

@keyframes dvSpin { to { transform: rotate(360deg); } }

.dv-status-copy { flex: 1; min-width: 0; }

.dv-status-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.dv-status-badge--review {
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.20);
  color: #1d4ed8;
}

.dv-status-badge--error {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.18);
  color: #991b1b;
}

.dv-status-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 700;
  color: var(--dv-text-primary);
  margin: 0 0 6px;
}

.dv-status-desc {
  font-size: clamp(13px, 1vw, 14px);
  color: var(--dv-text-body);
  line-height: 1.65;
  margin: 0 0 12px;
}

.dv-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dv-tips {
  margin: 12px 0 0;
  padding-left: 16px;
  font-size: 13px;
  color: var(--dv-text-muted);
  line-height: 1.7;
}

.dv-rejection-reason {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #991b1b;
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.14);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 8px 0 0;
  line-height: 1.6;
}
.dv-rejection-reason svg { flex-shrink: 0; margin-top: 1px; color: #ef4444; }
.dv-rejection-reason p   { margin: 0; }

/* ══ UPLOAD CARD ═══════════════════════════════════════════════════ */

.dv-upload-card {
  border: 1px solid var(--dv-border);
  border-radius: var(--dv-radius-card);
  padding: clamp(22px, 3vw, 32px);
  background: var(--dv-surface);
  box-shadow: var(--dv-shadow-card);
}

/* Intro hero — same treatment as the dashboard modal's step 1, so the
   standalone /id-verification/ page and the popup read as one product. */
.dv-hero-intro {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--dv-border);
}

.dv-upload-header { margin-bottom: 22px; }

.dv-upload-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 800;
  color: var(--dv-text-primary);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.dv-upload-desc {
  font-size: clamp(13px, 1vw, 14px);
  color: var(--dv-text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ══ FORM ELEMENTS ═════════════════════════════════════════════════ */

.dv-field-group { margin-bottom: clamp(16px, 1.8vw, 20px); }

.dv-label {
  display: block !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
  color: var(--dv-text-label) !important;
  margin-bottom: 12px !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
}

.dv-required { color: var(--dv-gold); margin-left: 2px; }

/* Select — scoped reset first, then style */
.dv-select-wrap { position: relative; }

.dv-select {
  display: block !important;
  width: 100% !important;
  min-height: 48px !important;
  padding: 0 40px 0 14px !important;
  border: 1px solid var(--dv-border-input) !important;
  border-radius: var(--dv-radius-input) !important;
  background-color: var(--dv-surface) !important;
  background-image: none !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 16px !important; /* ≥16px — prevents Safari iOS auto-zoom on select open */
  font-weight: 500 !important;
  color: var(--dv-text-primary) !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  transition: border-color var(--dv-transition), box-shadow var(--dv-transition);
  cursor: pointer;
  box-shadow: none !important;
  outline: none;
  box-sizing: border-box;
}

.dv-select:focus {
  border-color: rgba(155,107,40,0.45) !important;
  box-shadow: var(--dv-focus-ring) !important;
  outline: none !important;
}

.dv-select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--dv-text-label);
}

/* Document Number Input */
.dv-id-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.dv-id-input-icon {
  position: absolute;
  left: 14px;
  color: var(--dv-text-label);
  pointer-events: none;
  flex-shrink: 0;
}

.dv-id-input {
  display: block !important;
  width: 100% !important;
  min-height: 50px !important;
  padding: 0 16px 0 42px !important;
  border: 1px solid var(--dv-border-input) !important;
  border-radius: var(--dv-radius-input) !important;
  background: var(--dv-surface) !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 16px !important; /* ≥16px — prevents Safari iOS auto-zoom (was 15px) */
  font-weight: 500 !important;
  color: var(--dv-text-primary) !important;
  letter-spacing: 0.06em;
  text-transform: uppercase !important;
  transition: border-color var(--dv-transition), box-shadow var(--dv-transition);
  box-shadow: none !important;
  outline: none;
  box-sizing: border-box !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

.dv-id-input:focus {
  border-color: rgba(155,107,40,0.5) !important;
  box-shadow: var(--dv-focus-ring) !important;
  outline: none !important;
}

.dv-id-input::placeholder {
  color: var(--dv-text-label) !important;
  font-weight: 400 !important;
  letter-spacing: normal;
  text-transform: none !important;
}

.dv-id-input-hint {
  font-size: 11px;
  color: var(--dv-text-label);
  margin: 6px 0 0;
  line-height: 1.5;
  min-height: 16px;
}

/* Privacy note */
.dv-privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--dv-text-muted);
  line-height: 1.6;
  margin: 0 0 clamp(14px, 1.8vw, 20px);
  padding: 11px 14px;
  background: var(--dv-gold-bg);
  border: 1px solid var(--dv-gold-border);
  border-radius: 10px;
}

.dv-privacy-note svg { flex-shrink: 0; margin-top: 1px; }
.dv-privacy-note--compact { padding: 9px 12px; font-size: 11px; }

/* ── Feedback (error/success/loading messages) ──────────────────── */
/* ══ FEEDBACK / API ERROR WARNING BOX ═════════════════════════════
   Shared by modal + My Account tab.
   Always shows the actual IDfy API error message, never a generic one.
   Each state has its own colour/icon via JS-injected .dv-feedback__icon.
═══════════════════════════════════════════════════════════════════ */

.dv-feedback {
  display: none;      /* hidden by default — JS removes [hidden] to show */
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border-left-width: 4px;
  border-left-style: solid;
  border-top: 1px solid transparent;
  border-right: 1px solid transparent;
  border-bottom: 1px solid transparent;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 16px;
  font-family: 'Poppins', sans-serif;
}

/* Show as flex when active */
.dv-feedback:not([hidden]) {
  display: flex;
}

/* Icon column — sized to the SVG */
.dv-feedback__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dv-feedback__icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* Message column */
.dv-feedback__msg {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Bold title line (for review/underage multi-line messages) */
.dv-feedback__title {
  display: block;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 2px;
}

/* Subdued note line (for underage extra hint) */
.dv-feedback__note {
  display: block;
  font-size: 11px;
  opacity: 0.75;
  margin-top: 4px;
}

/* ── Error (API failure, validation fail) ─────── */
.dv-feedback.is-error {
  background: rgba(239,68,68,0.07);
  border-left-color: #ef4444;
  border-color: rgba(239,68,68,0.20);
  border-left-color: #ef4444;
  color: #991b1b;
}

/* ── Success ──────────────────────────────────── */
.dv-feedback.is-success {
  background: rgba(16,185,129,0.07);
  border-left-color: #10b981;
  border-color: rgba(16,185,129,0.20);
  border-left-color: #10b981;
  color: #065f46;
}

/* ── Loading / checking ───────────────────────── */
.dv-feedback.is-loading {
  background: rgba(148,163,184,0.08);
  border-left-color: #94a3b8;
  border-color: rgba(148,163,184,0.18);
  border-left-color: #94a3b8;
  color: #475569;
}

.dv-feedback.is-loading .dv-feedback__icon svg {
  animation: dvSpin 1s linear infinite;
}

/* ── Under-review (under-21 sent to admin) ────── */
.dv-feedback.is-review {
  background: rgba(59,130,246,0.06);
  border-left-color: #3b82f6;
  border-color: rgba(59,130,246,0.20);
  border-left-color: #3b82f6;
  color: #1e40af;
}

/* ── Under-age warning ────────────────────────── */
.dv-feedback.is-underage {
  background: rgba(155,107,40,0.07);
  border-left-color: #9b6b28;
  border-color: rgba(155,107,40,0.22);
  border-left-color: #9b6b28;
  color: #7c4a00;
}

/* ══ BUTTONS — fully scoped to override WooCommerce + theme ════════
   WooCommerce sets: display:block, background:#1a1a1a, width:100%,
   border-radius:0 or 3px, padding:15px 30px, etc.
   We fight back with specificity + !important on layout properties.
═══════════════════════════════════════════════════════════════════ */

.dv-page .dv-btn,
.dv-modal__panel .dv-btn {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 0 28px !important;
  min-height: 52px !important;
  border-radius: var(--dv-radius-btn) !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  border: 1px solid transparent !important;
  transition: transform var(--dv-transition), box-shadow var(--dv-transition), background var(--dv-transition) !important;
  position: relative;
  overflow: hidden;
  text-decoration: none !important;
  line-height: 1 !important;
  vertical-align: middle;
  white-space: nowrap;
  box-sizing: border-box !important;
}

.dv-page .dv-btn--full,
.dv-modal__panel .dv-btn--full {
  width: 100% !important;
  display: flex !important;
}

.dv-page .dv-btn--sm,
.dv-modal__panel .dv-btn--sm {
  min-height: 40px !important;
  padding: 0 18px !important;
  font-size: 10px !important;
}

/* Primary gold CTA */
.dv-page .dv-btn--primary,
.dv-modal__panel .dv-btn--primary {
  background: linear-gradient(135deg, #8d5f24 0%, #c08a36 50%, #8d5f24 100%) !important;
  background-size: 200% 100% !important;
  color: #ffffff !important;
  border-color: var(--dv-gold-dark) !important;
  box-shadow: 0 6px 20px rgba(155,107,40,0.30), inset 0 1px 0 rgba(255,255,255,0.14) !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-position 0.5s ease !important;
  letter-spacing: 0.04em !important;
}

.dv-page .dv-btn--primary:hover:not(:disabled),
.dv-modal__panel .dv-btn--primary:hover:not(:disabled) {
  background-position: 100% 0 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 32px rgba(155,107,40,0.34), inset 0 1px 0 rgba(255,255,255,0.18) !important;
  color: #ffffff !important;
}

.dv-page .dv-btn--primary:disabled,
.dv-modal__panel .dv-btn--primary:disabled {
  opacity: 0.7 !important;
  cursor: wait !important;
  transform: none !important;
}

/* Ghost / outline button */
.dv-page .dv-btn--ghost,
.dv-modal__panel .dv-btn--ghost {
  background: transparent !important;
  color: var(--dv-text-muted) !important;
  border-color: var(--dv-border-input) !important;
  box-shadow: none !important;
}

.dv-page .dv-btn--ghost:hover,
.dv-modal__panel .dv-btn--ghost:hover {
  background: var(--dv-surface-warm) !important;
  color: var(--dv-text-body) !important;
  border-color: #c5ccd5 !important;
  transform: none !important;
}

/* Spinner */
.dv-btn__spinner {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px;
  border: 2px solid rgba(255,255,255,0.25) !important;
  border-top-color: #ffffff !important;
  border-radius: 50% !important;
  animation: dvSpin 0.72s linear infinite !important;
  background: none !important;
}

.dv-btn--ghost .dv-btn__spinner {
  border-color: rgba(100,116,139,0.25) !important;
  border-top-color: var(--dv-text-muted) !important;
}

/* ══ DOCUMENT UPLOAD ZONE ══════════════════════════════════════════ */

.dv-upload-zone {
  position: relative;
  border: 2px dashed var(--dv-border-input);
  border-radius: var(--dv-radius-input);
  background: var(--dv-surface-warm);
  cursor: pointer;
  transition: border-color var(--dv-transition), background var(--dv-transition);
  overflow: hidden;
  outline: none;
}

.dv-upload-zone:focus-visible {
  border-color: var(--dv-gold);
  box-shadow: var(--dv-focus-ring);
}

.dv-upload-zone:hover,
.dv-upload-zone.is-dragover {
  border-color: var(--dv-gold);
  background: rgba(155,107,40,0.04);
}

.dv-upload-zone.has-file {
  border-style: solid;
  border-color: rgba(16,185,129,0.45);
  background: rgba(16,185,129,0.04);
}

/* Hidden native file input — zone click triggers it */
.dv-upload-zone__input {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  cursor: pointer !important;
  z-index: 0;
}

/* Placeholder (shown when no file selected) */
.dv-upload-zone__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px 20px;
  text-align: center;
  pointer-events: none;
  color: var(--dv-text-muted);
}

.dv-upload-zone--compact .dv-upload-zone__placeholder {
  padding: 22px 16px;
}

.dv-upload-zone__label {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--dv-text-body);
}

.dv-upload-zone__sub {
  font-size: 11px;
  color: var(--dv-text-label);
}

/* File preview (shown when file selected) */
.dv-upload-zone__preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  color: var(--dv-text-body);
  pointer-events: none;
}

.dv-upload-zone__filename {
  flex: 1;
  min-width: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dv-upload-zone__clear {
  all: initial !important;
  font-family: 'Poppins', sans-serif !important;
  pointer-events: all !important;
  /* MUST sit above .dv-upload-zone__input. That input is
     `position:absolute; inset:0; z-index:0`, so it covers the entire zone —
     and a positioned element always paints above a static one. `all: initial`
     above reset this button's `position` back to `static` and nothing above
     re-declared it, which left the X painted *underneath* the invisible input:
     every click meant for the X landed on the input and re-opened the native
     file dialog instead of clearing the file. `pointer-events: all` alone
     cannot fix that — it makes the button hit-testable but does not lift it
     above the input. Lifting it here is what actually makes the clear button
     (and its clearFile() reset back to "Tap to take a photo or browse files")
     work. z-index:2 clears the input's z-index:0; the camera guide overlay is
     pointer-events:none, so it needs no coordination with this. */
  position: relative !important;
  z-index: 2 !important;
  cursor: pointer !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  background: rgba(100,116,139,0.12) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--dv-text-muted) !important;
  flex-shrink: 0;
  transition: background 0.2s ease !important;
  border: none !important;
  box-shadow: none !important;
}

.dv-upload-zone__clear:hover {
  background: rgba(239,68,68,0.12) !important;
  color: #ef4444 !important;
}

/* ── "Use Camera Instead" launcher ──────────────────────────────────
   Sits outside .dv-upload-zone (its own sibling) so it never falls under
   the zone's click-to-browse handler. Hidden automatically once a file
   is selected or the camera panel is open — see verification.js. */
/* !important throughout: the scoped button reset above
   (".dv-modal__panel button:not(.dv-btn)...") outranks a plain
   .dv-camera-launch selector on specificity alone and would otherwise
   collapse this back to display:inline, width:auto, no border/padding. */
.dv-camera-launch {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: 100% !important;
  /* Room for the "or" divider drawn by ::before/::after below. The divider is
     positioned outside this box (negative offsets), so the extra top margin is
     what keeps it from colliding with the upload zone above. */
  margin-top: 26px !important;
  /* Anchors the two divider pseudo-elements. */
  position: relative !important;
  padding: 9px 12px !important;
  background: transparent !important;
  border: 1px dashed var(--dv-border-input) !important;
  border-radius: var(--dv-radius-input) !important;
  color: var(--dv-text-muted) !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: border-color var(--dv-transition), color var(--dv-transition), background var(--dv-transition) !important;
}

.dv-camera-launch:hover {
  border-color: var(--dv-gold) !important;
  color: var(--dv-gold-dark) !important;
  background: rgba(155,107,40,0.04) !important;
}

.dv-camera-launch:focus-visible {
  outline: none !important;
  border-color: var(--dv-gold) !important;
  box-shadow: var(--dv-focus-ring) !important;
}

.dv-camera-launch svg { flex-shrink: 0; }

/* ── Desktop "or" divider ────────────────────────────────────────────
   Drawn entirely in CSS on the launch button's own pseudo-elements.
   Deliberately NOT a DOM element: verification.js:733 locates this button
   with $zone.next( '[data-dv-camera-trigger]' ), which returns only the
   IMMEDIATE next sibling. Inserting a real divider node between the upload
   zone and this button would make that lookup return the divider instead,
   cameraSupported would go false, and the camera would silently die on
   desktop. Keeping it in CSS also means no JS change at all.

   Visibility is automatic and exactly in lockstep with the button itself:
   verification.js toggles the `hidden` attribute, and [hidden] resolves to
   display:none, which suppresses pseudo-elements too. So the divider can
   never appear on mobile, and can never appear when the button is hidden
   because a file is already selected or the camera panel is open. */
.dv-camera-launch::before {
  content: 'or';
  position: absolute !important;
  top: -18px;
  left: 0;
  right: 0;
  display: block !important;
  text-align: center;
  font-family: 'Poppins', sans-serif !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--dv-text-muted) !important;
  opacity: 0.75;
}

/* Hairline with a gap in the middle so the word "or" sits inside it.
   Gradient rather than two borders + a spacer, which would need a real
   element and re-introduce the DOM-node problem above. */
.dv-camera-launch::after {
  content: '';
  position: absolute !important;
  top: -21px;
  left: 4%;
  right: 4%;
  height: 1px;
  background: linear-gradient(
    to right,
    var(--dv-border-input) 0%,
    var(--dv-border-input) 40%,
    transparent 40%,
    transparent 60%,
    var(--dv-border-input) 60%,
    var(--dv-border-input) 100%
  );
}

.dv-camera-launch[hidden] { display: none !important; }

/* ── Live camera capture panel ──────────────────────────────────────
   Fills the same .dv-upload-zone box as the placeholder/preview states. */
.dv-upload-zone__camera {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #0d0d0d;
  border-radius: calc(var(--dv-radius-input) - 2px);
  overflow: hidden;
}

/* Author-stylesheet rules beat the UA default "[hidden]{display:none}" at
   equal specificity, so without this the panel would render even while its
   `hidden` attribute is set (before JS ever opens it, or after it's closed). */
.dv-upload-zone__camera[hidden] { display: none !important; }

.dv-upload-zone.is-camera-active {
  border-style: solid;
  border-color: rgba(15,23,42,0.08);
  cursor: default;
}

.dv-upload-zone__camera-video {
  display: block;
  width: 100%;
  max-height: 320px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #0d0d0d;
}

/* Mirrors the live preview for front-facing (desktop/laptop, selfie-style)
   cameras only — the natural "looking in a mirror" feel. Never applied to
   the actual captured photo; see the capture handler in verification.js. */
.dv-upload-zone__camera-video.is-mirrored {
  transform: scaleX(-1);
}

/* ── Four-corner document guide (desktop/laptop camera panel only) ──────
   Purely visual — an absolutely positioned, non-interactive overlay sibling
   of the <video> element. It is never drawn onto the capture canvas (the
   capture handler in verification.js reads pixels from the <video> element
   directly, not a screenshot of this DOM), so it can never appear in the
   uploaded/verified document image. pointer-events:none keeps every click
   (capture / cancel / switch) reaching the existing controls underneath. */
.dv-camera-guide-overlay {
  position: absolute;
  top: 10%;
  left: 8%;
  right: 8%;
  bottom: 22%;
  pointer-events: none;
  z-index: 1;
}

.dv-camera-guide-overlay__corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 2.5px solid rgba(255,255,255,0.85);
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.45));
}

.dv-camera-guide-overlay__corner--tl {
  top: 0; left: 0;
  border-right: none;
  border-bottom: none;
  border-top-left-radius: 6px;
}
.dv-camera-guide-overlay__corner--tr {
  top: 0; right: 0;
  border-left: none;
  border-bottom: none;
  border-top-right-radius: 6px;
}
.dv-camera-guide-overlay__corner--bl {
  bottom: 0; left: 0;
  border-right: none;
  border-top: none;
  border-bottom-left-radius: 6px;
}
.dv-camera-guide-overlay__corner--br {
  bottom: 0; right: 0;
  border-left: none;
  border-top: none;
  border-bottom-right-radius: 6px;
}

.dv-upload-zone__camera-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 14px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0));
}

.dv-camera-ctrl {
  all: initial !important;
  font-family: 'Poppins', sans-serif !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  border-radius: 50% !important;
  border: none !important;
  box-shadow: none !important;
  transition: opacity 0.2s ease, transform 0.15s ease !important;
}

.dv-camera-ctrl:hover { opacity: 0.85 !important; }
.dv-camera-ctrl:active { transform: scale(0.94) !important; }
.dv-camera-ctrl[hidden] { display: none !important; }

.dv-camera-ctrl--cancel,
.dv-camera-ctrl--switch {
  width: 34px !important;
  height: 34px !important;
  background: rgba(255,255,255,0.16) !important;
  color: #fff !important;
}

.dv-camera-ctrl--capture {
  width: 56px !important;
  height: 56px !important;
  background: #fff !important;
  border: 3px solid rgba(255,255,255,0.5) !important;
  padding: 3px !important;
}

.dv-camera-ctrl--capture__ring {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--dv-gold);
}

.dv-upload-zone__camera-error {
  margin: 0;
  padding: 8px 14px;
  font-size: 11px;
  line-height: 1.4;
  color: #fca5a5;
  background: rgba(239,68,68,0.14);
  text-align: center;
}

.dv-upload-zone__camera-error[hidden] { display: none !important; }

/* ══ AGE VERIFIED WIDGET ════════════════════════════════════════════
   Modern status card shown on My Account dashboard.
   On desktop it floats to the top-right of the content area.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Badge wrapper — right-aligned at the top of the dashboard hook area */
.docver-av-widget {
  display: flex;
  justify-content: flex-end;   /* anchors to top-right, no float drift */
  margin: 0 0 20px 0;
  font-family: 'Poppins', sans-serif;
}

/* Mobile: stretch the badge to full content width */
@media (max-width: 768px) {
  .docver-av-widget {
    justify-content: stretch;
    margin: 0 0 16px 0;
  }
  .docver-av-card {
    width: 100% !important;
    min-width: 0 !important;
    flex: 1;
  }
}

/* Card base */
.docver-av-card {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid transparent;
  min-width: 220px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.docver-av-card:hover {
  transform: translateY(-1px);
}

/* ── State: Verified — brand gold-tinted premium card ── */
.docver-av-card--yes {
  background: linear-gradient(135deg, #fffef9 0%, #fdf8ef 100%);
  border-color: rgba(155, 107, 40, 0.20);
  box-shadow: 0 4px 18px rgba(155, 107, 40, 0.10), 0 1px 4px rgba(155, 107, 40, 0.06);
}
.docver-av-card--yes:hover {
  box-shadow: 0 6px 24px rgba(155, 107, 40, 0.16), 0 2px 6px rgba(155, 107, 40, 0.08);
}
/* Icon container matches brand gold for verified state */
.docver-av-card--yes .docver-av-icon {
  background: linear-gradient(135deg, rgba(212,175,111,0.18) 0%, rgba(155,107,40,0.10) 100%) !important;
  border: 1px solid rgba(155,107,40,0.20);
}

/* ── State: Pending / Under Review ── */
.docver-av-card--pending {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: rgba(245,158,11,0.22);
  box-shadow: 0 2px 16px rgba(245,158,11,0.08);
}

/* ── State: Not verified / Failed ── */
.docver-av-card--no {
  background: #fafafa;
  border-color: rgba(148,163,184,0.22);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

/* Shield icon container */
.docver-av-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.docver-av-card--yes     .docver-av-icon { background: rgba(155,107,40,0.10); }
.docver-av-card--pending .docver-av-icon { background: rgba(245,158,11,0.10); }
.docver-av-card--no      .docver-av-icon { background: rgba(148,163,184,0.10); }

/* Content block */
.docver-av-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* "Age Verified" label */
.docver-av-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #94a3b8;
  line-height: 1;
}

/* Status row: icon + "Yes" / "No" + dot + "Age 26" */
.docver-av-status-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 1px;
}
.docver-av-status-text {
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}
.docver-av-status--green { color: #9b6b28; } /* brand gold for verified */
.docver-av-status--amber { color: #d97706; }
.docver-av-status--red   { color: #dc2626; }
.docver-av-status--grey  { color: #64748b; }

.docver-av-divider {
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1;
}
.docver-av-age {
  font-size: 13px;
  font-weight: 600;
  color: var(--dv-gold);
  line-height: 1;
}

/* Detail row: doc type · date */
.docver-av-detail {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #64748b;
  line-height: 1;
  margin-top: 1px;
}
.docver-av-detail--amber { color: #b45309; }
.docver-av-detail-sep    { color: #cbd5e1; }

/* CTA link (not verified) */
.docver-av-cta {
  margin-top: 2px;
}
.docver-av-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--dv-gold) !important;
  text-decoration: none !important;
  transition: gap 0.15s ease;
}
.docver-av-cta-link:hover {
  gap: 7px;
  color: var(--dv-gold-dark) !important;
}

/* ── Sidebar nav: VERIFIED item — blends with other nav items ───────────────
   Only difference from other items: a small static green dot on the left.
   All other styles (font, color, padding, chevron) are left as-is so the
   item looks identical to Dashboard / Orders / etc.                         */

/* Li wrapper — NO special background, just like every other nav item */
li.docver-nav-verified,
.woocommerce-MyAccount-navigation li.docver-nav-verified,
nav.woocommerce-MyAccount-navigation li.docver-nav-verified {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  overflow: visible !important;
}

/* Anchor — inherit theme styles; only add gap for the dot */
li.docver-nav-verified a,
.woocommerce-MyAccount-navigation li.docver-nav-verified a,
nav.woocommerce-MyAccount-navigation li.docver-nav-verified a {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  /* Inherit everything else from the theme's nav link styles */
  color: inherit !important;
  font-weight: inherit !important;
  font-size: inherit !important;
  text-transform: inherit !important;
  letter-spacing: inherit !important;
  padding: inherit !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
li.docver-nav-verified a:hover,
.woocommerce-MyAccount-navigation li.docver-nav-verified a:hover {
  background: transparent !important;
  color: inherit !important;
}

/* Small static gold dot — the only visual difference */
li.docver-nav-verified a::before,
.woocommerce-MyAccount-navigation li.docver-nav-verified a::before {
  content: '' !important;
  display: inline-block !important;
  width: 7px !important;
  height: 7px !important;
  background: var(--dv-gold) !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
  box-shadow: none !important;
  animation: none !important;  /* no pulsing — subtle */
}

/* Restore theme chevron/arrow (un-hide it) */
li.docver-nav-verified a::after {
  display: unset !important;
}

/* Legacy .docver-badge still used in admin AJAX (badge_html response) — keep. */
.docver-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px;
  font-family: 'Poppins', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; line-height: 1;
}
.docver-badge--verified  { background: rgba(34,197,94,0.10);  border: 1px solid rgba(34,197,94,0.25);   color: #15803d; }
.docver-badge--pending   { background: rgba(245,158,11,0.10); border: 1px solid rgba(245,158,11,0.25);  color: #b45309; }
.docver-badge--unverified{ background: rgba(148,163,184,0.08);border: 1px solid rgba(148,163,184,0.18); color: #64748b; }
.docver-badge--unverified a { color: inherit; text-decoration: none; }
.docver-badge--unverified a:hover { color: var(--dv-gold); }

/* ══ MODAL ═════════════════════════════════════════════════════════ */

@keyframes dvModalBackdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes dvModalPanelIn {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes dvModalPanelOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(8px) scale(0.97); }
}

@keyframes dvSuccessRing {
  0%   { transform: scale(0.7); opacity: 0; }
  60%  { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* ── MODAL OVERLAY ────────────────────────────────────────────────── */
.dv-modal {
  /* position:fixed — MUST be a direct child of <body>.
     JS (hoistModalToBody) moves it there on DOM ready so theme transforms
     on ancestor elements do not break viewport-relative positioning. */
  position: fixed !important;
  /* Fallback for browsers without inset */
  top: 0 !important; left: 0 !important;
  right: 0 !important; bottom: 0 !important;
  inset: 0 !important;
  /* Explicit height + width so flex centering always has a container to work with */
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 100000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  /* Use dvh with vh fallback for iOS Safari */
  padding: 16px;
  box-sizing: border-box !important;
  /* Belt-and-suspenders: no margin/padding from theme */
  margin: 0 !important;
}

.dv-modal[hidden] { display: none !important; }

.dv-modal__backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0; /* fallback */
  inset: 0;
  /* Solid fallback first (older iOS ignores backdrop-filter silently) */
  background: rgba(8, 10, 16, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: dvModalBackdropIn 0.28s ease;
}

.dv-modal__panel {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: 24px;
  padding: clamp(32px, 4vw, 48px) clamp(24px, 3.5vw, 40px) clamp(28px, 4vw, 40px);
  max-width: 480px;
  width: 100%;
  /* dvh fallback chain: dvh → svh → vh.
     Subtract padding from the .dv-modal wrapper (2 × 16px = 32px). */
  max-height: calc(100vh - 32px);
  max-height: calc(100svh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 40px 100px rgba(8,10,16,0.32), 0 8px 24px rgba(0,0,0,0.12);
  animation: dvModalPanelIn 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  box-sizing: border-box;
  /* Prevent iOS rubber-band scroll from leaking to the page */
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  /* Vertical centering within the flex wrapper */
  align-self: center;
  margin: auto;
}

/* All interactive elements in the modal need manipulation so iOS doesn't delay taps */
.dv-modal__panel button,
.dv-modal__panel a,
.dv-modal__panel input,
.dv-modal__panel select,
.dv-modal__panel label {
  touch-action: manipulation;
}

/* Gold gradient top accent — ::before so border-radius is preserved */
.dv-modal__panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #d4af6f 0%, #9b6b28 55%, #7a4f1c 100%);
  border-radius: 24px 24px 0 0;
  pointer-events: none;
}

.dv-modal.is-closing .dv-modal__panel {
  animation: dvModalPanelOut 0.20s ease forwards;
}

/* Close button — full reset then restyle to beat WooCommerce */
.dv-modal__panel .dv-modal__close {
  all: initial !important;
  font-family: 'Poppins', sans-serif !important;
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 8px !important;
  background: #f8f9fa !important;
  border: 1px solid var(--dv-border) !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #94a3b8 !important;
  transition: background 0.2s ease, color 0.2s ease !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  min-height: unset !important;
  min-width: unset !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  flex-shrink: 0;
}

.dv-modal__panel .dv-modal__close:hover {
  background: #f1f3f5 !important;
  color: var(--dv-text-primary) !important;
  transform: none !important;
}

.dv-modal__panel .dv-modal__close svg {
  display: block;
  width: 14px !important;
  height: 14px !important;
}

/* Hero icon */
.dv-modal__hero {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

/* Progress dots */
.dv-modal__progress {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
}

.dv-modal__progress-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #dbe3ec;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.35s ease;
}

.dv-modal__progress-dot.is-active {
  width: 22px;
  background: var(--dv-gold);
}

.dv-modal__progress-dot.is-done {
  background: #10b981;
}

/* Hero icon ring */
.dv-modal__hero-ring {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(212,175,111,0.18) 0%, rgba(155,107,40,0.08) 100%);
  border: 2px solid rgba(155,107,40,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: dvSuccessRing 0.50s cubic-bezier(0.22, 1, 0.36, 1) both,
             dvHeroGlow 3s ease-in-out 0.8s infinite;
  box-shadow: 0 0 0 8px rgba(155,107,40,0.06), 0 4px 16px rgba(155,107,40,0.14);
}

@keyframes dvHeroGlow {
  0%, 100% { box-shadow: 0 0 0 8px rgba(155,107,40,0.06), 0 4px 16px rgba(155,107,40,0.14); }
  50%       { box-shadow: 0 0 0 14px rgba(155,107,40,0.10), 0 6px 22px rgba(155,107,40,0.22); }
}

/* Step enter animations */
@keyframes dvStepEnterRight {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes dvStepEnterLeft {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Step transitions */
.dv-modal__step[hidden] { display: none !important; }

.dv-modal__step.is-entering-forward {
  animation: dvStepEnterRight 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.dv-modal__step.is-entering-back {
  animation: dvStepEnterLeft 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Modal footer */
.dv-modal__footer {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 11px;
  color: var(--dv-text-label);
  text-align: left;
  margin-top: 16px;
  justify-content: center;
  line-height: 1.55;
}

.dv-modal__footer svg { flex-shrink: 0; margin-top: 1px; }

/* Titles */
.dv-modal__title {
  font-family: 'Poppins', sans-serif !important;
  font-size: clamp(22px, 2.2vw, 26px) !important;
  font-weight: 800 !important;
  color: var(--dv-text-primary) !important;
  text-align: center;
  margin: 0 0 10px !important;
  letter-spacing: -0.025em;
  line-height: 1.2;
  background: none !important;
  border: none !important;
  padding: 0 !important;
}

.dv-modal__title--sm {
  font-size: clamp(18px, 1.6vw, 20px) !important;
  text-align: left;
}

.dv-modal__subtitle {
  font-size: 14.5px;
  color: #5a6a7e;
  text-align: center;
  margin: 0 0 24px;
  line-height: 1.65;
  font-weight: 400;
}

/* ── Trust cards — 2×2 column-oriented premium grid ──────────── */
.dv-modal__trust-list {
  list-style: none !important;
  margin: 0 0 24px !important;
  padding: 0 !important;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dv-modal__trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--dv-text-body);
  background: linear-gradient(160deg, #fffef9 0%, #fdf8ef 100%);
  border: 1px solid rgba(155,107,40,0.14);
  border-radius: 14px;
  padding: 18px 12px 14px;
  line-height: 1.35;
  letter-spacing: 0.01em;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dv-modal__trust-item:hover {
  border-color: rgba(155,107,40,0.28);
  box-shadow: 0 4px 14px rgba(155,107,40,0.10);
}

.dv-modal__trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(212,175,111,0.20) 0%, rgba(155,107,40,0.10) 100%);
  border: 1px solid rgba(155,107,40,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dv-gold);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(155,107,40,0.12), inset 0 1px 0 rgba(255,255,255,0.6);
}

/* Body text */
.dv-modal__body {
  font-size: 13px;
  color: var(--dv-text-body);
  text-align: center;
  line-height: 1.7;
  margin: 0 0 22px;
}

/* Actions — column stack */
.dv-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.dv-modal__actions--center { align-items: center; }

/* Powered by */
.dv-modal__powered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11px;
  color: var(--dv-text-label);
  margin: 16px 0 0;
  text-align: center;
}

/* Back button — plain text link style, fully reset */
.dv-modal__panel .dv-modal__back {
  all: initial !important;
  font-family: 'Poppins', sans-serif !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--dv-text-muted) !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin-bottom: 16px !important;
  box-shadow: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.dv-modal__panel .dv-modal__back:hover {
  color: var(--dv-text-primary) !important;
  background: none !important;
  transform: none !important;
}

.dv-modal__panel .dv-modal__back svg {
  width: 13px !important;
  height: 13px !important;
}

/* Step 2 subtitle left-aligned */
.dv-modal__step[data-step="2"] .dv-modal__subtitle {
  text-align: left;
}

/* Success icon */
.dv-modal__success-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  animation: dvSuccessRing 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── Mobile ─────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .dv-card--processing,
  .dv-card--review,
  .dv-card--error {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .dv-verified-hero { flex-direction: column; }
  .dv-verified-icon { width: 44px; height: 44px; }

  /* Keep trust cards as 2-column on mobile — they're compact enough */
  .dv-modal__trust-list { grid-template-columns: 1fr 1fr; gap: 8px; }
  .dv-modal__trust-item { padding: 14px 8px 12px; }
  .dv-modal__trust-icon { width: 36px; height: 36px; border-radius: 10px; }

  .dv-modal__panel {
    border-radius: 20px;
    padding: 28px 20px 24px;
    max-height: calc(100dvh - 20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dv-status-icon--spin svg,
  .dv-btn__spinner { animation: none; }

  .dv-modal__panel,
  .dv-modal__backdrop,
  .dv-modal__step,
  .dv-modal__step.is-entering-forward,
  .dv-modal__step.is-entering-back,
  .dv-modal__success-icon,
  .dv-modal__hero-ring,
  .dv-modal__progress-dot { animation: none; transition: none; }
}

/* ══ MODAL — MULTI-DEVICE RESPONSIVE FIXES ═════════════════════════════
   Audit: 375 / 430 / 768 / 1440 + landscape safeguards
═══════════════════════════════════════════════════════════════════════ */

/* ── iOS/Android safe-area insets (notch, Dynamic Island, gesture bar) */
.dv-modal {
  padding-top:    max(16px, env(safe-area-inset-top))    !important;
  padding-bottom: max(16px, env(safe-area-inset-bottom)) !important;
  padding-left:   max(16px, env(safe-area-inset-left))   !important;
  padding-right:  max(16px, env(safe-area-inset-right))  !important;
}

/* Prevent page scroll leaking through the panel scroll region */
.dv-modal__panel {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* ── 375 px (iPhone SE, small Android) ─────────────────────────── */
@media (max-width: 390px) {
  .dv-modal__panel {
    border-radius: 20px !important;
    padding: 26px 18px 22px !important;
  }
  .dv-modal__hero-ring {
    width: 72px !important;
    height: 72px !important;
  }
  .dv-modal__title {
    font-size: 20px !important;
  }
  .dv-modal__trust-item {
    padding: 12px 8px 10px !important;
    font-size: 11px !important;
  }
  .dv-modal__trust-icon {
    width: 36px !important;
    height: 36px !important;
  }
}

/* ── Tablet ≥ 768 px — wider panel ──────────────────────────────── */
@media (min-width: 768px) {
  .dv-modal__panel {
    max-width: 520px;
  }
  .dv-modal__trust-list {
    gap: 12px;
  }
  .dv-modal__trust-item {
    padding: 20px 14px 16px;
  }
}

/* ── Landscape mobile (height ≤ 650 px) — compact layout ─────────
   Shift modal to top-aligned so it stays scrollable without being
   cut off by the keyboard or notch.                               */
@media (max-height: 650px) and (orientation: landscape) {
  .dv-modal {
    align-items: flex-start !important;
    padding-top: max(10px, env(safe-area-inset-top)) !important;
  }
  .dv-modal__panel {
    padding: 18px 20px 16px !important;
    max-height: calc(100dvh - max(20px, env(safe-area-inset-top) + env(safe-area-inset-bottom))) !important;
    border-radius: 18px !important;
  }
  .dv-modal__hero { margin-bottom: 10px; }
  .dv-modal__hero-ring {
    width: 60px !important;
    height: 60px !important;
    /* keep enter animation, suppress the infinite glow pulse */
    animation: dvSuccessRing 0.50s cubic-bezier(0.22, 1, 0.36, 1) both !important;
  }
  .dv-modal__progress { margin-bottom: 12px; }
  .dv-modal__title { font-size: 18px !important; margin-bottom: 6px !important; }
  .dv-modal__subtitle { font-size: 13px; margin-bottom: 14px; }
  .dv-modal__trust-list {
    gap: 6px;
    margin-bottom: 14px !important;
  }
  .dv-modal__trust-item {
    padding: 10px 8px 8px !important;
    border-radius: 10px !important;
  }
  .dv-modal__trust-icon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 9px !important;
  }
  .dv-modal__actions { gap: 6px; margin-top: 2px; }
  .dv-modal__footer  { margin-top: 10px; }
}

/* ── DL verify_with_source fields ───────────────────────────────────── */
.dv-input {
  width: 100%;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 16px; /* ≥16px — prevents Safari iOS auto-zoom (was 14px) */
  border: 1.5px solid rgba(120,53,15,0.18);
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.dv-input:focus {
  border-color: #9b6b28;
  box-shadow: 0 0 0 3px rgba(155,107,40,0.10);
}
.dv-input--mono {
  font-family: 'Courier New', Courier, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Result card (shown in step 3 after DL verification) ────────────── */
.dv-result-card {
  background: rgba(16,185,129,0.06);
  border: 1px solid rgba(16,185,129,0.20);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 14px 0;
  text-align: left;
}
.dv-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(16,185,129,0.10);
  font-size: 13px;
}
.dv-result-row:last-child { border-bottom: none; }
.dv-result-label {
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  flex-shrink: 0;
}
.dv-result-value {
  font-weight: 600;
  color: #0f172a;
  text-align: right;
}
.dv-result-value--success {
  color: #065f46;
}

/* ── Consent checkbox row ──────────────────────────────────────────── */

.dv-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 16px;
  cursor: pointer;
}

.dv-consent-row input[type="checkbox"] {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  width: 18px !important;
  min-width: 18px !important;
  height: 18px !important;
  border: 1.5px solid var(--dv-border-input) !important;
  border-radius: 5px !important;
  background: #fff !important;
  cursor: pointer !important;
  margin: 0 !important;
  position: relative !important;
  flex-shrink: 0 !important;
  transition: border-color 0.2s, background 0.2s !important;
  box-shadow: none !important;
}

.dv-consent-row input[type="checkbox"]:checked {
  background: var(--dv-gold) !important;
  border-color: var(--dv-gold) !important;
}

.dv-consent-row input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 6px;
  height: 10px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(42deg);
}

.dv-consent-row input[type="checkbox"]:focus-visible {
  box-shadow: var(--dv-focus-ring) !important;
  outline: none !important;
}

.dv-consent-row label {
  font-family: 'Poppins', sans-serif !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: var(--dv-text-body) !important;
  line-height: 1.55 !important;
  cursor: pointer !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
}

/* ── Step 3 — Under-review state ───────────────────────────────────── */

/* Amber clock icon — mirrors success icon layout */
.dv-modal__review-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  animation: dvSuccessRing 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Info card shown below the under-review subtitle */
.dv-review-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.22);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 20px;
  font-size: 12px;
  color: #92400e;
  line-height: 1.55;
  text-align: left;
}

.dv-review-card svg {
  flex-shrink: 0;
  margin-top: 1px;
}

/* ════════════════════════════════════════════════════════════════════
   CHECKOUT AGE-GATE BANNER
   Renders above the WC checkout form via woocommerce_before_checkout_form.
   Uses brand warm gold system — consistent with the verification modal.
   Responsive: row on tablet+, stacked column on mobile.
═════════════════════════════════════════════════════════════════════ */

.dv-checkout-gate {
  display: flex;
  align-items: flex-start;
  gap: clamp(12px, 2vw, 18px);
  background: #fffbf2;
  border: 1.5px solid rgba(155, 107, 40, 0.22);
  border-left: 4px solid #9b6b28;
  border-radius: clamp(10px, 1.5vw, 16px);
  padding: clamp(16px, 2.5vw, 24px) clamp(18px, 3vw, 28px);
  /* Top + horizontal margins: banner renders outside .sd-checkout-wrapper
     so it needs its own breathing room from the navigation above and
     width constraint matching the checkout grid (max-width: 1500px, 95vw). */
  margin: clamp(28px, 4vw, 52px) auto clamp(20px, 3vw, 32px);
  width: 95%;
  max-width: 1500px;
  box-sizing: border-box;
  font-family: 'Poppins', -apple-system, sans-serif;
  /* Entrance animation — matches the brand motion system */
  animation: dv-gate-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes dv-gate-in {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0);     }
}

/* ── Shield icon circle ───────────────────────────────────────────── */
.dv-checkout-gate__icon {
  flex-shrink: 0;
  width:  clamp(40px, 5vw, 50px);
  height: clamp(40px, 5vw, 50px);
  background: linear-gradient(135deg, #d4af6f 0%, #9b6b28 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 14px rgba(155, 107, 40, 0.28);
  align-self: flex-start;
  margin-top: 2px;
}

/* ── Body (title + description) ──────────────────────────────────── */
.dv-checkout-gate__body {
  flex: 1;
  min-width: 0;
}

.dv-checkout-gate__title {
  font-size: clamp(13px, 1.4vw, 16px) !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 4px !important;
  padding: 0 !important;
  line-height: 1.3 !important;
  border: none !important;
  background: none !important;
}

.dv-checkout-gate__text {
  font-size: clamp(11px, 1.1vw, 13px) !important;
  color: #475569 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.6 !important;
  border: none !important;
  background: none !important;
}

/* ── CTA button ───────────────────────────────────────────────────── */
.dv-checkout-gate__btn {
  flex-shrink: 0;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: linear-gradient(135deg, #d4af6f 0%, #9b6b28 100%);
  color: #fff !important;
  font-family: 'Poppins', -apple-system, sans-serif;
  font-size: clamp(12px, 1.2vw, 14px);
  font-weight: 700;
  padding: clamp(10px, 1.4vw, 14px) clamp(18px, 2.5vw, 26px);
  border-radius: 999px;
  border: none !important;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(155, 107, 40, 0.30);
  transition: opacity 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  -webkit-appearance: none;
  appearance: none;
}
.dv-checkout-gate__btn:hover,
.dv-checkout-gate__btn:focus {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(155, 107, 40, 0.38);
  color: #fff !important;
  text-decoration: none;
  outline: none;
}
.dv-checkout-gate__btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(155, 107, 40, 0.22);
}
/* Focus-visible ring for keyboard users */
.dv-checkout-gate__btn:focus-visible {
  outline: 3px solid rgba(155, 107, 40, 0.40);
  outline-offset: 3px;
}

/* ── Mobile: stack vertically ──────────────────────────────────────── */
@media (max-width: 600px) {
  .dv-checkout-gate {
    flex-direction: column;
  }
  .dv-checkout-gate__btn {
    align-self: flex-start;
    margin-top: clamp(10px, 2vw, 14px);
    width: 100%;
    justify-content: center;
  }
}

/* ── Reduced motion ────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .dv-checkout-gate { animation: none !important; }
  .dv-checkout-gate__btn { transition: none !important; }
}

/* ══════════════════════════════════════════════════════════════════════
   SKELETON LOADING — frontend (verification modal + My Account tab)
   Warm off-white shimmer matching the brand surface-warm palette.
   Used while the IDfy API call is in flight (document verification).
══════════════════════════════════════════════════════════════════════ */

/* ── Shimmer keyframe (frontend-scoped) ─────────────────────────── */
@keyframes dv-shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}

@keyframes dv-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0);   }
}

/* ── Base atom ──────────────────────────────────────────────────── */
.dv-sk {
  display: block;
  background: linear-gradient(
    90deg,
    #f7f4ef  0%,
    #ede9e1 35%,
    rgba(155, 107, 40, 0.08) 50%,
    #ede9e1 65%,
    #f7f4ef 100%
  );
  background-size: 1200px 100%;
  animation: dv-shimmer 1.6s ease-in-out infinite;
}

/* ── Shape helpers ──────────────────────────────────────────────── */
.dv-sk--line    { height: 13px; border-radius: 4px; }
.dv-sk--line-sm { height: 10px; border-radius: 3px; }
.dv-sk--line-lg { height: 18px; border-radius: 5px; }
.dv-sk--circle  { border-radius: 50%; }
.dv-sk--pill    { height: 22px; border-radius: 999px; }
.dv-sk + .dv-sk { margin-top: 9px; }

/* ── Processing overlay — shown over step 2 during IDfy call ────── */
/* The modal form gets .dv-form--processing; fields are dimmed and
   a shimmer overlay sits on top of the upload zone / input fields. */

.dv-form--processing {
  position: relative;
  pointer-events: none;
}

.dv-form--processing::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(252, 250, 247, 0.30) 0%,
    rgba(252, 250, 247, 0.72) 100%
  );
  border-radius: inherit;
  z-index: 4;
}

/* Fields dim while verifying */
.dv-form--processing .dv-field-group,
.dv-form--processing .dv-upload-zone,
.dv-form--processing .dv-consent-row {
  opacity: 0.45;
  transition: opacity 0.25s ease;
}

/* ── Processing banner — appears above the dimmed form ─────────── */
.dv-processing-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(155, 107, 40, 0.06);
  border: 1px solid rgba(155, 107, 40, 0.16);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  position: relative;
  z-index: 5;
  animation: dv-fade-in 0.3s ease both;
}

.dv-processing-banner__icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4af6f, #9b6b28);
  display: flex; align-items: center; justify-content: center;
}

/* Pulsing dot-ring animation inside the icon */
.dv-processing-banner__icon span {
  display: block;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  animation: dv-pulse 1.4s ease-in-out infinite;
}

@keyframes dv-pulse {
  0%, 100% { transform: scale(1);    opacity: 1;   }
  50%       { transform: scale(0.6); opacity: 0.5; }
}

.dv-processing-banner__body { flex: 1; }

.dv-processing-banner__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--dv-gold);
  margin: 0 0 3px;
  line-height: 1.2;
}

.dv-processing-banner__text {
  font-size: 11px;
  color: var(--dv-text-muted);
  margin: 0;
  line-height: 1.4;
}

/* ── Skeleton result card — shown in step 2 while awaiting result ── */
/* Replaces the real result card during the processing window         */

.dv-sk-result {
  background: var(--dv-surface-warm);
  border: 1px solid var(--dv-gold-border);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
  position: relative;
  z-index: 5;
  animation: dv-fade-in 0.4s ease 0.15s both;
}

.dv-sk-result__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(155, 107, 40, 0.08);
}

.dv-sk-result__row:last-child { border-bottom: none; }

.dv-sk-result__label { width: 35%; flex-shrink: 0; height: 10px; border-radius: 3px; }
.dv-sk-result__value { flex: 1; height: 10px; border-radius: 3px; }

/* ── Step-3 skeleton (while IDfy result is arriving) ─────────────── */
/* Applied to the step-3 icon + text area for a brief 200ms flash    */

.dv-step3-loading .dv-modal__success-icon,
.dv-step3-loading .dv-modal__review-icon {
  opacity: 0;
}

.dv-step3-loading .dv-modal__title,
.dv-step3-loading .dv-modal__subtitle {
  position: relative;
  color: transparent;
}

.dv-step3-loading .dv-modal__title::after,
.dv-step3-loading .dv-modal__subtitle::after {
  content: '';
  position: absolute;
  inset: 2px 0;
  background: linear-gradient(
    90deg,
    #f7f4ef 0%, #ede9e1 35%, rgba(155,107,40,.08) 50%, #ede9e1 65%, #f7f4ef 100%
  );
  background-size: 800px 100%;
  animation: dv-shimmer 1.4s ease-in-out infinite;
  border-radius: 4px;
}

/* ── Reduced motion ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .dv-sk,
  .dv-processing-banner__icon span,
  .dv-step3-loading .dv-modal__title::after,
  .dv-step3-loading .dv-modal__subtitle::after {
    animation: none !important;
    background: #ede9e1 !important;
  }
}

/* ══ END SKELETON LOADING — frontend ════════════════════════════════ */


/* 2026-10-08: the [hidden] attribute must win over the display rules of these two elements (the Aadhaar note was
   showing for every upload type, and an empty file-preview row showed before a file was chosen). */
.dv-privacy-note[hidden],
.dv-upload-zone__preview[hidden] { display: none !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   2026-10-08  FIT-TO-SCREEN: the ID check popup should not need scrolling on a laptop or a phone.
   Spacing follows the screen HEIGHT, not just the width: compact on screens up to 900px tall (MacBook Air
   browser windows, most phones), tighter again up to 720px, scroll stays only as a safety net below 600px.
   All rules are scoped to #docver-verify-modal so nothing else on the site changes.
   ═══════════════════════════════════════════════════════════════════════════ */
#docver-verify-modal .dv-modal__panel { max-height: calc(100dvh - 24px); }

@media (max-height: 900px), (max-width: 480px) {
	#docver-verify-modal .dv-modal__panel { padding: 22px 28px 16px !important; border-radius: 22px !important; }
	#docver-verify-modal .dv-modal__progress { margin-bottom: 6px; }
	#docver-verify-modal .dv-modal__panel .dv-modal__close { top: 12px !important; right: 12px !important; }
	#docver-verify-modal .dv-modal__panel .dv-modal__back { margin: 0 0 2px !important; min-height: 28px; }
	#docver-verify-modal .dv-modal__title { font-size: 21px !important; margin: 0 0 4px !important; }
	#docver-verify-modal .dv-modal__subtitle { font-size: 13px; line-height: 1.45; margin: 0 0 12px; }
	#docver-verify-modal .dv-field-group { margin-bottom: 10px; }
	#docver-verify-modal .dv-label { margin-bottom: 6px !important; font-size: 10.5px !important; }
	#docver-verify-modal .dv-select { min-height: 44px !important; }
	#docver-verify-modal .dv-privacy-note { margin: 0 0 10px; padding: 7px 10px; font-size: 10.5px; line-height: 1.45; }
	#docver-verify-modal .dv-privacy-note--compact { padding: 7px 10px; font-size: 10.5px; }

	/* upload zone: one slim row (icon + text) instead of a tall box */
	#docver-verify-modal .dv-upload-zone--compact .dv-upload-zone__placeholder {
		display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 0;
		align-items: center; text-align: left; padding: 12px 16px;
	}
	#docver-verify-modal .dv-upload-zone__placeholder svg { grid-row: span 2; width: 26px; height: 26px; }
	#docver-verify-modal .dv-upload-zone__label { font-size: 13px; }
	#docver-verify-modal .dv-upload-zone__sub { font-size: 11px; }
	#docver-verify-modal .dv-upload-zone__preview { padding: 10px 14px; }

	/* camera button: slim */
	/* keep the "or" divider (desktop shows "Use Camera" under it); only the spacing is tighter */
	#docver-verify-modal .dv-camera-launch { margin-top: 22px !important; padding: 7px 12px !important; }
	#docver-verify-modal .dv-camera-launch::before { top: -15px !important; }
	#docver-verify-modal .dv-camera-launch::after { top: -18px !important; }
	#docver-verify-modal .dv-id-input-hint { margin: 6px 0 0; font-size: 11px; line-height: 1.4; }

	#docver-verify-modal .dv-consent-row { margin: 8px 0 10px; gap: 8px; font-size: 12px; line-height: 1.4; }
	#docver-verify-modal .dv-consent-row label { font-size: 12px; line-height: 1.4; }
	#docver-verify-modal .dv-modal__panel .dv-btn { min-height: 46px !important; }
	#docver-verify-modal .dv-modal__footer { margin-top: 8px; font-size: 10.5px; }
	#docver-verify-modal .dv-feedback:not([hidden]) { margin-bottom: 8px; padding: 9px 12px; font-size: 12.5px; }

	/* step 1 (intro): smaller hero and tiles */
	#docver-verify-modal .dv-modal__hero { margin-bottom: 8px; }
	#docver-verify-modal .dv-modal__hero-ring { width: 68px !important; height: 68px !important; }
	#docver-verify-modal .dv-modal__hero-ring svg { width: 40px; height: 40px; }
	#docver-verify-modal .dv-modal__trust-list { margin: 0 0 12px !important; gap: 8px; }
	#docver-verify-modal .dv-modal__trust-item { padding: 10px 8px 9px !important; gap: 5px; font-size: 11.5px !important; }
	#docver-verify-modal .dv-modal__trust-icon { width: 30px !important; height: 30px !important; border-radius: 9px !important; }
	#docver-verify-modal .dv-modal__trust-icon svg { width: 16px; height: 16px; }
	#docver-verify-modal .dv-modal__actions { gap: 8px; }

	/* step 3 */
	#docver-verify-modal .dv-modal__success-icon { margin-bottom: 10px; }
}

@media (max-height: 720px) {
	#docver-verify-modal .dv-modal__panel { padding: 16px 24px 12px !important; }
	#docver-verify-modal .dv-modal__step[data-step="2"] .dv-modal__subtitle { display: none; } /* the upload hint says the same */
	#docver-verify-modal .dv-modal__footer { display: none; }
	#docver-verify-modal .dv-modal__hero-ring { width: 52px !important; height: 52px !important; }
	#docver-verify-modal .dv-modal__hero-ring svg { width: 30px; height: 30px; }
	#docver-verify-modal .dv-modal__trust-item span[style] { display: none; } /* tile sub-lines */
	#docver-verify-modal .dv-modal__subtitle { margin-bottom: 8px; font-size: 12.5px; }
	#docver-verify-modal .dv-field-group { margin-bottom: 8px; }
}

@media (max-width: 480px) {
	#docver-verify-modal .dv-modal__panel { padding: 20px 18px 14px !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   2026-10-08  (2) camera panel fits and its message no longer collides with the controls;
               the "Secure Age Verification" page (/my-account/id-verification/) fits one screen.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Camera message sits ABOVE the picture as a bar (it used to be under it, where the capture buttons overlap). */
#docver-verify-modal .dv-upload-zone__camera-error { order: -1; font-size: 12px; padding: 9px 14px; }
@media (max-height: 900px), (max-width: 480px) {
	#docver-verify-modal .dv-upload-zone__camera-video { max-height: clamp(150px, 30dvh, 300px); }
}
/* While the live camera is open, hide the secondary text so the form still fits without scrolling. */
@supports selector(:has(*)) {
	#docver-verify-modal #dv-ocr-fields:has(.is-camera-active) .dv-privacy-note,
	#docver-verify-modal #dv-ocr-fields:has(.is-camera-active) .dv-id-input-hint,
	#docver-verify-modal .dv-modal__step[data-step="2"]:has(.is-camera-active) .dv-modal__subtitle { display: none; }
}

/* ID verification page: compact, modern first screen (4 tiles in one row on desktop, 2 x 2 on phones). */
.dv-page #dv-upload-section.dv-upload-card { padding: clamp(16px, 2.6vh, 30px) clamp(16px, 3vw, 40px); }
.dv-page .dv-hero-intro { margin-bottom: clamp(10px, 2vh, 18px); padding-bottom: clamp(10px, 2vh, 16px); }
.dv-page .dv-hero-intro .dv-modal__hero { margin-bottom: 8px; }
.dv-page .dv-hero-intro .dv-modal__hero-ring { width: 72px !important; height: 72px !important; }
.dv-page .dv-hero-intro .dv-modal__hero-ring svg { width: 42px; height: 42px; }
.dv-page .dv-hero-intro .dv-modal__title { font-size: clamp(22px, 2.3vw, 28px) !important; margin: 0 0 4px !important; }
.dv-page .dv-hero-intro .dv-modal__subtitle { font-size: 14px; line-height: 1.5; max-width: 680px; margin: 0 auto 14px; }
.dv-page .dv-hero-intro .dv-modal__trust-list { grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 !important; }
.dv-page .dv-hero-intro .dv-modal__trust-item { padding: 12px 8px 10px; gap: 6px; font-size: 12px; }
.dv-page .dv-hero-intro .dv-modal__trust-icon { width: 34px; height: 34px; border-radius: 10px; }
.dv-page .dv-hero-intro .dv-modal__trust-icon svg { width: 18px; height: 18px; }
.dv-page #docver-submit-btn { max-width: 440px; margin-left: auto !important; margin-right: auto !important; }
@media (max-width: 720px) {
	.dv-page .dv-hero-intro .dv-modal__trust-list { grid-template-columns: 1fr 1fr; }
	.dv-page .dv-hero-intro .dv-modal__trust-item span[style] { display: none !important; } /* tile sub-lines */
	.dv-page .dv-hero-intro .dv-modal__hero-ring { width: 56px !important; height: 56px !important; }
	.dv-page .dv-hero-intro .dv-modal__hero-ring svg { width: 32px; height: 32px; }
	.dv-page #docver-submit-btn { max-width: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   2026-10-08  (3) ID-verification page: tidy trust tiles and hero.
   A script on this page wraps the word "IDfy" in its own link; inside the old column-flex tiles that split
   "IDfy Certified" into two stacked items and made the tiles uneven. Tiles are now normal centred blocks so text
   and links flow on one line, with one consistent title + caption style. The hero glow no longer touches the title.
   ═══════════════════════════════════════════════════════════════════════════ */
.dv-page .dv-hero-intro .dv-modal__hero { margin-bottom: 20px; }
.dv-page .dv-hero-intro .dv-modal__hero-ring {
	animation: none !important;
	box-shadow: 0 0 0 6px rgba(155,107,40,0.06), 0 4px 14px rgba(155,107,40,0.12);
}
.dv-page .dv-hero-intro .dv-modal__subtitle { font-size: 14.5px; max-width: 640px; }
.dv-page .dv-hero-intro .dv-modal__trust-list { align-items: stretch; gap: 12px; }
.dv-page .dv-hero-intro .dv-modal__trust-item {
	display: block !important; text-align: center; padding: 16px 12px 14px;
	background: #fff; border: 1px solid rgba(155,107,40,0.16); border-radius: 16px;
	box-shadow: 0 1px 2px rgba(15,23,42,0.04); font-size: 13.5px; font-weight: 700; line-height: 1.35;
}
.dv-page .dv-hero-intro .dv-modal__trust-icon { display: flex; margin: 0 auto 10px; }
.dv-page .dv-hero-intro .dv-modal__trust-item .sd-idfy-link { display: inline; }
.dv-page .dv-hero-intro .dv-modal__trust-item span[style] {
	margin-top: 4px !important; font-size: 12px !important; line-height: 1.4 !important; opacity: 0.7 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   2026-10-08  (4) MOBILE-FIRST pass: comfortable touch targets, readable captions, very small phones.
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-height: 900px), (max-width: 480px) {
	/* close button: 40 x 40 touch area (was 30) */
	#docver-verify-modal .dv-modal__panel .dv-modal__close { width: 40px !important; height: 40px !important; top: 8px !important; right: 8px !important; }
	/* Back link: 40 px tall touch area, text stays where it was */
	#docver-verify-modal .dv-modal__panel .dv-modal__back {
		min-height: 40px !important; padding: 0 10px !important; margin: -8px 0 -6px -10px !important; font-size: 13px !important;
	}
	/* captions no smaller than 11 px */
	#docver-verify-modal .dv-label { font-size: 11px !important; }
	#docver-verify-modal .dv-privacy-note,
	#docver-verify-modal .dv-privacy-note--compact { font-size: 11px; }
	#docver-verify-modal .dv-modal__footer { font-size: 11px; }
	#docver-verify-modal .dv-id-input-hint { font-size: 11px; }
	/* tapping the consent sentence ticks the box; make the whole row at least 44 px tall */
	#docver-verify-modal .dv-consent-row { min-height: 44px; align-items: center; }
}
/* very small phones (320 x 568 and similar): drop the decorative / repeated parts so nothing needs scrolling */
@media (max-height: 600px) {
	#docver-verify-modal .dv-modal__hero { display: none; }
	#docver-verify-modal .dv-modal__step[data-step="1"] .dv-modal__subtitle { font-size: 12.5px; margin-bottom: 8px; }
	#docver-verify-modal #dv-ocr-fields .dv-id-input-hint { display: none; }
	#docver-verify-modal #dv-ocr-fields > .dv-privacy-note:last-of-type { display: none; }
	#docver-verify-modal .dv-modal__title { font-size: 19px !important; }
	#docver-verify-modal .dv-consent-row { min-height: 0; }
}

/* 2026-10-08 (5) tablets / touch screens get the same 40 px touch targets; tighter tiles on the smallest phones;
   landscape phones show the four tiles in one row. */
@media (pointer: coarse), (max-width: 1024px) {
	#docver-verify-modal .dv-modal__panel .dv-modal__close { width: 40px !important; height: 40px !important; top: 8px !important; right: 8px !important; }
	#docver-verify-modal .dv-modal__panel .dv-modal__back { min-height: 40px !important; padding: 0 10px !important; margin: -8px 0 -6px -10px !important; }
}
@media (max-height: 600px) {
	#docver-verify-modal .dv-modal__trust-list { gap: 6px !important; margin-bottom: 8px !important; }
	#docver-verify-modal .dv-modal__trust-item { padding: 7px 6px 6px !important; gap: 3px !important; }
	#docver-verify-modal .dv-modal__trust-icon { width: 26px !important; height: 26px !important; }
}
@media (max-height: 450px) and (min-width: 560px) {
	#docver-verify-modal .dv-modal__trust-list { grid-template-columns: repeat(4, 1fr) !important; }
	#docver-verify-modal .dv-modal__step[data-step="1"] .dv-modal__subtitle { display: none; }
}
