/* Chatbot DanaTopup — widget chat (palet Gelap, sama seperti style.css).
   Tombol mengambang kanan bawah (logo DanaTopup asli) + panel 320px.
   Variabel warna diambil dari :root di style.css (fallback bila
   chatbot.css dimuat sendiri). */
#danachat-root .danachat-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 2147483000; font-family: Inter, system-ui, sans-serif; }
#danachat-root .danachat-btn { width: 60px; height: 60px; border-radius: 50%; border: 3px solid var(--teal, #2DD4BF); background: #fff; padding: 3px; display: grid; place-items: center; box-shadow: 0 12px 32px rgba(45, 212, 191, .35), 0 4px 14px rgba(0, 0, 0, .45); cursor: pointer; }
#danachat-root .danachat-btn:hover { box-shadow: 0 12px 36px rgba(45, 212, 191, .55), 0 4px 14px rgba(0, 0, 0, .45); transform: scale(1.05); }
#danachat-root .danachat-btn img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
#danachat-root .danachat-panel { display: none; width: min(320px, calc(100vw - 28px)); height: 440px; max-height: calc(100vh - 140px); margin-bottom: 12px; background: var(--panel, #122A3D); border: 1px solid var(--line-d, #1F4258); border-radius: 24px; box-shadow: 0 24px 80px rgba(0, 0, 0, .45); overflow: hidden; }
#danachat-root .danachat-panel.open { display: grid; grid-template-rows: auto 1fr; }
#danachat-root .danachat-head { padding: 16px 18px; background: var(--navy-2, #0E2233); color: var(--text-d, #E6F0F7); border-bottom: 1px solid var(--line-d, #1F4258); position: relative; }
#danachat-root .danachat-head strong { display: block; font-size: 16px; }
#danachat-root .danachat-head span { font-size: 12px; color: var(--muted-d, #8FA9BC); }
#danachat-root .danachat-close { position: absolute; top: 10px; right: 12px; border: 0; background: transparent; color: var(--muted-d, #8FA9BC); font-size: 24px; line-height: 1; cursor: pointer; padding: 4px 8px; }
#danachat-root .danachat-close:hover { color: #fff; }
#danachat-root .danachat-gate { padding: 20px 18px; color: var(--text-d, #E6F0F7); overflow: auto; }
#danachat-root .danachat-gate p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.5; }
#danachat-root .danachat-gate input { width: 100%; box-sizing: border-box; border: 1px solid var(--line-d, #1F4258); border-radius: 12px; padding: 12px 14px; font-size: 14px; background: var(--navy-2, #0E2233); color: #fff; outline: none; }
#danachat-root .danachat-gate input:focus { border-color: var(--teal, #2DD4BF); }
#danachat-root .danachat-gate-error { color: var(--orange, #FB923C); font-size: 13px; }
#danachat-root .danachat-gate-btn { width: 100%; margin-top: 12px; border: 0; border-radius: 12px; padding: 12px; background: var(--teal, #2DD4BF); color: #04211D; font-weight: 800; font-size: 15px; cursor: pointer; }
#danachat-root .danachat-gate-btn:hover { background: #5EEAD4; }
#danachat-root .danachat-gate-note { color: var(--muted-d, #8FA9BC); font-size: 12.5px; margin-top: 12px; }
#danachat-root .danachat-chat { display: grid; grid-template-rows: 1fr auto auto auto; min-height: 0; }
#danachat-root .danachat-msgs { padding: 16px; overflow: auto; min-height: 0; background: var(--navy, #0B1B2B); }
#danachat-root .danachat-msg { max-width: 86%; padding: 10px 12px; border-radius: 16px; margin: 8px 0; font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
#danachat-root .danachat-msg.bot { background: var(--panel, #122A3D); border: 1px solid var(--line-d, #1F4258); color: var(--text-d, #E6F0F7); }
#danachat-root .danachat-msg.me { background: var(--teal, #2DD4BF); color: #04211D; margin-left: auto; }
#danachat-root .danachat-typing { color: var(--muted-d, #8FA9BC); font-size: 13px; margin: 8px 0; }
#danachat-root .danachat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line-d, #1F4258); background: var(--panel, #122A3D); }
#danachat-root .danachat-form input { flex: 1; min-width: 0; border: 1px solid var(--line-d, #1F4258); border-radius: 999px; padding: 12px 14px; font-size: 14px; background: var(--navy-2, #0E2233); color: #fff; outline: none; }
#danachat-root .danachat-form input:focus { border-color: var(--teal, #2DD4BF); }
#danachat-root .danachat-form button { border: 0; border-radius: 999px; padding: 0 15px; background: var(--teal, #2DD4BF); color: #04211D; font-weight: 800; cursor: pointer; }
#danachat-root .danachat-hint { margin: 0; padding: 8px 16px 0; font-size: 12.5px; color: var(--muted-d, #8FA9BC); background: var(--panel, #122A3D); }
#danachat-root .danachat-foot { font-size: 11px; color: var(--muted-d, #8FA9BC); display: block; text-align: center; padding: 8px 0 10px; background: var(--panel, #122A3D); }
@media (max-width: 540px) {
  #danachat-root .danachat-wrap { right: 14px; bottom: 14px; }
  #danachat-root .danachat-panel { height: 70vh; }
}
