/* Natalia, the website chat (site/public/chat/natalia.js). Light, like the shop; 8px grid; every control at least 44px. */
.nat { --n-fg: #0b0b0d; --n-muted: #5b5b63; --n-soft: #f5f5f7; --n-line: rgba(11, 11, 13, 0.1); --n-accent: #0a9db0; --n-ink: #06707d; --n-dark: #0b0b0d;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", ui-sans-serif, system-ui, sans-serif; color: var(--n-fg); color-scheme: light; font-size: 16px; line-height: 1.45; }
.nat *, .nat *::before, .nat *::after { box-sizing: border-box; }
.nat button, .nat input { font: inherit; }
.nat-launch { position: fixed; z-index: 55; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px) + var(--nat-lift, 0px));
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px 0 16px; border: 0; border-radius: 9999px; background: var(--n-dark); color: #fff;
  font-weight: 600; font-size: 15px; cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22); transition: transform 0.15s ease; }
.nat-launch:hover { transform: translateY(-1px); }
.nat-launch:focus-visible, .nat :focus-visible { outline: 2px solid var(--n-accent); outline-offset: 2px; }
.nat-launch svg { width: 20px; height: 20px; flex: none; }
.nat-dot { width: 8px; height: 8px; border-radius: 50%; background: #29d1ef; }
.nat-launch[hidden], .nat-panel[hidden], .nat-nudge[hidden] { display: none; }
.nat-nudge { position: fixed; z-index: 55; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(80px + env(safe-area-inset-bottom, 0px) + var(--nat-lift, 0px)); max-width: 280px;
  display: flex; align-items: flex-start; gap: 8px; padding: 8px 8px 8px 16px; background: #fff; border: 1px solid var(--n-line); border-radius: 16px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); font-size: 15px; }
.nat-nudge p { margin: 8px 0; }
.nat-nudge button.nat-nudge-open { all: unset; cursor: pointer; flex: 1; }
.nat-x { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; border-radius: 9999px; cursor: pointer; color: var(--n-muted); }
.nat-x:hover { background: var(--n-soft); color: var(--n-fg); }
.nat-panel { position: fixed; z-index: 56; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 384px; height: min(640px, calc(100vh - 32px));
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--n-line); border-radius: 16px; box-shadow: 0 16px 48px rgba(0, 0, 0, 0.24); overflow: hidden; }
.nat-head { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--n-line); }
.nat-avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--n-dark); display: grid; place-items: center; overflow: hidden; }
.nat-avatar img { width: 24px; height: 24px; display: block; object-fit: contain; }   /* the whole mark, even padding inside the circle */
.nat-title { flex: 1; min-width: 0; }
.nat-title strong { display: block; font-size: 16px; }
.nat-title span { display: block; font-size: 13px; line-height: 16px; color: var(--n-muted); }
.nat-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 8px 4px 16px; border-bottom: 1px solid var(--n-line); font-size: 13px; color: var(--n-muted); }
.nat-person { min-height: 44px; padding: 0 12px; border: 1px solid var(--n-line); border-radius: 9999px; background: #fff; color: var(--n-ink); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.nat-person:hover { background: var(--n-soft); }
.nat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.nat-msg { max-width: 85%; padding: 8px 12px; border-radius: 16px; white-space: pre-wrap; word-wrap: break-word; font-size: 15px; }
.nat-msg a { color: var(--n-ink); font-weight: 600; }
.nat-from-natalia, .nat-from-staff { align-self: flex-start; background: var(--n-soft); border-bottom-left-radius: 4px; }
.nat-from-visitor { align-self: flex-end; background: var(--n-dark); color: #fff; border-bottom-right-radius: 4px; }
.nat-from-system { align-self: stretch; max-width: none; background: #e3f8fa; color: #06474f; border-radius: 8px; font-size: 14px; }
.nat-name { display: block; font-size: 12px; font-weight: 600; color: var(--n-muted); margin-bottom: 0; }
.nat-typing { align-self: flex-start; color: var(--n-muted); font-size: 14px; padding: 0 4px; }
.nat-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 8px; }
.nat-quick button { min-height: 44px; padding: 0 16px; border: 1px solid var(--n-accent); border-radius: 9999px; background: #fff; color: var(--n-ink); font-size: 14px; cursor: pointer; }
.nat-quick button:hover { background: #e3f8fa; }
.nat-form { display: flex; gap: 8px; padding: 8px 16px; border-top: 1px solid var(--n-line); }
.nat-form input { flex: 1; min-width: 0; min-height: 44px; padding: 0 16px; border: 1px solid var(--n-line); border-radius: 9999px; background: var(--n-soft); color: var(--n-fg); font-size: 16px; }
.nat-send { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--n-accent); color: #fff; display: grid; place-items: center; cursor: pointer; }
.nat-send:disabled { opacity: 0.5; cursor: default; }
.nat-foot { padding: 0 16px 8px; font-size: 12px; color: var(--n-muted); }
.nat-foot a { color: var(--n-ink); font-weight: 600; }
.nat-intake { padding: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 8px; align-self: stretch; background: #fff; border: 1px solid var(--n-line); border-radius: 12px; }
.nat-intake p { grid-column: 1 / -1; margin: 0 0 8px; font-size: 14px; }
.nat-intake label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.nat-intake label.nat-wide, .nat-intake .nat-go { grid-column: 1 / -1; }
.nat-intake input { min-height: 44px; padding: 0 12px; border: 1px solid var(--n-line); border-radius: 8px; font-size: 16px; font-weight: 400; background: #fff; color: var(--n-fg); }
.nat-intake input[aria-invalid="true"] { border-color: #b3261e; }
.nat-err { color: #b3261e; font-size: 12px; font-weight: 400; min-height: 0; }
.nat-go { min-height: 48px; border: 0; border-radius: 9999px; background: var(--n-dark); color: #fff; font-weight: 600; cursor: pointer; margin-top: 8px; }
.nat-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 520px) {
  .nat-panel { inset: 0; width: auto; height: auto; border-radius: 0; border: 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .nat-intake { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .nat-launch { transition: none; } }

/* the support card: help with a system goes to the ticket form on /support */
.nat-support { align-self: stretch; display: grid; gap: 8px; padding: 16px; border: 1px solid var(--n-line, #e2e5ea); border-radius: 16px; background: #fff; }
.nat-support p { margin: 0; font-size: 14px; line-height: 24px; }
.nat-support .nat-go { display: flex; align-items: center; justify-content: center; text-decoration: none; margin-top: 0; }
.nat-support .nat-or { font-size: 13px; color: var(--n-muted, #5b6573); }
