/* Accept-for-customer modal — staff triggers the customer accept automation.
   Uses the shared light "Midnight Console" tokens so it matches the app. */
.afc-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 40, 63, 0.42);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 6000;
  padding: 20px;
}
.afc-backdrop.open { display: flex; }

.afc-modal {
  width: 100%;
  max-width: 440px;
  background: var(--d-surface);
  color: var(--d-ink);
  border: 1px solid var(--d-line);
  border-radius: 16px;
  box-shadow: var(--d-shadow-lg);
  overflow: hidden;
}
.afc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--d-line);
}
.afc-header h3 { margin: 0; font-size: 16px; font-weight: 700; color: var(--d-ink); }
.afc-close {
  background: transparent;
  border: none;
  color: var(--d-ink-3);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.afc-close:hover { color: var(--d-ink); }

.afc-body { padding: 18px; }
.afc-loading { padding: 24px 0; text-align: center; color: var(--d-ink-3); }

.afc-cust { margin-bottom: 12px; }
.afc-cust-name { font-size: 15px; font-weight: 700; color: var(--d-ink); display: flex; align-items: center; gap: 8px; }
.afc-cust-addr { font-size: 13px; color: var(--d-ink-2); margin-top: 2px; }

.afc-brand {
  font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px;
  background: #e0f0fe; color: var(--d-brand-ggi);
}
.afc-brand-MGG { background: #fbeecb; color: #c8892a; }

.afc-warn {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--d-danger);
  background: var(--danger-soft);
  border: 1px solid var(--danger-line);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
}

.afc-mesh-group { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.afc-mesh {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 4px 10px;
  padding: 12px 14px;
  border: 1px solid var(--d-line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.afc-mesh:hover { border-color: var(--d-line-strong); }
.afc-mesh input { grid-row: span 2; width: 18px; height: 18px; accent-color: var(--d-ok); }
.afc-mesh-main { font-weight: 600; font-size: 14px; color: var(--d-ink); }
.afc-mesh-main em { font-style: normal; color: var(--d-ok); font-size: 12px; font-weight: 700; }
.afc-mesh-price { grid-column: 2; font-size: 13px; color: var(--d-ink-2); }
.afc-mesh-rec { border-color: var(--ok-line); background: var(--ok-soft); }

.afc-single { font-size: 14px; margin-bottom: 12px; color: var(--d-ink-2); }

.afc-note { font-size: 13px; line-height: 1.45; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.afc-note-ok { background: var(--ok-soft); border: 1px solid var(--ok-line); color: var(--d-ok); }
.afc-note-warn { background: var(--warn-soft); border: 1px solid var(--warn-line); color: var(--d-warn); }
.afc-note-err { background: var(--danger-soft); border: 1px solid var(--danger-line); color: var(--d-danger); }

.afc-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.afc-btn {
  font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 10px;
  cursor: pointer; border: 1px solid transparent; text-decoration: none; display: inline-flex; align-items: center;
}
.afc-btn:disabled { opacity: 0.6; cursor: default; }
.afc-btn-ghost { background: var(--d-surface); border-color: var(--d-line); color: var(--d-ink-2); }
.afc-btn-ghost:hover { background: var(--d-surface-2); }
.afc-btn-go { background: var(--d-ok); color: #fff; }
.afc-btn-go:hover { background: #12652f; }

.afc-status { font-size: 13px; margin-top: 10px; text-align: right; }
.afc-status-err { color: var(--d-danger); }
