.loan-chat[hidden], .loan-chat-panel[hidden] { display: none; }
.loan-chat {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 1000;
  display: grid;
  justify-items: end;
  gap: 10px;
  max-width: calc(100vw - 32px);
}
.loan-chat button { font: inherit; cursor: pointer; }
.loan-chat-launch, .loan-chat-whatsapp {
  border: 0;
  border-radius: 999px;
  background: #08734d;
  color: white;
  font-weight: 700 !important;
  padding: 11px 18px;
  text-decoration: none;
}
.loan-chat-panel {
  width: min(355px, calc(100vw - 32px));
  max-height: min(500px, calc(100dvh - 95px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: white;
  color: #142749;
  border: 1px solid #cddaf1;
  border-radius: 17px;
  box-shadow: 0 16px 48px #14274940;
}
.loan-chat-heading {
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px 8px 17px;
  background: #123b87;
  color: white;
}
.loan-chat-heading h2 { margin: 0; font-size: 1rem; color: inherit; }
.loan-chat-close { background: transparent; color: white; border: 0; width: 44px; height: 44px; font-size: 1.5rem !important; }
.loan-chat-body { padding: 15px; overflow-y: auto; overscroll-behavior: contain; }
.loan-chat-message { margin: 0 0 12px; padding: 11px; background: #edf4ff; border-radius: 12px; }
.loan-chat-options { display: grid; gap: 7px; }
.loan-chat-options button, .loan-chat-jump {
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #b7c9ea;
  border-radius: 9px;
  color: #123b87;
  background: white;
  text-align: left;
  text-decoration: none;
}
.loan-chat-options button:hover, .loan-chat-jump:hover { background: #edf4ff; }
.loan-chat-whatsapp { text-align: center; }
.loan-chat :focus-visible { outline: 3px solid #e2a638; outline-offset: 1px; }
