.muzart-chatbot {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  font-family: inherit;
}

.muzart-chatbot__button {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: #ff5e14;
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.muzart-chatbot__panel {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: 370px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.muzart-chatbot.is-open .muzart-chatbot__panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.muzart-chatbot__header {
  background: #001d3d;
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.muzart-chatbot__title {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.muzart-chatbot__subtitle {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 2px;
}

.muzart-chatbot__close {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.muzart-chatbot__messages {
  height: 340px;
  overflow-y: auto;
  padding: 16px;
  background: #f7f8fb;
}

.muzart-chatbot__message {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 10px;
}

.muzart-chatbot__message--bot {
  background: #fff;
  color: #1d2433;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.muzart-chatbot__message--user {
  margin-left: auto;
  background: #ff5e14;
  color: #fff;
}

.muzart-chatbot__typing {
  display: flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  min-width: 48px;
}

.muzart-chatbot__typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9aa3b2;
  animation: muzart-chatbot-typing 0.9s infinite ease-in-out;
}

.muzart-chatbot__typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.muzart-chatbot__typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes muzart-chatbot-typing {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }

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

.muzart-chatbot__quick {
  padding: 12px 14px;
  border-top: 1px solid #e8ebf0;
  background: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.muzart-chatbot__choice {
  border: 1px solid #d9dee8;
  background: #fff;
  color: #001d3d;
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
}

.muzart-chatbot__choice:hover,
.muzart-chatbot__choice:focus {
  border-color: #ff5e14;
  color: #ff5e14;
  outline: none;
}

.muzart-chatbot__form {
  display: flex;
  gap: 8px;
  padding: 12px 14px 14px;
  border-top: 1px solid #e8ebf0;
  background: #fff;
}

.muzart-chatbot__input {
  flex: 1;
  min-width: 0;
  border: 1px solid #d9dee8;
  border-radius: 6px;
  padding: 9px 10px;
  font-size: 13px;
  color: #1d2433;
}

.muzart-chatbot__input:focus {
  border-color: #ff5e14;
  outline: none;
}

.muzart-chatbot__send {
  border: 0;
  border-radius: 6px;
  background: #001d3d;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  padding: 0 12px;
}

.muzart-chatbot__send:hover,
.muzart-chatbot__send:focus {
  background: #ff5e14;
  outline: none;
}

@media (max-width: 575px) {
  .muzart-chatbot {
    right: 14px;
    bottom: 14px;
  }

  .muzart-chatbot__panel {
    bottom: 72px;
  }
}
