.hitp-guest-chatbot {
  --hitp-green: #174f3a;
  --hitp-green-dark: #0e3527;
  --hitp-green-soft: #e9f4ee;
  --hitp-sand: #fff9ef;
  --hitp-text: #183029;
  --hitp-muted: #66746e;
  --hitp-border: rgba(23, 79, 58, 0.16);
  bottom: 22px;
  color: var(--hitp-text);
  font-family: inherit;
  left: 50%;
  position: fixed;
  right: auto;
  transform: translateX(-50%);
  z-index: 99999;
}

.hitp-guest-chatbot--left {
  left: 50%;
  right: auto;
}

.hitp-chatbot__launcher,
.hitp-chatbot__send,
.hitp-chatbot__close,
.hitp-chatbot__lang,
.hitp-chatbot__action,
.hitp-chatbot__forward-submit {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.hitp-chatbot__launcher {
  align-items: center;
  background: var(--hitp-green);
  border-radius: 999px;
  box-shadow: 0 14px 32px rgba(14, 53, 39, 0.28);
  color: #ffffff;
  display: inline-flex;
  font-size: 15px;
  font-weight: 700;
  gap: 9px;
  min-height: 50px;
  padding: 13px 18px;
}

.hitp-chatbot__launcher:hover .hitp-robot {
  transform: translateY(-2px) rotate(-3deg);
}

.hitp-chatbot__launcher-text {
  white-space: nowrap;
}

.hitp-robot {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  height: 36px;
  justify-content: center;
  position: relative;
  transform-origin: 50% 100%;
  transition: transform 180ms ease;
  width: 36px;
}

.hitp-chatbot__launcher-robot {
  animation: hitp-robot-float 3.2s ease-in-out infinite;
}

.hitp-chatbot__header-robot {
  height: 42px;
  margin-top: 1px;
  width: 42px;
}

.hitp-robot__antenna {
  background: #a7dbc1;
  border-radius: 999px;
  height: 9px;
  left: 50%;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 3px;
}

.hitp-robot__antenna::before {
  background: #f5d36a;
  border-radius: 50%;
  content: "";
  height: 7px;
  left: 50%;
  position: absolute;
  top: -5px;
  transform: translateX(-50%);
  width: 7px;
}

.hitp-robot__head {
  background: #ffffff;
  border: 2px solid rgba(14, 53, 39, 0.2);
  border-radius: 12px;
  box-shadow: inset 0 -4px 0 rgba(23, 79, 58, 0.08);
  height: 28px;
  position: relative;
  top: 5px;
  width: 32px;
}

.hitp-robot__head::before,
.hitp-robot__head::after {
  background: #a7dbc1;
  border-radius: 50%;
  content: "";
  height: 7px;
  position: absolute;
  top: 10px;
  width: 4px;
}

.hitp-robot__head::before {
  left: -5px;
}

.hitp-robot__head::after {
  right: -5px;
}

.hitp-robot__eye {
  animation: hitp-robot-blink 5.2s infinite;
  background: var(--hitp-green);
  border-radius: 50%;
  height: 5px;
  position: absolute;
  top: 9px;
  width: 5px;
}

.hitp-robot__eye--left {
  left: 8px;
}

.hitp-robot__eye--right {
  right: 8px;
}

.hitp-robot__smile {
  border-bottom: 2px solid var(--hitp-green);
  border-radius: 0 0 999px 999px;
  bottom: 7px;
  height: 5px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 12px;
}

.hitp-chatbot__panel {
  background: #ffffff;
  border: 1px solid var(--hitp-border);
  border-radius: 18px;
  box-shadow: 0 20px 55px rgba(14, 53, 39, 0.24);
  margin-bottom: 12px;
  max-height: min(680px, calc(100vh - 110px));
  overflow: hidden;
  width: min(380px, calc(100vw - 28px));
}

.hitp-chatbot__header {
  align-items: flex-start;
  background: linear-gradient(135deg, var(--hitp-green), var(--hitp-green-dark));
  color: #ffffff;
  display: flex;
  gap: 10px;
  padding: 16px;
}

.hitp-chatbot__title-block {
  flex: 1;
  min-width: 0;
}

.hitp-chatbot__title {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
}

.hitp-chatbot__subtitle {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1.4;
  margin-top: 4px;
}

.hitp-chatbot__close,
.hitp-chatbot__lang {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #ffffff;
  flex: 0 0 auto;
  font-weight: 800;
  height: 32px;
  width: 38px;
}

.hitp-chatbot__close {
  font-size: 23px;
  line-height: 1;
  width: 32px;
}

.hitp-chatbot__messages {
  background: var(--hitp-sand);
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(430px, calc(100vh - 260px));
  overflow-y: auto;
  padding: 14px;
}

.hitp-chatbot__message {
  border-radius: 15px;
  font-size: 14px;
  line-height: 1.45;
  max-width: 88%;
  padding: 10px 12px;
  white-space: pre-wrap;
}

.hitp-chatbot__message--bot {
  align-self: flex-start;
  background: #ffffff;
  border: 1px solid var(--hitp-border);
}

.hitp-chatbot__message--typing::after {
  animation: hitp-caret-blink 800ms steps(1) infinite;
  color: var(--hitp-green);
  content: "|";
  display: inline-block;
  font-weight: 700;
  margin-left: 2px;
}

.hitp-chatbot__message--activity {
  min-width: 56px;
  padding-bottom: 12px;
  padding-top: 12px;
}

.hitp-chatbot__activity-dots {
  align-items: center;
  display: inline-flex;
  gap: 5px;
}

.hitp-chatbot__activity-dot {
  animation: hitp-activity-pulse 900ms ease-in-out infinite;
  background: var(--hitp-green);
  border-radius: 999px;
  display: block;
  height: 7px;
  opacity: 0.35;
  width: 7px;
}

.hitp-chatbot__activity-dot:nth-child(2) {
  animation-delay: 150ms;
}

.hitp-chatbot__activity-dot:nth-child(3) {
  animation-delay: 300ms;
}

.hitp-chatbot__link-button {
  align-items: center;
  background: var(--hitp-green);
  border-radius: 999px;
  color: #ffffff !important;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  justify-content: center;
  margin-top: 8px;
  padding: 8px 13px;
  text-decoration: none !important;
}

.hitp-chatbot__link-button:hover {
  background: var(--hitp-green-dark);
  color: #ffffff !important;
}

.hitp-chatbot__message--user {
  align-self: flex-end;
  background: var(--hitp-green);
  color: #ffffff;
}

.hitp-chatbot__action:hover {
  background: var(--hitp-green-soft);
}

.hitp-chatbot__actions {
  align-self: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hitp-chatbot__action {
  background: #ffffff;
  border: 1px solid var(--hitp-border);
  border-radius: 999px;
  color: var(--hitp-green-dark);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 11px;
  text-decoration: none;
}

.hitp-chatbot__action:disabled {
  cursor: default;
  opacity: 0.65;
}

.hitp-chatbot__action--primary {
  background: var(--hitp-green);
  border-color: var(--hitp-green);
  color: #ffffff;
}

.hitp-chatbot__action--primary:hover {
  background: var(--hitp-green-dark);
  color: #ffffff;
}

.hitp-chatbot__form {
  align-items: center;
  background: #ffffff;
  border-top: 1px solid var(--hitp-border);
  display: flex;
  gap: 8px;
  padding: 12px;
}

.hitp-chatbot__input {
  border: 1px solid var(--hitp-border);
  border-radius: 999px;
  flex: 1;
  font: inherit;
  font-size: 14px;
  min-height: 42px;
  min-width: 0;
  padding: 0 13px;
}

.hitp-chatbot__input:focus {
  border-color: var(--hitp-green);
  box-shadow: 0 0 0 3px rgba(23, 79, 58, 0.12);
  outline: none;
}

.hitp-chatbot__send {
  background: var(--hitp-green);
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  min-height: 42px;
  padding: 0 14px;
}

.hitp-chatbot__forward-form {
  align-self: stretch;
  background: #ffffff;
  border: 1px solid var(--hitp-border);
  border-radius: 16px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.hitp-chatbot__forward-field {
  border: 1px solid var(--hitp-border);
  border-radius: 10px;
  color: var(--hitp-text);
  font: inherit;
  font-size: 13px;
  min-height: 38px;
  padding: 9px 10px;
  resize: vertical;
}

.hitp-chatbot__forward-field:focus {
  border-color: var(--hitp-green);
  box-shadow: 0 0 0 3px rgba(23, 79, 58, 0.12);
  outline: none;
}

.hitp-chatbot__forward-submit {
  background: var(--hitp-green);
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  min-height: 38px;
  padding: 0 14px;
}

.hitp-chatbot__forward-submit:disabled {
  cursor: default;
  opacity: 0.7;
}

.hitp-chatbot__website-field {
  height: 0;
  left: -9999px;
  opacity: 0;
  position: absolute;
  width: 0;
}

@media (max-width: 520px) {
  .hitp-guest-chatbot,
  .hitp-guest-chatbot--left {
    bottom: 14px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(380px, calc(100vw - 28px));
  }

  .hitp-chatbot__launcher {
    justify-content: center;
    width: auto;
  }

  .hitp-chatbot__panel {
    width: 100%;
  }
}

@keyframes hitp-robot-float {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }

  50% {
    transform: translateY(-4px) rotate(2deg);
  }
}

@keyframes hitp-robot-blink {
  0%,
  44%,
  48%,
  100% {
    transform: scaleY(1);
  }

  46% {
    transform: scaleY(0.12);
  }
}

@keyframes hitp-caret-blink {
  0%,
  48% {
    opacity: 1;
  }

  49%,
  100% {
    opacity: 0;
  }
}

@keyframes hitp-activity-pulse {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}
