@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("https://www.nutrisolution.fr/cdn/fonts/montserrat/montserrat_n5.07ef3781d9c78c8b93c98419da7ad4fbeebb6635.woff2") format("woff2");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("https://www.nutrisolution.fr/cdn/fonts/montserrat/montserrat_n6.1326b3e84230700ef15b3a29fb520639977513e0.woff2") format("woff2");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("https://www.nutrisolution.fr/cdn/fonts/montserrat/montserrat_n7.3c434e22befd5c18a6b4afadb1e3d77c128c7939.woff2") format("woff2");
}

#ns-chatbot,
.demo-page {
  color-scheme: light;
  --ns-heading: #000;
  --ns-ink: #282828;
  --ns-muted: #686868;
  --ns-line: #dfdfdf;
  --ns-line-dark: #a9a9a9;
  --ns-soft: #f5f5f5;
  --ns-teal: #36b78e;
  --ns-teal-dark: #238b6b;
  --ns-teal-soft: #e7f6f1;
  --ns-yellow: #ffda54;
  --ns-success: #2e9e7b;
  --ns-white: #fff;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0;
}

#ns-chatbot,
#ns-chatbot * {
  box-sizing: border-box;
}

.demo-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px;
  color: var(--ns-ink);
  background:
    linear-gradient(var(--ns-yellow) 0 42px, transparent 42px),
    linear-gradient(var(--ns-teal) 42px 88px, transparent 88px),
    #f5f5f5;
}

.demo-copy {
  width: min(680px, 100%);
  padding: 42px;
  border: 1px solid var(--ns-line);
  border-radius: 0;
  background: var(--ns-white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--ns-teal-dark);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.demo-copy h1 {
  margin: 0 0 16px;
  color: var(--ns-heading);
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.05;
  text-transform: uppercase;
}

.demo-copy p:last-child {
  margin: 0;
  max-width: 58ch;
  color: var(--ns-muted);
  font-size: 17px;
  line-height: 1.65;
}

.ns-chat-toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  width: 60px;
  height: 60px;
  padding: 0;
  overflow: hidden;
  border: 3px solid var(--ns-white);
  border-radius: 50%;
  color: var(--ns-white);
  background: var(--ns-teal-soft);
  box-shadow: 0 12px 34px rgba(40, 40, 40, 0.24);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.ns-chat-toggle::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  width: 13px;
  height: 13px;
  border: 2px solid var(--ns-white);
  border-radius: 50%;
  background: var(--ns-yellow);
  content: "";
}

.ns-chat-toggle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
}

.ns-chat-toggle[hidden] {
  display: none;
}

.ns-chat-toggle:hover {
  box-shadow: 0 16px 42px rgba(40, 40, 40, 0.3);
  transform: translateY(-3px);
}

.ns-chat-toggle:focus-visible,
.ns-chat-close:focus-visible,
.ns-send-button:focus-visible,
.ns-chat-tabs button:focus-visible,
.ns-video-play:focus-visible {
  outline: 3px solid rgba(255, 218, 84, 0.9);
  outline-offset: 3px;
}

.ns-chat-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 15;
  width: min(360px, calc(100vw - 28px));
  height: min(630px, calc(100svh - 28px));
  display: none;
  grid-template-rows: 96px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--ns-line);
  border-top: 4px solid var(--ns-yellow);
  border-radius: 18px;
  background: var(--ns-white);
  box-shadow: 0 22px 64px rgba(40, 40, 40, 0.24);
  transform-origin: bottom right;
}

.ns-chat-panel[data-open="true"] {
  display: grid;
  animation: nsPanelIn 200ms ease-out both;
}

@keyframes nsPanelIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ns-chat-header {
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 40px;
  align-items: center;
  min-height: 96px;
  gap: 12px;
  padding: 10px 14px;
  color: var(--ns-white);
  background: var(--ns-teal);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.ns-agent-avatar {
  width: 72px;
  height: 72px;
  overflow: hidden;
  border: 3px solid var(--ns-white);
  border-radius: 50%;
  background: var(--ns-teal-soft);
}

.ns-agent-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
}

