/* Public customer surfaces only. Appearance and colour scheme are independent:
   the studio selects Minimal / Completa; the visitor retains Light / Dark. */
html[data-customer-portal="true"] {
  --cp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --cp-display: var(--cp-font);
  --cp-bg: #f3f6fa;
  --cp-surface: #ffffff;
  --cp-subtle: #eef3f9;
  --cp-text: #1b2b42;
  --cp-muted: #58677b;
  --cp-line: #dce3ec;
  --cp-field-line: #8795a8;
  --cp-accent: #234f87;
  --cp-accent-soft: #e8eff8;
  --cp-on-accent: #ffffff;
  --cp-success: #236046;
  --cp-success-bg: #eaf5ee;
  --cp-error: #9a352f;
  --cp-error-bg: #fff0ed;
  --cp-radius: 22px;
  --cp-shadow: 0 8px 30px #1b2b4208;
  color-scheme: light;
}

html[data-customer-portal="true"][data-customer-appearance="minimal"] {
  --cp-display: "Iowan Old Style", "Baskerville", "Palatino Linotype", Georgia, serif;
  --cp-bg: #f5f3ec;
  --cp-surface: #fffef9;
  --cp-subtle: #eeeee5;
  --cp-text: #203e36;
  --cp-muted: #5e6b61;
  --cp-line: #d8dcd0;
  --cp-field-line: #7e8e7d;
  --cp-accent: #265f50;
  --cp-accent-soft: #e3ece3;
  --cp-shadow: none;
}

html[data-customer-portal="true"][data-theme="dark"] {
  --cp-bg: #101820;
  --cp-surface: #18232f;
  --cp-subtle: #1e2c3b;
  --cp-text: #eef3f8;
  --cp-muted: #afbdcc;
  --cp-line: #344352;
  --cp-field-line: #718294;
  --cp-accent: #a8cbff;
  --cp-accent-soft: #253e5b;
  --cp-on-accent: #122b48;
  --cp-success: #a7dec0;
  --cp-success-bg: #203b31;
  --cp-error: #ffb9ae;
  --cp-error-bg: #462c2a;
  --cp-shadow: none;
  color-scheme: dark;
}

html[data-customer-portal="true"][data-customer-appearance="minimal"][data-theme="dark"] {
  --cp-bg: #15211d;
  --cp-surface: #1d2c26;
  --cp-subtle: #26382f;
  --cp-text: #edf2e9;
  --cp-muted: #b3c2b6;
  --cp-line: #3b4d40;
  --cp-field-line: #809382;
  --cp-accent: #b6d6bd;
  --cp-accent-soft: #314a39;
  --cp-on-accent: #173124;
}
