/* MoneyBot chat bubble and panel. Dark navy #0A2540 with gold #F2B33D
   accent, matching MoneyUnder40. No third-party assets, no vendor branding. */

#moneybot-mount {
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.moneybot-bubble {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #F2B33D;
  background: #0A2540;
  color: #F2B33D;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.moneybot-bubble:hover {
  background: #14365e;
}

.moneybot-panel {
  position: fixed;
  right: 20px;
  bottom: 95px;
  z-index: 9999;
  width: 360px;
  max-width: calc(100vw - 40px);
  height: 480px;
  max-height: 70vh;
  display: none;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  border: 2px solid #0A2540;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.moneybot-panel.open {
  display: flex;
}

.moneybot-header {
  background: #0A2540;
  color: #ffffff;
  padding: 14px 16px;
  border-bottom: 3px solid #F2B33D;
  font-weight: 700;
  font-size: 17px;
}

.moneybot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.moneybot-msg {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
  max-width: 85%;
}

.moneybot-msg-bot {
  background: #EEF2F7;
  color: #1a1a1a;
  align-self: flex-start;
}

.moneybot-msg-user {
  background: #0A2540;
  color: #ffffff;
  align-self: flex-end;
}

.moneybot-sources {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-self: flex-start;
  max-width: 85%;
}

.moneybot-sources a {
  color: #0A2540;
  font-size: 14px;
  word-break: break-all;
}

.moneybot-input-row {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #ddd;
}

.moneybot-input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 999px;
}

.moneybot-send {
  background: #F2B33D;
  color: #0A2540;
  font-weight: 700;
  font-size: 15px;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
}

.moneybot-send:hover {
  background: #e0a52e;
}

@media (max-width: 480px) {
  .moneybot-bubble {
    right: 16px;
    bottom: 16px;
  }

  .moneybot-panel {
    right: 10px;
    left: 10px;
    bottom: 90px;
    width: auto;
  }
}