.ns-agent-copy {
  min-width: 0;
}

.ns-agent-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.ns-agent-row h2 {
  margin: 0;
  overflow: hidden;
  color: var(--ns-white);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ns-agent-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 25px;
  height: 20px;
  padding: 0 5px;
  border-radius: 6px;
  color: var(--ns-ink);
  background: var(--ns-yellow);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.ns-brand-wordmark {
  display: block;
  width: 132px;
  height: 24px;
  margin-top: 5px;
  overflow: hidden;
}

.ns-brand-wordmark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.ns-chat-close {
  justify-self: end;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 10px;
  color: var(--ns-white);
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.ns-chat-close:hover {
  border-color: var(--ns-yellow);
  color: var(--ns-ink);
  background: var(--ns-yellow);
}

.ns-chat-close svg {
  width: 23px;
  height: 23px;
}

.ns-chat-body {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto auto;
  min-height: 0;
  background: var(--ns-white);
}

.ns-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 14px 12px;
  background: var(--ns-white);
  scrollbar-color: var(--ns-line-dark) transparent;
  scrollbar-width: thin;
}

.ns-welcome {
  margin: 0 0 auto;
  color: var(--ns-ink);
  font-size: 13px;
  line-height: 1.55;
}

.ns-welcome strong {
  color: var(--ns-heading);
  font-weight: 700;
}

.ns-video-card {
  width: 100%;
  margin-top: 6px;
  overflow: hidden;
  border: 1px solid var(--ns-line);
  border-radius: 12px;
  background: var(--ns-white);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.ns-video-card[hidden] {
  display: none;
}

.ns-video-card[data-visible="true"] {
  opacity: 1;
  transform: translateY(0);
}

.ns-video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--ns-soft);
}

.ns-video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ns-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--ns-white);
  border-radius: 50%;
  color: var(--ns-ink);
  background: var(--ns-yellow);
  cursor: pointer;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  transition: transform 160ms ease, background 160ms ease;
}

.ns-video-play:hover {
  background: var(--ns-white);
  transform: translate(-50%, -50%) scale(1.05);
}

.ns-video-play[data-playing="true"] {
  left: auto;
  right: 8px;
  top: 8px;
  width: 34px;
  height: 34px;
  transform: none;
}

.ns-video-play[data-playing="true"]:hover {
  transform: scale(1.04);
}

.ns-video-copy {
  display: grid;
  gap: 3px;
  padding: 10px 11px;
  border-top: 1px solid var(--ns-line);
}

.ns-video-copy strong {
  color: var(--ns-heading);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.ns-video-copy span {
  color: var(--ns-muted);
  font-size: 10px;
  line-height: 1.35;
}

.ns-msg {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--ns-ink);
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.ns-msg-user {
  align-self: flex-end;
  border: 1px solid var(--ns-teal);
  color: var(--ns-white);
  background: var(--ns-teal);
}

.ns-msg-bot {
  align-self: flex-start;
  border: 1px solid var(--ns-line);
  background: var(--ns-soft);
}

.ns-msg-bot[data-thinking="true"] {
  padding: 9px 11px;
}

.ns-msg-text a {
  color: var(--ns-teal-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

.ns-typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 42px;
  height: 22px;
}

.ns-typing-indicator span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ns-teal);
  opacity: 0.38;
  animation: nsTypingDot 980ms ease-in-out infinite;
}

.ns-typing-indicator span:nth-child(2) {
  animation-delay: 120ms;
}

.ns-typing-indicator span:nth-child(3) {
  animation-delay: 240ms;
}

@keyframes nsTypingDot {
  0%, 70%, 100% { opacity: 0.35; transform: translateY(0); }
  35% { opacity: 1; transform: translateY(-4px); }
}

.ns-msg-meta {
  margin-top: 8px;
  color: var(--ns-muted);
  font-size: 10px;
}

