:root {
  --nf-assistant-orange: #fd6301;
  --nf-assistant-dark: #202020;
  --nf-assistant-muted: #667085;
  --nf-assistant-border: #e5e7eb;
}

.nf-assistant,
.nf-assistant * {
  box-sizing: border-box;
}

.nf-assistant {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999999;
  font-family: Manrope, Arial, Helvetica, sans-serif;
  color: var(--nf-assistant-dark);
}

.nf-assistant__launcher {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 8px 20px 8px 8px;
  background: var(--nf-assistant-orange);
  color: #fff;
  box-shadow: 0 16px 38px rgba(32, 32, 32, .24);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.nf-assistant__launcher[hidden] {
  display: none;
}

.nf-assistant .screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.nf-assistant__launcher:hover,
.nf-assistant__launcher:focus-visible {
  background: #e95800;
  transform: translateY(-1px);
}

.nf-assistant__launcher:focus-visible,
.nf-assistant__close:focus-visible,
.nf-assistant__suggestions button:focus-visible,
.nf-assistant__form input:focus-visible,
.nf-assistant__form button:focus-visible,
.nf-assistant__answer a:focus-visible {
  outline: 3px solid rgba(253, 99, 1, .35);
  outline-offset: 3px;
}

.nf-assistant__launcher-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--nf-assistant-orange);
  font-size: 23px;
  line-height: 1;
}

.nf-assistant__panel {
  width: min(390px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 110px));
  display: grid;
  grid-template-rows: auto minmax(150px, 1fr) auto auto auto;
  position: absolute;
  right: 0;
  bottom: 72px;
  overflow: hidden;
  border: 1px solid var(--nf-assistant-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(20, 24, 32, .26);
}

.nf-assistant__panel[hidden] {
  display: none;
}

.nf-assistant__header {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 22px 22px 18px;
  background: var(--nf-assistant-dark);
  color: #fff;
}

.nf-assistant__header h2 {
  margin: 3px 0 5px;
  color: #fff;
  font: 800 19px/1.25 Manrope, Arial, Helvetica, sans-serif;
}

.nf-assistant__header p {
  margin: 0;
  color: #d6d7da;
  font-size: 13px;
  line-height: 1.45;
}

.nf-assistant__header .nf-assistant__eyebrow {
  color: #ffad78;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.nf-assistant__close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}

.nf-assistant__messages {
  overflow-y: auto;
  padding: 18px;
  background: #f7f8fa;
  overscroll-behavior: contain;
}

.nf-assistant__message {
  max-width: 88%;
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.nf-assistant__message--bot {
  margin-right: auto;
  border: 1px solid var(--nf-assistant-border);
  border-bottom-left-radius: 5px;
  background: #fff;
}

.nf-assistant__message--user {
  margin-left: auto;
  border-bottom-right-radius: 5px;
  background: var(--nf-assistant-orange);
  color: #fff;
  font-weight: 650;
}

.nf-assistant__answer p {
  margin: 0 0 8px;
}

.nf-assistant__answer p:last-child {
  margin-bottom: 0;
}

.nf-assistant__answer a {
  color: #bd4800;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nf-assistant__suggestions {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 12px 14px 8px;
  background: #fff;
  scrollbar-width: thin;
}

.nf-assistant__suggestions button {
  flex: 0 0 auto;
  border: 1px solid #f3b78f;
  border-radius: 999px;
  padding: 7px 11px;
  background: #fff7f2;
  color: #8e3700;
  cursor: pointer;
  font: 750 12px/1.2 Manrope, Arial, Helvetica, sans-serif;
}

.nf-assistant__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 8px 14px 10px;
  background: #fff;
}

.nf-assistant__form input {
  min-width: 0;
  height: 46px;
  border: 1px solid #d5d9df;
  border-radius: 13px;
  padding: 0 13px;
  background: #fff;
  color: var(--nf-assistant-dark);
  font: 500 14px/1 Manrope, Arial, Helvetica, sans-serif;
}

.nf-assistant__form button {
  height: 46px;
  border: 0;
  border-radius: 13px;
  padding: 0 16px;
  background: var(--nf-assistant-orange);
  color: #fff;
  cursor: pointer;
  font: 800 13px/1 Manrope, Arial, Helvetica, sans-serif;
}

.nf-assistant__privacy {
  margin: 0;
  padding: 0 16px 13px;
  background: #fff;
  color: var(--nf-assistant-muted);
  font-size: 10px;
  line-height: 1.35;
  text-align: center;
}

@media (max-width: 640px) {
  .nf-assistant {
    right: 12px;
    bottom: 12px;
  }

  .nf-assistant__launcher {
    min-height: 54px;
    padding-right: 16px;
  }

  .nf-assistant__launcher-icon {
    width: 38px;
    height: 38px;
  }

  .nf-assistant__panel {
    position: fixed;
    inset: 12px;
    width: auto;
    max-height: none;
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nf-assistant__launcher {
    transition: none;
  }
}

