/* Cash Stash Custom Chatbot */

.cs-chat-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999999;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #20ff67, #eaffee);
  color: #041004;
  font-weight: 900;
  box-shadow: 0 16px 45px rgba(32,255,103,.28), 0 10px 30px rgba(0,0,0,.35);
  cursor: pointer;
}

.cs-chat-widget {
  position: fixed;
  right: 18px;
  bottom: 78px;
  width: min(390px, calc(100vw - 28px));
  height: min(620px, calc(100vh - 110px));
  z-index: 999999;
  border: 1px solid rgba(245,255,247,.16);
  border-radius: 22px;
  background: #061006;
  color: #f5fff7;
  box-shadow: 0 24px 90px rgba(0,0,0,.55);
  overflow: hidden;
  display: none;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

.cs-chat-widget.cs-open {
  display: flex;
  flex-direction: column;
}

.cs-chat-head {
  padding: 16px;
  background: radial-gradient(700px 200px at 20% 0%, rgba(32,255,103,.26), transparent 60%),
              linear-gradient(135deg, #071b09, #050805);
  border-bottom: 1px solid rgba(245,255,247,.12);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.cs-chat-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cs-chat-title strong {
  font-size: 15px;
}

.cs-chat-title span {
  color: #a7b8aa;
  font-size: 12px;
}

.cs-close {
  border: 1px solid rgba(245,255,247,.16);
  background: rgba(255,255,255,.06);
  color: #f5fff7;
  border-radius: 12px;
  padding: 7px 10px;
  cursor: pointer;
}

.cs-chat-body {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cs-msg {
  max-width: 88%;
  border-radius: 18px;
  padding: 11px 13px;
  line-height: 1.42;
  font-size: 14px;
  white-space: pre-wrap;
}

.cs-bot {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(245,255,247,.10);
  align-self: flex-start;
}

.cs-user {
  background: linear-gradient(135deg, #20ff67, #eaffee);
  color: #041004;
  align-self: flex-end;
  font-weight: 700;
}

.cs-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 8px;
}

.cs-quick, .cs-link {
  display: inline-flex;
  border: 1px solid rgba(32,255,103,.28);
  color: #f5fff7;
  background: rgba(32,255,103,.09);
  border-radius: 999px;
  padding: 9px 11px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  margin: 3px;
}

.cs-quick:hover, .cs-link:hover {
  background: rgba(32,255,103,.16);
}

.cs-chat-foot {
  border-top: 1px solid rgba(245,255,247,.12);
  padding: 12px;
  display: flex;
  gap: 8px;
  background: rgba(0,0,0,.22);
}

.cs-input {
  flex: 1;
  border: 1px solid rgba(245,255,247,.14);
  background: rgba(255,255,255,.06);
  color: #f5fff7;
  border-radius: 14px;
  padding: 12px;
  outline: none;
}

.cs-send {
  border: 0;
  border-radius: 14px;
  padding: 0 14px;
  background: #20ff67;
  color: #041004;
  font-weight: 900;
  cursor: pointer;
}

.cs-lead-card {
  border: 1px solid rgba(32,255,103,.24);
  background: rgba(32,255,103,.08);
  border-radius: 18px;
  padding: 12px;
  font-size: 13px;
  color: #f5fff7;
}

.cs-lead-card strong {
  color: #20ff67;
}

@media (max-width: 520px) {
  .cs-chat-widget {
    right: 10px;
    left: 10px;
    bottom: 74px;
    width: auto;
    height: min(640px, calc(100vh - 95px));
  }

  .cs-chat-toggle {
    right: 12px;
    bottom: 14px;
  }
}
