/* PlainGlow guided assistant — colours inherit from the host template.
   Set --nl-accent / --nl-ink / --nl-paper in the template's :root and it blends in. */
.nl-assist {
  --a: var(--nl-accent, #c4643c); --ink: var(--nl-ink, #1d1b19); --paper: var(--nl-paper, #fff);
  /* SHAPE — set these in the template's :root so the assistant wears the site's own language.
     Soft registers (Pawlates / Zenith): pill button, generous radii.
     Trades / industrial registers (VoltFlow): squarer everything. */
  --r-btn:   var(--nl-radius-btn, 999px);   /* the launcher + option chips */
  --r-panel: var(--nl-radius-panel, 18px);  /* the panel + teaser */
  --r-field: var(--nl-radius-field, 11px);  /* inputs, message bubbles */
}
.nl-fab { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: inline-flex; align-items: center; gap: 9px;
  background: var(--a); color: #fff; border: none; border-radius: var(--r-btn); padding: 14px 20px; font: 600 14.5px/1 inherit;
  box-shadow: 0 12px 34px rgba(0,0,0,.22); cursor: pointer; transition: transform .18s; }
.nl-fab:hover { transform: translateY(-2px); }
.nl-panel[hidden] { display: none !important; }   /* the hidden attr must win over display:flex */
.nl-panel { position: fixed; right: 20px; bottom: 20px; z-index: 201; width: min(360px, calc(100vw - 32px));
  background: var(--paper); border-radius: var(--r-panel); box-shadow: 0 28px 70px rgba(0,0,0,.28); overflow: hidden;
  display: flex; flex-direction: column; max-height: min(560px, 80vh); }
.nl-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid rgba(0,0,0,.08); }
.nl-head b { display: block; font-size: 15px; color: var(--ink); }
.nl-head span { font-size: 12px; opacity: .55; color: var(--ink); }
.nl-x { margin-left: auto; background: none; border: none; font-size: 24px; line-height: 1; opacity: .4; cursor: pointer; color: var(--ink); }
.nl-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.nl-msg { max-width: 88%; padding: 11px 14px; border-radius: var(--r-field); font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.nl-bot { background: rgba(0,0,0,.05); border-bottom-left-radius: 4px; align-self: flex-start; }
.nl-me { background: var(--a); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.nl-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.nl-opt { font: 600 13.5px/1 inherit; padding: 10px 15px; border-radius: var(--r-btn); border: 1.5px solid rgba(0,0,0,.14);
  background: var(--paper); color: var(--ink); cursor: pointer; transition: all .18s; text-decoration: none; display: inline-block; }
.nl-opt:hover { border-color: var(--a); color: var(--a); }
.nl-send, .nl-call { border-color: var(--a); color: var(--a); align-self: flex-start; }
.nl-input { display: flex; gap: 8px; }
.nl-input input { flex: 1; font: 400 14.5px/1 inherit; padding: 11px 13px; border: 1.5px solid rgba(0,0,0,.14); border-radius: var(--r-field); outline: none; color: var(--ink); background: var(--paper); }
.nl-input input:focus { border-color: var(--a); }
.nl-input button { border: none; background: var(--a); color: #fff; width: 46px; border-radius: var(--r-field); font-size: 17px; cursor: pointer; }
.nl-foot { padding: 10px 18px 14px; font-size: 11.5px; opacity: .45; color: var(--ink); border-top: 1px solid rgba(0,0,0,.06); }
@media (max-width: 520px) { .nl-panel { right: 8px; left: 8px; bottom: 8px; width: auto; } .nl-fab { right: 12px; bottom: 12px; } }

/* teaser — sits beside the button, never covers the page, never auto-opens the panel */
.nl-teaser { position: fixed; right: 20px; bottom: 78px; z-index: 200; max-width: min(280px, calc(100vw - 40px));
  display: flex; align-items: flex-start; gap: 6px; background: var(--paper); color: var(--ink);
  border-radius: var(--r-panel); padding: 12px 10px 12px 15px; font-size: 14px; line-height: 1.45;
  box-shadow: 0 14px 40px rgba(0,0,0,.18); border: 1px solid rgba(0,0,0,.07);
  opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .45s ease; pointer-events: none; }
.nl-teaser.in { opacity: 1; transform: none; pointer-events: auto; }
.nl-teaser span { cursor: pointer; }
.nl-tx { background: none; border: none; font-size: 17px; line-height: 1; opacity: .35; cursor: pointer; color: inherit; padding: 0 2px; }
.nl-tx:hover { opacity: .7; }
@media (max-width: 520px) { .nl-teaser { right: 12px; bottom: 68px; } }

/* fallback when no form key is set yet — phone first, then copy-paste. Never a bare mailto. */
.nl-copybox { position: relative; background: rgba(0,0,0,.045); border-radius: var(--r-field); padding: 12px 14px; }
.nl-copybox pre { margin: 0; font: 400 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; color: var(--ink); opacity: .8; }
.nl-copy { position: absolute; top: 8px; right: 8px; font: 600 11.5px/1 inherit; padding: 6px 10px; border-radius: 7px;
  border: 1px solid rgba(0,0,0,.14); background: var(--paper); color: var(--ink); cursor: pointer; }
.nl-copy:hover { border-color: var(--a); color: var(--a); }
.nl-plainmail { font-size: 13px; opacity: .65; color: var(--ink); }
.nl-plainmail b { color: var(--a); }
.nl-call { border-color: var(--a); color: var(--a); align-self: flex-start; font-weight: 700; }
