.v24-chat-toggle {
  position: fixed;
  right: 16px;
  bottom: 96px;
  z-index: 10050;
  width: 64px;
  height: 64px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #9ad600, #7ab800);
  color: #1a1a1a;
  font: 800 12px/1 Montserrat, Arial, sans-serif;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.v24-chat-toggle.is-open {
  background: #333;
  color: #fff;
}

.v24-chat-panel {
  position: fixed;
  right: 16px;
  bottom: 152px;
  z-index: 10049;
  display: none;
  flex-direction: column;
  width: min(360px, calc(100vw - 32px));
  height: min(520px, calc(100vh - 180px));
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.v24-chat-panel.is-open {
  display: flex;
}

.v24-chat-head {
  padding: 14px 16px;
  background: #1a1a1a;
  color: #fff;
}

.v24-chat-head strong {
  display: block;
  font: 700 15px/1.3 Montserrat, Arial, sans-serif;
}

.v24-chat-head span {
  font: 400 12px/1.4 Montserrat, Arial, sans-serif;
  opacity: 0.85;
}

.v24-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  background: #f6f7f8;
}

.v24-chat-msg {
  max-width: 88%;
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font: 400 14px/1.45 Montserrat, Arial, sans-serif;
  white-space: pre-wrap;
  word-break: break-word;
}

.v24-chat-msg--bot {
  background: #fff;
  color: #222;
  border: 1px solid #e5e7eb;
}

.v24-chat-msg--user {
  margin-left: auto;
  background: #9ad600;
  color: #1a1a1a;
}

.v24-chat-msg.is-typing {
  opacity: 0.7;
  font-style: italic;
}

.v24-chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 12px 8px;
  background: #f6f7f8;
}

.v24-chat-quick button {
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  background: #fff;
  padding: 6px 10px;
  font: 600 11px/1 Montserrat, Arial, sans-serif;
  cursor: pointer;
}

.v24-chat-form {
  display: flex;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

.v24-chat-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  padding: 10px 12px;
  font: 400 14px/1.2 Montserrat, Arial, sans-serif;
}

.v24-chat-form button {
  border: 0;
  border-radius: 10px;
  background: #9ad600;
  color: #1a1a1a;
  padding: 0 14px;
  font: 700 13px/1 Montserrat, Arial, sans-serif;
  cursor: pointer;
}

.v24-chat-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .v24-chat-toggle {
    bottom: 76px;
    right: 12px;
  }

  .v24-chat-panel {
    right: 12px;
    bottom: 140px;
    width: calc(100vw - 24px);
    height: min(460px, calc(100vh - 160px));
  }
}