.ns-tracking-card,
.ns-product-card,
.ns-self-service-card {
  margin-top: 10px;
  border: 1px solid rgba(46, 158, 123, 0.38);
  border-radius: 12px;
  color: var(--ns-ink);
  background: var(--ns-white);
}

.ns-tracking-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 10px;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.ns-tracking-card:hover,
.ns-product-card:hover {
  border-color: var(--ns-success);
  background: var(--ns-teal-soft);
}

.ns-tracking-icon,
.ns-self-service-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--ns-white);
  background: var(--ns-success);
  display: grid;
  place-items: center;
}

.ns-tracking-icon svg,
.ns-self-service-icon svg {
  width: 19px;
  height: 19px;
}

.ns-tracking-card strong,
.ns-tracking-card small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ns-tracking-card strong {
  color: var(--ns-heading);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.ns-tracking-card small {
  margin-top: 2px;
  color: var(--ns-muted);
  font-size: 9px;
  line-height: 1.2;
}

.ns-product-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease;
}

.ns-product-card img,
.ns-product-placeholder {
  width: 48px;
  height: 48px;
  border: 1px solid var(--ns-line);
  border-radius: 8px;
  background: var(--ns-white);
  object-fit: contain;
}

.ns-product-placeholder {
  display: grid;
  place-items: center;
  color: var(--ns-teal-dark);
}

.ns-product-placeholder svg {
  width: 22px;
  height: 22px;
}

.ns-product-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.ns-product-card strong,
.ns-product-card small,
.ns-product-cta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ns-product-card strong {
  color: var(--ns-heading);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.ns-product-card small {
  color: var(--ns-muted);
  font-size: 9px;
  font-style: normal;
  line-height: 1.2;
}

.ns-product-cta {
  justify-self: start;
  margin-top: 2px;
  padding: 4px 7px;
  border-radius: 7px;
  color: var(--ns-ink);
  background: var(--ns-yellow);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
}

.ns-self-service-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 10px;
}

.ns-self-service-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.ns-self-service-copy strong {
  color: var(--ns-heading);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.ns-self-service-copy small {
  color: var(--ns-muted);
  font-size: 9px;
  line-height: 1.3;
}

.ns-self-service-link {
  grid-column: 1 / -1;
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  color: var(--ns-ink);
  background: var(--ns-yellow);
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 160ms ease, transform 160ms ease;
}

.ns-self-service-link:hover {
  filter: brightness(0.96);
  transform: translateY(-1px);
}

.ns-handoff-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 38px;
  margin-top: 10px;
  border: 1px solid var(--ns-line-dark);
  border-radius: 9px;
  color: var(--ns-ink);
  background: var(--ns-white);
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.ns-handoff-button svg {
  width: 18px;
  height: 18px;
}

.ns-handoff-button:hover {
  border-color: var(--ns-teal);
  background: var(--ns-teal-soft);
}

.ns-handoff-button:disabled {
  cursor: default;
  opacity: 0.55;
}

.ns-handoff-button-compact {
  margin-top: 8px;
}

.ns-self-service-link:focus-visible,
.ns-handoff-button:focus-visible,
.ns-tracking-card:focus-visible,
.ns-product-card:focus-visible {
  outline: 3px solid rgba(255, 218, 84, 0.8);
  outline-offset: 2px;
}

.ns-chat-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 11px;
  border-top: 1px solid var(--ns-line);
  border-bottom: 1px solid var(--ns-line);
  background: #f6faf8;
}

