/* floating round button */
.algo-chat-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #185600; /* red like Wilgood accents */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  z-index: 9999;
}

/* chat window */
.algo-chat-window {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 340px;
  max-height: 520px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.algo-chat-window.opened {
  display: flex;
}

.algo-chat-header {
  background: #185600;
  color: #fff;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.algo-chat-header button {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.algo-chat-body {
  padding: 12px;
  overflow-y: auto;
  flex: 1;
  background: #f5f5f7;
}

.algo-msg {
  margin-bottom: 8px;
  max-width: 90%;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
}

.algo-msg.bot {
  background: #ffffff;
  border-radius: 12px 12px 12px 4px;
}

.algo-msg.user {
  background: #18560036;
  margin-left: auto;
  border-radius: 12px 12px 4px 12px;
}

.algo-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 4px;
}

.algo-buttons button {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #185600;
  background: #fff;
  color: #185600;
  font-size: 13px;
  cursor: pointer;
  transition: 0.15s;
}

.algo-buttons button:hover {
  background: #185600;
  color: #fff;
}

.algo-chat-footer {
  border-top: 1px solid #e5e5ea;
  padding: 8px 10px;
  background: #fff;
}

.algo-chat-footer input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid #d1d1d6;
  font-size: 13px;
}

.algo-input-wrap {
  display: flex;
  gap: 6px;
  margin: 10px 0;
}

.algo-input {
  flex: 1;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.algo-input-btn {
  padding: 8px 12px;
  background: #185600;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
