.npa-root,
.npa-root * { box-sizing: border-box; }
.npa-root { --npa-accent: #13cfb9; --npa-ink: #202322; --npa-muted: #68716f; --npa-line: #e8edeb; --npa-panel: #fff; font-family: inherit; }
.npa-launcher {
  position: fixed; z-index: 99990; right: 22px; bottom: 22px; display: inline-flex; align-items: center; gap: 9px;
  min-height: 50px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--npa-ink); color: #fff;
  box-shadow: 0 8px 26px rgba(16, 36, 32, .2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.npa-launcher:hover, .npa-launcher:focus-visible { background: var(--npa-accent); color: #102220; }
.npa-launcher-icon { font-size: 20px; line-height: 1; }
.npa-panel {
  position: fixed; z-index: 99991; right: 22px; bottom: 84px; display: flex; flex-direction: column;
  width: min(390px, calc(100vw - 32px)); height: min(590px, calc(100dvh - 118px)); min-height: 340px;
  overflow: hidden; border: 1px solid rgba(24, 49, 45, .12); border-radius: 18px; background: var(--npa-panel);
  box-shadow: 0 16px 55px rgba(24, 49, 45, .22); color: var(--npa-ink);
}
.npa-panel[hidden] { display: none; }
.npa-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 72px; padding: 15px 17px; background: #f7fbfa; border-bottom: 1px solid var(--npa-line); }
.npa-header div { display: grid; gap: 4px; }
.npa-header strong { font-size: 15px; font-weight: 650; }
.npa-header span { color: var(--npa-muted); font-size: 12px; }
.npa-close { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border: 1px solid var(--npa-line); border-radius: 50%; background: #fff; color: var(--npa-ink); font-size: 25px; line-height: 1; cursor: pointer; }
.npa-messages { display: flex; flex: 1; flex-direction: column; gap: 10px; overflow: auto; padding: 16px; overscroll-behavior: contain; }
.npa-message { max-width: 92%; padding: 11px 13px; border-radius: 14px; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.npa-message--bot { align-self: flex-start; background: #f1f5f3; color: var(--npa-ink); border-bottom-left-radius: 4px; }
.npa-message--user { align-self: flex-end; background: var(--npa-accent); color: #102220; border-bottom-right-radius: 4px; }
.npa-message--typing { display: inline-flex; align-items: center; gap: 4px; min-width: 52px; min-height: 36px; padding: 12px 14px; }
.npa-message--typing span { width: 6px; height: 6px; border-radius: 50%; background: #68716f; animation: npa-typing 1.1s infinite ease-in-out; }
.npa-message--typing span:nth-child(2) { animation-delay: .15s; }
.npa-message--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes npa-typing { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .npa-message--typing span { animation: none; opacity: .7; } }
.npa-products { display: grid; gap: 9px; }
.npa-product { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 11px; padding: 9px; border: 1px solid var(--npa-line); border-radius: 12px; background: #fff; }
.npa-product > a:first-child { display: block; width: 72px; height: 82px; overflow: hidden; border-radius: 8px; background: #f5f6f5; }
.npa-product img { display: block; width: 100%; height: 100%; object-fit: contain; }
.npa-product-details { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 3px; }
.npa-product-title { color: var(--npa-ink); font-size: 13px; font-weight: 650; line-height: 1.35; text-decoration: none; }
.npa-product-title:hover { text-decoration: underline; text-decoration-color: var(--npa-accent); }
.npa-product-meta { color: var(--npa-muted); font-size: 11px; line-height: 1.4; }
.npa-product-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; color: var(--npa-accent); font-size: 13px; font-weight: 700; }
.npa-product-price del { color: #929896; font-weight: 400; }
.npa-product-price ins { color: var(--npa-accent); text-decoration: none; }
.npa-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--npa-line); }
.npa-form input { width: 100%; min-width: 0; min-height: 44px; padding: 9px 12px; border: 1px solid #d9e2df; border-radius: 10px; background: #fff; color: var(--npa-ink); font: inherit; font-size: 14px; box-shadow: none; }
.npa-form input:focus { border-color: var(--npa-accent); outline: 2px solid rgba(19, 207, 185, .18); }
.npa-form button { flex: 0 0 auto; min-width: 64px; min-height: 44px; padding: 0 13px; border: 0; border-radius: 10px; background: var(--npa-accent); color: #102220; font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; }
.npa-form button:hover { background: #0eb6a4; }
.npa-note { margin: 0; padding: 0 14px 11px; color: #76807d; font-size: 10px; line-height: 1.4; text-align: center; }
@media (max-width: 600px) {
  .npa-launcher { right: 14px; bottom: calc(env(safe-area-inset-bottom, 0px) + 82px); min-height: 46px; padding: 0 15px; }
  .npa-panel { right: 10px; bottom: calc(env(safe-area-inset-bottom, 0px) + 138px); width: calc(100vw - 20px); height: min(68dvh, 570px); min-height: 320px; border-radius: 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  .npa-launcher, .npa-form button { transition: background-color .16s ease, color .16s ease; }
}
