#refun-chat { position: fixed; z-index: 1000; bottom: max(16px, env(safe-area-inset-bottom)); right: 16px; width: min(390px, calc(100% - 32px)); color: #15304a; font: 15px/1.6 system-ui, sans-serif; }
#refun-chat *, #refun-chat { box-sizing: border-box; }
#refun-chat button, #refun-chat input { font: inherit; }
#refun-chat button { cursor: pointer; }
#refun-chat [hidden] { display: none; }
#refun-chat-panel { margin-bottom: 10px; max-height: calc(100dvh - 90px); overflow: auto; border: 1px solid #cbd8e4; border-radius: 15px; background: #fff; box-shadow: 0 10px 36px #172d4c30; }
#refun-chat-panel header { display: flex; align-items: center; justify-content: space-between; background: #173a5b; color: #fff; padding: 8px 14px; }
#refun-chat-close { color: inherit; background: transparent; border: 0; min-width: 40px; min-height: 40px; }
.refun-chat-body { padding: 12px; }
#refun-chat-log { height: min(230px, 30dvh); overflow-y: auto; }
#refun-chat-log p { margin: 0 0 8px; border-radius: 9px; padding: 8px 10px; background: #edf2f8; white-space: pre-wrap; overflow-wrap: anywhere; }
#refun-chat-log p[data-role="user"] { margin-left: 22px; background: #d8e5f4; }
.refun-chat-notice { font-size: 12px; margin: 8px 0; }
.refun-chat-consent { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.refun-chat-compose { display: flex; gap: 6px; margin-block: 8px; }
.refun-chat-compose input { flex: 1; min-width: 0; border: 1px solid #657e98; border-radius: 6px; padding: 7px 9px; font-size: 16px !important; }
#refun-chat-toggle, .refun-chat-compose button { border: none; color: #fff; background: #173a5b; border-radius: 8px; padding: 9px 13px; }
#refun-chat-toggle { display: block; margin-left: auto; border-radius: 22px; min-height: 44px; }
#refun-chat :focus-visible { outline: 3px solid #4281bc; outline-offset: 2px; }
