#chat-widget-root {
  position: relative;
  z-index: 9999;
}

.chat-widget-button {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 88px;
  height: 88px;
  border: none;
  border-radius: 999px;
  background: #f9d649;
  color: #111;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
  opacity: 0.95;
}

.chat-widget-panel {
  position: fixed;
  right: 20px;
  bottom: 104px;
  width: 360px;
  max-width: calc(100vw - 40px);
  max-height: 60vh;
  background: #0f0f0f;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chat-widget-panel.open {
  display: flex;
}

.chat-widget-header {
  padding: 14px 16px;
  background: #f9d649;
  color: #111;
  font-weight: 700;
  font-size: 16px;
}

.chat-widget-messages {
  padding: 14px;
  overflow-y: auto;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #121212;
}

.chat-widget-message {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.4;
  max-width: 90%;
}

.chat-widget-message.user {
  align-self: flex-end;
  background: #f9d649;
  color: #111;
}

.chat-widget-message.assistant {
  align-self: flex-start;
  background: #2a2a2a;
  color: #f7f7f7;
}

.chat-widget-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #2b2b2b;
  background: #0f0f0f;
}

.chat-widget-input {
  flex: 1 1 auto;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #3a3a3a;
  font-size: 16px;
  background: #1a1a1a;
  color: #f7f7f7;
}

.chat-widget-send {
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  background: #f9d649;
  color: #111;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

@media (max-width: 480px) {
  .chat-widget-panel {
    right: 12px;
    bottom: 96px;
    width: calc(100vw - 24px);
  }

  .chat-widget-button {
    right: 12px;
    bottom: 12px;
    width: 78px;
    height: 78px;
    font-size: 16px;
  }
}
