/* Kirana Cart — the pretend customer's own styling.
   Deliberately looks nothing like the Consentra admin app: in a demo it must be
   obvious at a glance which window is the customer's website and which is ours. */

:root {
  --ink: #1b2733;
  --muted: #6b7a8c;
  --line: #e3e8ee;
  --brand: #c2410c;
  --brand-dark: #9a3412;
  --ok: #15803d;
  --warn: #b45309;
  --bg: #fffaf5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

header.kc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  flex-wrap: wrap;
}

.kc-logo { font-weight: 800; font-size: 19px; color: var(--brand); letter-spacing: -0.3px; }
.kc-logo span { color: var(--ink); font-weight: 600; }

nav.kc a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  margin-right: 18px;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
nav.kc a:hover { border-bottom-color: var(--brand); }
nav.kc a.active { border-bottom-color: var(--brand); font-weight: 600; }

.who { font-size: 13px; color: var(--muted); }
.who strong { color: var(--ink); }

main { max-width: 880px; margin: 0 auto; padding: 28px 24px 80px; }

h1 { font-size: 27px; margin: 0 0 6px; letter-spacing: -0.4px; }
h2 { font-size: 18px; margin: 30px 0 10px; }
p.lede { color: var(--muted); margin: 0 0 22px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: 7px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: var(--brand-dark); }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { background: #f6f8fa; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

input[type="email"], input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 14px;
  font-family: inherit;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 18px 20px;
  margin-bottom: 16px;
}

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }

.tile { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 16px; }
.tile .price { font-weight: 700; color: var(--brand); margin-top: 6px; }

.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
}
.pill.on { background: #dcfce7; color: var(--ok); }
.pill.off { background: #f1f5f9; color: var(--muted); }
.pill.warn { background: #fef3c7; color: var(--warn); }

/* The running explanation of what just happened. The demo's real payload:
   without it the interesting parts are invisible and it looks like magic. */
#kc-log {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  background: #0f172a;
  color: #cbd5e1;
  border-radius: 11px;
  padding: 14px 16px;
  max-height: 280px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
#kc-log .t { color: #64748b; }
#kc-log .ok { color: #4ade80; }
#kc-log .no { color: #f87171; }
#kc-log .hi { color: #fbbf24; }

table.kv { width: 100%; border-collapse: collapse; font-size: 14px; }
table.kv td { padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.kv td:first-child { color: var(--muted); width: 42%; }
code { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; background: #f1f5f9; padding: 1px 5px; border-radius: 4px; }

.note { font-size: 13px; color: var(--muted); }
.banner-note { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 9px; padding: 12px 14px; font-size: 13.5px; }
