body {
  font-family: Arial, sans-serif;
  background: #fff8f0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.chatbox {
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  width: 90%;
  max-width: 500px;
}

.chat-log {
  border: 1px solid #ddd;
  padding: 10px;
  height: 300px;
  overflow-y: scroll;
  background: #fdfdfd;
  margin-bottom: 10px;
  line-height: 1.5em;
}

.chat-log p {
  margin: 20px 0;
  line-height: 1.5em;
}

form {
  display: flex;
}

input[type="text"] {
  flex: 1;
  padding: 10px;
  border: 1px solid #aaa;
  border-radius: 8px 0 0 8px;
}

button {
  padding: 10px 15px;
  border: none;
  background: #f4a261;
  color: white;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
}

#mic-button {
  font-size: 20px;
  margin-left: 8px;
  padding: 4px 10px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .chatbox {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    padding: 15px;
    height: 100dvh;
    box-sizing: border-box;
  }

  body {
    margin: 0;
    padding: 0;
    height: 99dvh;
  }
  
  .chat-log {
  height: 60dvh; /* or similar based on layout */
  overflow-y: auto;
}

}

#ben-chat-launcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #f4a261;
  color: white;
  padding: 12px 16px;
  border-radius: 24px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 1000;
}

#ben-chat-wrapper {
  position: fixed;
  bottom: 70px;
  right: 20px;
  width: 90%;
  max-width: 420px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  z-index: 1000;
  display: none;
}

#ben-chat-wrapper.ben-visible {
  display: block;
}

.ben-hidden {
  display: none;
}



