.cs-chatbot {
  --cs-chat-primary: #0081b8;
  --cs-chat-accent: #ffd64f;
  --cs-chat-bg: #111821;
  --cs-chat-panel: #172433;
  --cs-chat-border: rgba(255, 214, 79, 0.22);
  font-family: Arial, Helvetica, sans-serif;
  position: fixed;
  right: 96px;
  bottom: 24px;
  z-index: 99999;
}

.cs-chatbot * {
  box-sizing: border-box;
}

.cs-chatbot__button {
  align-items: center;
  background: linear-gradient(135deg, var(--cs-chat-primary), #111821);
  border: 2px solid rgba(255, 214, 79, 0.9);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  color: #fff;
  cursor: pointer;
  display: flex;
  height: 60px;
  justify-content: center;
  padding: 0;
  width: 60px;
}

.cs-chatbot__button svg {
  height: 29px;
  width: 29px;
}

.cs-chatbot__button:focus-visible,
.cs-chatbot__send:focus-visible,
.cs-chatbot__close:focus-visible,
.cs-chatbot__quick:focus-visible,
.cs-chatbot__input:focus-visible {
  outline: 3px solid var(--cs-chat-accent);
  outline-offset: 3px;
}

.cs-chatbot__panel {
  background: var(--cs-chat-bg);
  border: 1px solid var(--cs-chat-border);
  border-radius: 20px;
  bottom: 78px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
  color: #f8fafc;
  display: none;
  max-height: min(680px, calc(100vh - 120px));
  overflow: hidden;
  position: absolute;
  right: -72px;
  width: min(380px, calc(100vw - 24px));
}

.cs-chatbot.is-open .cs-chatbot__panel {
  display: flex;
  flex-direction: column;
}

.cs-chatbot__header {
  align-items: center;
  background: linear-gradient(135deg, #111821, #0081b8);
  display: flex;
  gap: 12px;
  min-height: 74px;
  padding: 16px 18px;
}

.cs-chatbot__avatar {
  align-items: center;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  display: flex;
  flex: 0 0 38px;
  height: 38px;
  justify-content: center;
  position: relative;
  width: 38px;
}

.cs-chatbot__avatar::after {
  background: var(--cs-chat-accent);
  border: 2px solid var(--cs-chat-primary);
  border-radius: 50%;
  bottom: -2px;
  content: "";
  height: 11px;
  position: absolute;
  right: -2px;
  width: 11px;
}

.cs-chatbot__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.cs-chatbot__status {
  color: #fff5bd;
  font-size: 12px;
  line-height: 1.3;
  margin: 2px 0 0;
}

.cs-chatbot__close {
  align-items: center;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  display: flex;
  height: 36px;
  justify-content: center;
  margin-left: auto;
  padding: 0;
  width: 36px;
}

.cs-chatbot__messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  min-height: 245px;
  overflow-y: auto;
  padding: 18px;
}

.cs-chatbot__bubble {
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  max-width: 88%;
  padding: 12px 14px;
  white-space: pre-line;
}

.cs-chatbot__bubble--bot {
  align-self: flex-start;
  background: var(--cs-chat-panel);
  border: 1px solid var(--cs-chat-border);
}

.cs-chatbot__bubble--user {
  align-self: flex-end;
  background: var(--cs-chat-primary);
  color: #fff;
}

.cs-chatbot__quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 18px 14px;
}

.cs-chatbot__quick {
  background: rgba(255, 214, 79, 0.08);
  border: 1px solid rgba(255, 214, 79, 0.65);
  border-radius: 999px;
  color: #ffe68a;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  padding: 10px 13px;
}

.cs-chatbot__form {
  align-items: center;
  background: #0b1222;
  border-top: 1px solid var(--cs-chat-border);
  display: flex;
  gap: 10px;
  padding: 12px;
}

.cs-chatbot__input {
  background: #071022;
  border: 2px solid var(--cs-chat-primary);
  border-radius: 999px;
  color: #f8fafc;
  flex: 1;
  font-size: 14px;
  min-width: 0;
  padding: 13px 16px;
}

.cs-chatbot__input::placeholder {
  color: #94a3b8;
}

.cs-chatbot__send {
  align-items: center;
  background: var(--cs-chat-accent);
  border: 0;
  border-radius: 50%;
  color: #111821;
  cursor: pointer;
  display: flex;
  flex: 0 0 48px;
  height: 48px;
  justify-content: center;
  padding: 0;
}

@media (max-width: 600px) {
  .cs-chatbot {
    bottom: 18px;
    right: 86px;
  }

  .cs-chatbot__button {
    height: 56px;
    width: 56px;
  }

  .cs-chatbot__panel {
    bottom: 70px;
    max-height: calc(100vh - 96px);
    right: -74px;
    width: calc(100vw - 16px);
  }
}