.ns-chat-tabs button {
  position: relative;
  min-width: 0;
  height: 56px;
  padding: 7px 10px;
  border: 1px solid #d8e3de;
  border-radius: 13px;
  color: var(--ns-ink);
  background: #fcfefd;
  cursor: pointer;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  place-items: center start;
  align-content: center;
  gap: 9px;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  box-shadow: 0 2px 5px rgba(35, 139, 107, 0.04);
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.ns-chat-tabs button:hover {
  color: var(--ns-ink);
  border-color: rgba(54, 183, 142, 0.55);
  background: var(--ns-white);
  box-shadow: 0 8px 18px rgba(35, 139, 107, 0.11);
  transform: translateY(-1px);
}

.ns-chat-tabs button:active {
  box-shadow: 0 2px 6px rgba(35, 139, 107, 0.08);
  transform: translateY(0);
}

.ns-chat-tabs button:disabled {
  cursor: progress;
  opacity: 0.58;
  transform: none;
}

.ns-chat-tab-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: var(--ns-teal-dark);
  background: var(--ns-teal-soft);
  display: grid;
  place-items: center;
  transition: color 180ms ease, background 180ms ease;
}

.ns-chat-tabs button:nth-child(2) .ns-chat-tab-icon,
.ns-chat-tabs button:nth-child(4) .ns-chat-tab-icon {
  color: #725c00;
  background: #fff5ce;
}

.ns-chat-tabs button:hover .ns-chat-tab-icon {
  color: var(--ns-ink);
  background: var(--ns-yellow);
}

.ns-chat-tab-icon svg {
  display: block;
  width: 21px;
  height: 21px;
}

.ns-chat-tabs button > span:last-child {
  display: block;
  width: 100%;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ns-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: center;
  min-height: 50px;
  margin: 10px 11px 8px;
  padding: 0 5px 0 13px;
  border: 1px solid #d5ddd9;
  border-radius: 15px;
  background: #f9fbfa;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.ns-chat-form:focus-within {
  border-color: var(--ns-teal);
  background: var(--ns-white);
  box-shadow: 0 0 0 3px rgba(54, 183, 142, 0.11);
}

.ns-chat-form input {
  min-width: 0;
  height: 42px;
  border: 0;
  outline: 0;
  color: var(--ns-ink);
  background: transparent;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0;
}

.ns-chat-form input::placeholder {
  color: #858585;
  opacity: 1;
}

.ns-attach-button {
  display: none;
}

.ns-send-button {
  justify-self: end;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: var(--ns-ink);
  background: var(--ns-yellow);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(148, 114, 0, 0.14);
  transition: filter 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.ns-send-button:hover {
  filter: brightness(0.96);
  box-shadow: 0 7px 16px rgba(148, 114, 0, 0.2);
  transform: translateX(1px) scale(1.02);
}

.ns-send-button svg {
  width: 19px;
  height: 19px;
}

.ns-send-button:disabled {
  cursor: progress;
  opacity: 0.58;
  transform: none;
}

.ns-chat-terms {
  margin: 0;
  padding: 0 14px 9px;
  color: var(--ns-muted);
  background: var(--ns-white);
  text-align: center;
  font-size: 8px;
  line-height: 1.35;
}

.ns-chat-terms a {
  color: var(--ns-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 560px) {
  .demo-page {
    display: none;
  }

  .ns-chat-panel {
    inset: 0;
    width: 100vw;
    height: 100svh;
    border: 0;
    border-top: 4px solid var(--ns-yellow);
    border-radius: 0;
    box-shadow: none;
  }

  .ns-chat-panel[data-open="true"] {
    animation: none;
  }

  .ns-chat-header {
    padding-right: 14px;
  }

  .ns-welcome {
    font-size: 14px;
  }

  .ns-chat-toggle {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 360px) {
  .ns-chat-header {
    grid-template-columns: 66px minmax(0, 1fr) 36px;
    gap: 8px;
    padding-left: 9px;
    padding-right: 9px;
  }

  .ns-agent-avatar {
    width: 64px;
    height: 64px;
  }

  .ns-agent-row h2 {
    font-size: 15px;
  }

  .ns-brand-wordmark {
    width: 114px;
  }

  .ns-chat-tabs {
    gap: 6px;
    padding-left: 7px;
    padding-right: 7px;
  }

  .ns-chat-tabs button {
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ns-chat-panel[data-open="true"] {
    animation: none;
  }

  .ns-typing-indicator span {
    animation: none;
  }
}
