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

#nv-public-chatbot {
  position: fixed !important;
  right: 24px !important;
  bottom: 22px !important;
  left: auto !important;
  top: auto !important;
  z-index: 2147483000 !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  color: #292721;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
}

#nv-public-chatbot .nv-chatbot__launcher,
.contact-shortcuts .nv-chatbot__launcher,
#nv-public-chatbot .nv-chatbot__accept,
#nv-public-chatbot .nv-chatbot__decline,
#nv-public-chatbot .nv-chatbot__close,
#nv-public-chatbot .nv-chatbot__composer button {
  appearance: none;
  width: auto;
  min-height: 0;
  margin: 0;
  border: 0;
  box-shadow: none;
  letter-spacing: normal;
  font: inherit;
  cursor: pointer;
}

#nv-public-chatbot .nv-chatbot__launcher {
  display: inline-flex;
  width: 40px;
  height: 40px;
  margin: 0 0 5px;
  padding: 6px 6px 6px 0;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  border: 0;
  border-radius: 0 !important;
  background: #d43b43;
  box-shadow: none;
  transition: width .18s ease, background-color .18s ease;
}

.contact-shortcuts .nv-chatbot__launcher {
  display: inline-flex;
  width: 40px;
  height: 40px;
  margin: 0 0 5px;
  padding: 6px 6px 6px 0;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  border: 0;
  border-radius: 0 !important;
  background: #d43b43;
  box-shadow: none;
  transition: width .18s ease, background-color .18s ease;
}

#nv-public-chatbot .nv-chatbot__launcher-avatar,
.contact-shortcuts .nv-chatbot__launcher-avatar {
  position: relative;
  display: block;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(45, 15, 16, .3);
}

#nv-public-chatbot .nv-chatbot__launcher-avatar img,
.contact-shortcuts .nv-chatbot__launcher-avatar img {
  position: absolute;
  top: 0;
  left: 50%;
  display: block;
  width: 42px;
  max-width: none;
  height: auto;
  transform: translateX(-50%);
}

#nv-public-chatbot .nv-chatbot__launcher:hover,
.contact-shortcuts .nv-chatbot__launcher:hover,
#nv-public-chatbot .nv-chatbot__launcher:focus-visible,
.contact-shortcuts .nv-chatbot__launcher:focus-visible {
  width: 50px;
  background: #b92b33;
  box-shadow: none;
  transform: none;
}

#nv-public-chatbot .nv-chatbot__panel {
  position: fixed !important;
  right: auto !important;
  bottom: 82px !important;
  left: 100px !important;
  top: auto !important;
  display: block;
  width: 420px !important;
  min-width: 0 !important;
  max-width: calc(100vw - 48px) !important;
  height: auto !important;
  max-height: calc(100vh - 110px) !important;
  max-height: calc(100dvh - 110px) !important;
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(82, 72, 55, .2);
  border-radius: 18px !important;
  background: #fff;
  box-shadow: 0 22px 65px rgba(25, 22, 17, .3);
}

#nv-public-chatbot .nv-chatbot__header {
  position: static !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 120px;
  margin: 0;
  padding: 12px 18px;
  background: #292721;
  color: #fff;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

#nv-public-chatbot .nv-chatbot__header--dragging { cursor: grabbing; }

#nv-public-chatbot .nv-chatbot__identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

#nv-public-chatbot .nv-chatbot__avatar {
  display: grid;
  flex: 0 0 94px;
  width: 94px;
  height: 94px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
}

#nv-public-chatbot .nv-chatbot__avatar svg {
  display: block;
  width: 25px;
  height: 25px;
  fill: rgba(255, 255, 255, .88);
}

#nv-public-chatbot .nv-chatbot__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#nv-public-chatbot .nv-chatbot__avatar--robert {
  position: relative;
  background: #b9aa96;
}

#nv-public-chatbot .nv-chatbot__avatar--robert img {
  position: absolute;
  top: 0;
  left: 50%;
  width: 125px;
  max-width: none;
  height: auto;
  transform: translateX(-50%);
}

#nv-public-chatbot .nv-chatbot__header strong {
  display: block;
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

#nv-public-chatbot .nv-chatbot__header small {
  display: block;
  margin: 3px 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  line-height: 1.35;
}

#nv-public-chatbot .nv-chatbot__close {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, .09);
  color: #fff;
  font-size: 24px;
  line-height: 30px;
  text-align: center;
}

