.rta-chat {
  max-width: 720px;
  border: none;
  border-radius: 16px;
  padding: 12px;
  background: #fff;
  color: #000;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
}

.rta-chat__header {
  font-weight: 600;
  margin-bottom: 10px;
  color: #000;
}

.rta-chat__messages {
  height: 360px;
  overflow-y: auto;
  border: none;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 10px;
  background: #f8f8f8;
}

.rta-chat__message {
  max-width: 85%;
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 8px;
  line-height: 1.3;
}

.rta-chat__message--user {
  margin-left: auto;
  background: #feba12;
  color: #000;
  box-shadow: 0 4px 10px rgba(254, 186, 18, 0.35);
}

.rta-chat__message--bot {
  margin-right: auto;
  background: #ffffff;
  color: #111;
  border: 1px solid rgba(254, 186, 18, 0.45);
}

.rta-chat__typing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #111;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 8px;
  border: 1px solid rgba(254, 186, 18, 0.45);
}

.rta-chat__typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #feba12;
  animation: rtaTyping 1.2s infinite ease-in-out;
}

.rta-chat__typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.rta-chat__typing span:nth-child(3) {
  animation-delay: 0.3s;
}

.rta-chat__typing em {
  font-style: normal;
  font-size: 12px;
  opacity: 0.9;
}

.rta-chat__form {
  display: flex;
  gap: 8px;
}

.rta-chat__input {
  flex: 1;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 8px;
  color: #000;
  background: #fff;
}

.rta-chat__form button {
  border: none;
  border-radius: 8px;
  background: #feba12;
  color: #000;
  padding: 8px 12px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(254, 186, 18, 0.35);
}

.rta-chat-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 99999;
  transition: bottom 0.2s ease;
}

.rta-chat-widget__toggle {
  width: 132px;
  height: 54px;
  border-radius: 999px;
  border: none;
  background: #feba12;
  color: #000;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  position: relative;
}

.rta-chat-widget__toggle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid rgba(254, 186, 18, 0.65);
  animation: rtaPulse 1.8s infinite;
}

.rta-chat-widget__icon {
  font-weight: 700;
  letter-spacing: 0.3px;
  font-size: 11px;
  line-height: 1;
}

.rta-chat-widget__panel {
  position: absolute;
  right: 0;
  bottom: 78px;
  width: min(360px, calc(100vw - 24px));
}

.rta-chat--widget {
  max-width: 100%;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.rta-chat--widget .rta-chat__messages {
  height: 320px;
}

@keyframes rtaPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

@keyframes rtaTyping {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  40% {
    transform: translateY(-3px);
    opacity: 1;
  }
}
