.chatbot {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 16px;
  width: calc(100vw - 32px);
  max-width: 360px;
  z-index: 8;
  pointer-events: none;
  font-family: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif
}
@media(min-width:1024px) {
  .chatbot {
    right: 24px;
    width: 360px
  }
}
.chatbot__toggle {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,.15),0 2px 8px rgba(0,0,0,.08);
  opacity: 0;
  transform: scale(.5) translateY(20px);
  pointer-events: none;
  transition: opacity .3s cubic-bezier(.4, 0, .2, 1),transform .3s cubic-bezier(.4, 0, .2, 1),background .3s cubic-bezier(.4, 0, .2, 1)
}
.chatbot__toggle--visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: all
}
.chatbot__toggle--open .chatbot__toggle-icon--chat {
  opacity: 0;
  transform: rotate(90deg) scale(.6)
}
.chatbot__toggle--open .chatbot__toggle-icon--close {
  opacity: 1;
  transform: rotate(0) scale(1)
}
@media(hover:hover)and (pointer:fine) {
  .chatbot__toggle:not(:disabled):hover {
    background: #333
  }
}
.chatbot__toggle svg {
  width: 22px;
  height: 22px
}
.chatbot__toggle-icon {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .3s cubic-bezier(.4, 0, .2, 1),transform .3s cubic-bezier(.4, 0, .2, 1)
}
.chatbot__toggle-icon--chat {
  opacity: 1;
  transform: rotate(0) scale(1)
}
.chatbot__toggle-icon--close {
  opacity: 0;
  transform: rotate(-90deg) scale(.6)
}
.chatbot__toggle-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #c00;
  color: #fff;
  font-family: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff
}
.chatbot__toggle-wrap {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  pointer-events: all
}
.chatbot__toggle-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .3s cubic-bezier(.4, 0, .2, 1),transform .3s cubic-bezier(.4, 0, .2, 1)
}
.chatbot__toggle-label--visible {
  opacity: 1;
  transform: translateY(0)
}
.chatbot__toggle-label--hidden {
  opacity: 0!important;
  pointer-events: none
}
.chatbot__toggle-label-line {
  display: block;
  font-family: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #000;
  line-height: 1.3
}
@media(hover:hover)and (pointer:fine) {
  .chatbot__toggle-label:hover .chatbot__toggle-label-line {
    text-decoration: underline
  }
}
.chatbot__window {
  position: absolute;
  top: calc(50% + 40px);
  right: 0;
  bottom: 16px;
  width: 100%;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.15),0 2px 8px rgba(0,0,0,.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateX(8px) scale(.98);
  pointer-events: none;
  transition: opacity .3s cubic-bezier(.4, 0, .2, 1),transform .3s cubic-bezier(.4, 0, .2, 1);
  transform-origin: right center
}
.chatbot__window--open {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: all
}
@media(min-width:1024px) {
  .chatbot__window {
    bottom: 24px
  }
}
.chatbot__header {
  padding: 14px 16px;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0
}
.chatbot__header-info {
  display: flex;
  align-items: center;
  gap: 10px
}
.chatbot__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: hsla(0,0%,100%,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}
.chatbot__avatar svg {
  width: 18px;
  height: 18px
}
.chatbot__header-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  letter-spacing: .01em
}
.chatbot__header-tagline {
  font-size: 11px;
  color: hsla(0,0%,100%,.65);
  margin: 0;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 500
}
.chatbot__close {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transition: background .3s cubic-bezier(.4, 0, .2, 1)
}
.chatbot__close svg {
  width: 10px;
  height: 10px
}
@media(hover:hover)and (pointer:fine) {
  .chatbot__close:hover {
    background: hsla(0,0%,100%,.15)
  }
}
.chatbot__messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-behavior: smooth
}
.chatbot__messages::-webkit-scrollbar {
  width: 4px
}
.chatbot__messages::-webkit-scrollbar-track {
  background: rgba(0,0,0,0)
}
.chatbot__messages::-webkit-scrollbar-thumb {
  background: #e0e0e0;
  border-radius: 2px
}
.chatbot__message {
  display: flex;
  max-width: 85%;
  animation: chatbot-fade-in .25s ease forwards
}
.chatbot__message--bot {
  align-self: flex-start
}
.chatbot__message--user {
  align-self: flex-end;
  flex-direction: row-reverse
}
.chatbot__bubble {
  margin: 0;
  padding: 10px 14px;
  border-radius: 18px
}
.chatbot__message--bot .chatbot__bubble {
  background: #f5f5f5;
  color: #000;
  border-bottom-left-radius: 4px
}
.chatbot__message--user .chatbot__bubble {
  background: #000;
  color: #fff;
  border-bottom-right-radius: 4px
}
.chatbot__bubble--result {
  background: #f5f5f5;
  color: #000;
  border-bottom-left-radius: 4px
}
.chatbot__typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 14px;
  background: #f5f5f5;
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  animation: chatbot-fade-in .2s ease forwards
}
.chatbot__typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #999;
  animation: chatbot-typing 1.2s infinite ease-in-out
}
.chatbot__typing-dot:first-child {
  animation-delay: 0s
}
.chatbot__typing-dot:nth-child(2) {
  animation-delay: .2s
}
.chatbot__typing-dot:nth-child(3) {
  animation-delay: .4s
}
.chatbot__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: flex-start;
  max-width: 100%;
  animation: chatbot-fade-in .25s ease forwards
}
.chatbot__choice--selected {
  background: #000!important;
  color: #fff!important;
  border-color: #000!important
}
.chatbot__choice--disabled {
  cursor: default;
  opacity: .4
}
.chatbot__result {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  align-self: flex-start;
  max-width: 85%;
  animation: chatbot-fade-in .25s ease forwards
}
.chatbot__cta {
  display: inline-flex
}
.chatbot__restart {
  all: unset;
  cursor: pointer;
  font-family: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  font-size: 12px;
  color: #666;
  text-decoration: underline;
  transition: color .3s cubic-bezier(.4, 0, .2, 1)
}
@media(hover:hover)and (pointer:fine) {
  .chatbot__restart:hover {
    color: #000
  }
}
@keyframes chatbot-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px)
  }
  to {
    opacity: 1;
    transform: translateY(0)
  }
}
@keyframes chatbot-typing {
  0%,
  100%,
  60% {
    transform: translateY(0);
    opacity: .4
  }
  30% {
    transform: translateY(-4px);
    opacity: 1
  }
}