#nv-public-chatbot .nv-chatbot__close:hover,
#nv-public-chatbot .nv-chatbot__close:focus-visible {
  background: rgba(255, 255, 255, .18);
}

#nv-public-chatbot .nv-chatbot__consent {
  width: 100%;
  max-height: calc(100vh - 190px);
  max-height: calc(100dvh - 190px);
  margin: 0;
  padding: 22px;
  overflow: auto;
  background: #fff;
  color: #3f3b34;
  font-size: 14px;
  line-height: 1.55;
}

#nv-public-chatbot .nv-chatbot__consent h2 {
  margin: 0 0 12px;
  color: #292721;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

#nv-public-chatbot .nv-chatbot__consent p {
  margin: 0 0 11px;
}

#nv-public-chatbot .nv-chatbot__consent a {
  color: #75613f;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#nv-public-chatbot .nv-chatbot__consent-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

#nv-public-chatbot .nv-chatbot__accept,
#nv-public-chatbot .nv-chatbot__composer button {
  border-radius: 999px !important;
  padding: 11px 16px;
  background: #8f7b59;
  color: #fff;
  font-weight: 700;
}

#nv-public-chatbot .nv-chatbot__decline {
  border: 1px solid #c9c2b7;
  border-radius: 999px !important;
  padding: 10px 15px;
  background: #fff;
  color: #4b463d;
  font-weight: 600;
}

#nv-public-chatbot button:disabled {
  cursor: wait;
  opacity: .6;
}

#nv-public-chatbot .nv-chatbot__conversation {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: min(570px, calc(100vh - 190px));
  height: min(570px, calc(100dvh - 190px));
  margin: 0;
  background: #f5f2ec;
}

#nv-public-chatbot .nv-chatbot__messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 18px;
  background: #f5f2ec;
}

#nv-public-chatbot .nv-chatbot__message {
  width: fit-content;
  max-width: 86%;
  margin: 0;
  padding: 10px 12px;
  border-radius: 13px !important;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

#nv-public-chatbot .nv-chatbot__message-row {
  display: flex;
  width: 100%;
  margin: 0 0 11px;
  align-items: flex-end;
  gap: 8px;
}

#nv-public-chatbot .nv-chatbot__message-row--assistant { justify-content: flex-start; }
#nv-public-chatbot .nv-chatbot__message-row--user {
  flex-direction: row-reverse;
  justify-content: flex-start;
}

#nv-public-chatbot .nv-chatbot__message--assistant {
  border: 1px solid #dfd9cf;
  border-bottom-left-radius: 4px !important;
  background: #fff;
  color: #35322d;
}

#nv-public-chatbot .nv-chatbot__message--user {
  margin-left: 0;
  border-bottom-right-radius: 4px !important;
  border: 1px solid #c4e9bd;
  background: #d9fdd3;
  color: #26332a;
}

#nv-public-chatbot .nv-chatbot__welcome {
  width: auto;
  max-width: 100%;
  padding: 12px 14px;
  white-space: normal;
}

#nv-public-chatbot .nv-chatbot__welcome p { margin: 0 0 6px; }
#nv-public-chatbot .nv-chatbot__welcome p:last-child { margin-bottom: 0; }
#nv-public-chatbot .nv-chatbot__welcome a,
#nv-public-chatbot .nv-chatbot__notice a {
  color: #75613f;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#nv-public-chatbot .nv-chatbot__media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: min(300px, 72vw);
  margin-top: 10px;
}

#nv-public-chatbot .nv-chatbot__media-card {
  display: block;
  overflow: hidden;
  border: 1px solid #dfd9cf;
  border-radius: 9px;
  background: #fff;
  color: #35322d;
  text-decoration: none;
}

#nv-public-chatbot .nv-chatbot__media-card:hover,
#nv-public-chatbot .nv-chatbot__media-card:focus {
  color: #6f5c3d;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(50, 42, 31, .14);
}

#nv-public-chatbot .nv-chatbot__media-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eeeae3;
}

#nv-public-chatbot .nv-chatbot__media-card span {
  display: block;
  padding: 7px 8px;
  font-size: 12px;
  line-height: 1.25;
}

#nv-public-chatbot .nv-chatbot__thinking {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 54px;
  padding: 13px 14px;
}

#nv-public-chatbot .nv-chatbot__thinking span {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8f7b59;
  animation: nv-chatbot-thinking 1.15s infinite ease-in-out;
}

