.nova-chatbot-root {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99999;
  font-family: Arial, sans-serif;
}

.nova-chatbot-toggle {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #c55a11, #8f3410);
  color: #fff;
  padding: 14px 18px;
  cursor: pointer;
  box-shadow: 0 16px 35px rgba(66, 31, 7, 0.22);
}

.nova-chatbot-toggle-label {
  font-weight: 700;
}

.nova-chatbot-panel {
  width: min(360px, calc(100vw - 24px));
  height: 520px;
  margin-top: 12px;
  background: #fffaf4;
  border: 1px solid rgba(87, 54, 19, 0.14);
  border-radius: 24px;
  box-shadow: 0 22px 65px rgba(66, 31, 7, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.nova-chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 14px;
  background: linear-gradient(135deg, #f6e6d3, #f3d8bc);
  border-bottom: 1px solid rgba(87, 54, 19, 0.1);
}

.nova-chatbot-header p {
  margin: 4px 0 0;
  color: #6d583f;
  font-size: 13px;
}

.nova-chatbot-close {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #4a2f17;
  font-size: 18px;
}

.nova-chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #fffdf9;
}

.nova-chatbot-message {
  display: flex;
  margin-bottom: 12px;
}

.nova-chatbot-message-assistant {
  justify-content: flex-start;
}

.nova-chatbot-message-user {
  justify-content: flex-end;
}

.nova-chatbot-bubble {
  max-width: 82%;
  border-radius: 18px;
  padding: 12px 14px;
  line-height: 1.5;
}

.nova-chatbot-message-assistant .nova-chatbot-bubble {
  background: #f2e1cf;
  color: #281d13;
}

.nova-chatbot-message-user .nova-chatbot-bubble {
  background: #2a211b;
  color: #fff6ed;
}

.nova-chatbot-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid rgba(87, 54, 19, 0.1);
  background: #fff8f1;
}

.nova-chatbot-form input {
  border: 1px solid rgba(87, 54, 19, 0.18);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
}

.nova-chatbot-form button {
  border: 0;
  border-radius: 14px;
  background: #b84c2a;
  color: #fff;
  padding: 0 18px;
  cursor: pointer;
}

.nova-chatbot-typing {
  opacity: 0.7;
  font-style: italic;
}

@media (max-width: 640px) {
  .nova-chatbot-root {
    right: 12px;
    left: 12px;
    bottom: 12px;
  }

  .nova-chatbot-panel {
    width: 100%;
    height: 70vh;
  }
}
