#njm-luna-public {
  --ink: #141922;
  --accent: #ad4300;
  --paper: #fcfbfa;
  --line: #e9dfd6;
  --warm: #fff0de;
  color: var(--ink);
  font: 15px/1.45 Inter, Arial, sans-serif;
}
#njm-luna-public *, #njm-luna-public *::before, #njm-luna-public *::after { box-sizing: border-box; }
#njm-luna-public [hidden] { display: none !important; }
#njm-luna-public :is(p,h2,h3,ol) { margin: 0; }
#njm-luna-public button {
  min-height: 44px;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  background: #fffdfb;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px 12px;
}
#njm-luna-public button:disabled { opacity: .5; cursor: default; }
#njm-luna-public :is(button,a,input):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#njm-luna-public .launcher {
  position: fixed;
  z-index: 10000;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  display: flex;
  gap: 8px;
  align-items: center;
  height: 50px;
  padding: 0 12px 0 5px;
  border-radius: 999px;
  background: var(--warm);
  box-shadow: 0 5px 12px #38251226;
  font-size: 13px;
  font-weight: 400;
}
#njm-luna-public .launcher img { width: 38px; height: 38px; object-fit: cover; border-radius: 50%; }
body:has(#njm-luna-public .launcher:not([hidden])) [data-njm-visitor-feedback] {
  right: max(20px, env(safe-area-inset-right));
  bottom: calc(max(20px, env(safe-area-inset-bottom)) + 50px + 14px);
}
body:has(#njm-luna-public #luna:not([hidden])) [data-njm-visitor-feedback] {
  visibility: hidden;
}
#njm-luna-public .luna {
  position: fixed;
  z-index: 10001;
  inset: auto max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) auto;
  width: min(521px, calc(100vw - 36px));
  height: min(720px, calc(100dvh - 74px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e5d7cc;
  border-radius: 15px;
  background: var(--paper);
  box-shadow: 0 5px 20px #38251238;
}
#njm-luna-public .luna-header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px 6px 14px;
  background: #fcf8f5;
}
#njm-luna-public .luna-header img { border-radius: 50%; object-fit: cover; }
#njm-luna-public .luna-header h2 { flex: 1; font: inherit; font-size: 20px; }
#njm-luna-public .luna-header button { width: 44px; padding: 0; font-size: 25px; }
#njm-luna-public .luna-scroll { min-height: 0; flex: 1; overflow: auto; overscroll-behavior: contain; }
#njm-luna-public .welcome-banner {
  display: grid;
  grid-template-columns: 84px 1fr;
  align-items: center;
  gap: 10px;
  background: #fcf2e8;
  padding: 0 14px;
}
#njm-luna-public .welcome-banner img { width: 100%; height: auto; mix-blend-mode: multiply; }
#njm-luna-public .welcome-banner p { background: #fffdfb; padding: 10px; border-radius: 12px; }
#njm-luna-public .topics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; padding: 8px 14px; }
#njm-luna-public .topics button { color: var(--accent); font-weight: 650; }
#njm-luna-public .luna:not([data-scene="intro"]) .welcome { display: none; }
#njm-luna-public .conversation { padding: 10px 14px; list-style: none; }
#njm-luna-public .conversation:empty { display: none; }
#njm-luna-public .message { display: flex; align-items: flex-start; gap: 8px; margin-block: 8px; }
#njm-luna-public .message.customer { justify-content: flex-end; }
#njm-luna-public .message > div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
#njm-luna-public .customer > div { background: var(--warm); }
#njm-luna-public .avatar { flex: 0 0 28px; }
#njm-luna-public .customer .avatar { display: none; }
#njm-luna-public .avatar img { width: 28px; height: 28px; object-fit: cover; border-radius: 50%; }
#njm-luna-public .recommendations { padding: 4px 14px 12px; }
#njm-luna-public .recommendations h3 { font-size: 15px; }
#njm-luna-public .mock-links { display: flex; flex-wrap: wrap; gap: 8px 12px; }
#njm-luna-public .products { display: flex; gap: 8px; overflow-x: auto; padding-block: 6px; }
#njm-luna-public .product { flex: 0 0 158px; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
#njm-luna-public .product :is(img,.mock-card-placeholder) { width: 100%; height: 88px; object-fit: cover; }
#njm-luna-public .mock-card-placeholder { display: grid; place-items: center; background: #f4eee8; }
#njm-luna-public .product-copy { padding: 8px; overflow-wrap: anywhere; }
#njm-luna-public a { color: var(--accent); text-decoration: underline; }
#njm-luna-public .carousel-controls { display: none; }
#njm-luna-public .luna-footer { padding: 8px 12px; border-top: 1px solid var(--line); background: #fcf8f5; }
#njm-luna-public .composer { display: flex; align-items: center; gap: 7px; }
#njm-luna-public .composer input { min-width: 0; flex: 1; min-height: 44px; font: inherit; border-radius: 10px; padding: 6px 8px; }
#njm-luna-public #send { background: var(--warm); color: var(--accent); font-weight: 750; }
#njm-luna-public .luna-status { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
#njm-luna-public #reset { margin-left: auto; border: 0; background: transparent; font-size: 13px; }
#njm-luna-public #luna-progress { color: var(--accent); margin-bottom: 5px; }
#njm-luna-public #error { color: #842323; }
@media (max-width: 760px) {
  #njm-luna-public .launcher { width: 50px; justify-content: center; padding: 0; }
  #njm-luna-public .launcher span { display: none; }
  #njm-luna-public .luna {
    inset: auto max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    width: auto;
    height: min(720px, calc(100dvh - 64px));
  }
  #njm-luna-public .composer input { font-size: 16px; }
  #njm-luna-public .product { flex-basis: 176px; }
}

#njm-luna-public .luna-privacy { margin: 6px 0 0; font-size: 12px; line-height: 1.4; color: #66574c; }