#nv-public-chatbot .nv-chatbot__thinking span:nth-child(2) { animation-delay: .15s; }
#nv-public-chatbot .nv-chatbot__thinking span:nth-child(3) { animation-delay: .3s; }

@keyframes nv-chatbot-thinking {
  0%, 60%, 100% { opacity: .35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

#nv-public-chatbot .nv-chatbot__composer {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  width: 100%;
  margin: 0;
  padding: 12px;
  border-top: 1px solid #ded8ce;
  background: #fff;
}

#nv-public-chatbot .nv-chatbot__composer textarea {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  min-height: 46px;
  height: 46px;
  max-height: 110px;
  margin: 0;
  padding: 11px 12px;
  resize: none;
  border: 1px solid #bdb5a8;
  border-radius: 11px !important;
  background: #fff;
  color: #292721;
  font: inherit;
  font-size: 14px;
  letter-spacing: normal;
  line-height: 1.4;
}

#nv-public-chatbot .nv-chatbot__composer textarea:focus {
  outline: 2px solid rgba(143, 123, 89, .22);
  border-color: #8f7b59;
  border-radius: 11px !important;
}

#nv-public-chatbot .nv-chatbot__composer button {
  flex: 0 0 auto;
  min-height: 46px;
  padding-right: 15px;
  padding-left: 15px;
}

#nv-public-chatbot .nv-chatbot__notice {
  display: block;
  margin: 0;
  padding: 0 13px 11px;
  background: #fff;
  color: #777168;
  font-size: 11px;
  line-height: 1.35;
}

#nv-public-chatbot .nv-chatbot__error {
  margin: 0;
  padding: 9px 13px;
  background: #f8d7da;
  color: #842029;
  font-size: 13px;
}

#nv-public-chatbot [hidden] {
  display: none !important;
}

@media (max-width: 560px) {
  #nv-public-chatbot {
    right: 0 !important;
    bottom: 0 !important;
    font-size: 21px;
  }

  #nv-public-chatbot .nv-chatbot__panel {
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    top: 0 !important;
    display: flex;
    height: 100vh !important;
    height: 100dvh !important;
    width: auto !important;
    max-width: none !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    flex-direction: column;
    border: 0;
    border-radius: 0 !important;
  }

  #nv-public-chatbot .nv-chatbot__header {
    flex: 0 0 96px;
    min-height: 96px;
    padding: 10px 16px;
    cursor: default;
    touch-action: auto;
  }

  #nv-public-chatbot .nv-chatbot__avatar {
    flex-basis: 62px;
    width: 62px;
    height: 62px;
  }

  #nv-public-chatbot .nv-chatbot__avatar--robert img {
    width: 83px;
  }

  #nv-public-chatbot .nv-chatbot__header strong {
    font-size: 21px;
  }

  #nv-public-chatbot .nv-chatbot__header small {
    font-size: 17px;
  }

  #nv-public-chatbot .nv-chatbot__close {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
    font-size: 28px;
    line-height: 38px;
  }

  #nv-public-chatbot .nv-chatbot__conversation {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
  }

  #nv-public-chatbot .nv-chatbot__messages {
    padding: 16px;
  }

  #nv-public-chatbot .nv-chatbot__message {
    max-width: 90%;
    padding: 13px 18px;
    font-size: 20px;
    line-height: 1.45;
  }

  #nv-public-chatbot .nv-chatbot__message-row {
    margin-bottom: 14px;
  }

  #nv-public-chatbot .nv-chatbot__media-card span {
    font-size: 17px;
  }

  #nv-public-chatbot .nv-chatbot__composer {
    flex: 0 0 auto;
    gap: 10px;
    padding: 10px;
  }

  #nv-public-chatbot .nv-chatbot__composer textarea {
    min-height: 58px;
    height: 58px;
    padding: 13px 14px;
    font-size: 20px;
  }

  #nv-public-chatbot .nv-chatbot__composer button {
    min-height: 58px;
    padding: 13px 18px;
    font-size: 20px;
  }

  #nv-public-chatbot .nv-chatbot__notice {
    flex: 0 0 auto;
    padding: 2px 12px calc(10px + env(safe-area-inset-bottom));
    font-size: 14px;
    line-height: 1.4;
  }

  #nv-public-chatbot .nv-chatbot__error {
    font-size: 18px;
  }

  #nv-public-chatbot .nv-chatbot__accept,
  #nv-public-chatbot .nv-chatbot__decline {
    width: 100%;
  }
}
