.na-root { position: fixed; right: 68px; bottom: 18px; z-index: 9999; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }

@media only screen and  (max-width: 767px){
    .na-root { right:15px;}
}


.na-bubble {
  width: 175px; height: 56px; border-radius: 999px; border: none; cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  font-size: 18px; font-weight: 700;
  border: 2px solid #fff;
}
.na-bubble.is-hidden { display: none; }

.na-panel {
  width: 360px; max-width: calc(100vw - 36px);
  height: 520px; max-height: calc(100vh - 36px);
  background: #fff; border-radius: 14px; box-shadow: 0 16px 50px rgba(0,0,0,.22);
  overflow: hidden; display: none;
}
.na-panel.is-open { display: block; }

.na-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 12px; border-bottom: 1px solid rgba(0,0,0,.08);
}
.na-title { font-weight: 700; font-size: 15px; }
.na-close { border: none; background: transparent; font-size: 26px; cursor: pointer; line-height: 1; }

.na-body { padding: 12px; height: calc(100% - 49px); display: flex; flex-direction: column; }
.na-search { display: flex; gap: 8px; }
.na-input { flex: 1; padding: 10px 10px; border: 1px solid rgba(0,0,0,.18); border-radius: 10px; }
.na-go { padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(0,0,0,.18); background: #fff; cursor: pointer; }
.na-hint { margin-top: 8px; font-size: 12px; }
.na-muted { opacity: .7; }
.na-results { margin-top: 10px; overflow: auto; padding-right: 4px; flex: 1; }

.na-section { font-size: 12px; font-weight: 700; opacity: .75; margin: 6px 0 8px; }
.na-card { border: 1px solid rgba(0,0,0,.10); border-radius: 12px; padding: 10px; margin-bottom: 10px; }
.na-q { font-weight: 700; margin-bottom: 6px; }
.na-a {
  font-size: 13px;
  line-height: 1.35;
  opacity: .92;
  white-space: pre-wrap;   /* <-- behold linjeskift */
  word-break: break-word;  /* <-- ikke kutt rare ord/url */
}
.na-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.na-link { font-size: 13px; text-decoration: underline; }
.na-feedback { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.na-fb { border: 1px solid rgba(0,0,0,.18); background: #fff; border-radius: 999px; padding: 4px 8px; cursor: pointer; }
.na-fb:disabled { opacity: .5; cursor: default; }

.na-badge {
  display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 999px;
  font-size: 11px; border: 1px solid rgba(0,0,0,.12); opacity: .8;
}
.na-loading, .na-empty { padding: 12px; font-size: 13px; opacity: .8; }
.na-footer { margin-top: 8px; }
.na-small { font-size: 11px; }

.na-q { display:flex; gap:10px; justify-content:space-between; align-items:flex-start; }
.na-badges { display:flex; gap:6px; flex-wrap:wrap; justify-content:flex-end; }
.na-badge { display:inline-block; padding:2px 8px; border-radius:999px; font-size:12px; }
.na-badge {
  cursor: pointer;
}
.na-badge:hover {
  opacity: 0.85;
}
/* --- Bubble: mer synlig --- */
.na-bubble{
  background: #1ab394;            /* Inspinia/“success”-grønn (bytt til DNSR-farge om ønskelig) */
  color:#fff;
  box-shadow: 0 12px 34px rgba(26,179,148,.35), 0 10px 30px rgba(0,0,0,.18);
  letter-spacing: .2px;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.na-bubble:hover{
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.na-bubble:active{
  transform: translateY(0);
  box-shadow: 0 10px 26px rgba(26,179,148,.30), 0 8px 22px rgba(0,0,0,.16);
}

/* Litt tydeligere border mot lyse bakgrunner */
.na-bubble{
  border: 2px solid rgba(255,255,255,.85);
}
@keyframes na-pop {
  0%   { transform: translateY(8px) scale(.98); opacity: 0; }
  60%  { transform: translateY(0) scale(1.02); opacity: 1; }
  100% { transform: translateY(0) scale(1); }
}

@keyframes na-pulse {
  0%, 100% { box-shadow: 0 12px 34px rgba(26,179,148,.28), 0 10px 30px rgba(0,0,0,.18); }
  50%      { box-shadow: 0 14px 40px rgba(26,179,148,.45), 0 12px 34px rgba(0,0,0,.20); }
}

.na-bubble.na-animate-in{
  animation: na-pop .35s ease-out both, na-pulse 1.8s ease-in-out 3; /* 3 pulser */
}
@media (prefers-reduced-motion: reduce){
  .na-bubble, .na-bubble.na-animate-in{
    animation: none !important;
    transition: none !important;
  }
}
