.gpc-chat-container { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; font-size: 14px; box-sizing: border-box; }
.gpc-chat-container *, .gpc-chat-container *::before, .gpc-chat-container *::after { box-sizing: border-box; }
.gpc-mode-floating { position: fixed; right: 20px; bottom: 20px; z-index: 99999; }
.gpc-chat-toggle { cursor: pointer; border: 0; border-radius: 40px; padding: 5px 15px; background: #9F224E; color: white; font-size: 15px; font-weight: 600; box-shadow: 0 4px 12px #0003; }
.gpc-chat-toggle:hover, .gpc-chat-send:hover { background: #005788; }
.gpc-chat-box { display: flex; flex-direction: column; overflow: hidden; height: 480px; background: white; color: #1d2327; border: 1px solid #ddd; border-radius: 12px; box-shadow: 0 8px 25px #0003; }
.gpc-chat-box[hidden] { display: none !important; }
.gpc-mode-floating .gpc-chat-box { position: absolute; right: 0; bottom: 60px; width: 360px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 110px); }
.gpc-mode-inline .gpc-chat-box { width: 100%; max-width: 500px; margin: 0 auto; }
.gpc-chat-header { background: #9F224E; color: white; padding: 5px 15px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 600; }
.gpc-header-actions { display: flex; align-items: center; gap: 7px; }
.gpc-chat-clear, .gpc-chat-close { background: transparent; border: 0; color: #fff; cursor: pointer; font-size: 15px; line-height: 1; padding: 10px 7px; border-radius: 4px; }
.gpc-chat-clear:hover, .gpc-chat-close:hover { background: #ffffff33; }
.gpc-chat-messages { flex: 1; min-height: 0; overflow-y: auto; padding: 15px; display: flex; flex-direction: column; align-items: stretch; gap: 10px; background: #f6f7f7; }
.gpc-msg { max-width: 88%; padding: 10px 13px; border-radius: 13px; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; white-space: normal; }
.gpc-bot { background: #e9ecef; color: #1d2327; align-self: flex-start; border-bottom-left-radius: 3px; }
.gpc-user { background: #9F224E; color: white; align-self: flex-end; border-bottom-right-radius: 3px; white-space: pre-wrap; }
.gpc-typing { color: #646970; font-style: italic; }
.gpc-error { color: #b32d2e; border: 1px solid #d63638; }
.gpc-bot a { color: #9F224E; text-decoration: underline; }
.gpc-chat-input-area { display: flex; align-items: center; gap: 8px; padding: 10px; background: white; border-top: 1px solid #ddd; }
.gpc-chat-input { min-width: 0; flex: 1; border: 1px solid #8c8f94; border-radius: 20px; padding: 9px 13px; font-size: 14px; background: #fff; color: #1d2327; }
.gpc-chat-input:focus { outline: 2px solid #9F224E; outline-offset: 1px; }
.gpc-chat-send { flex: 0 0 auto; border: 0; background: #9F224E; color: white; border-radius: 20px; padding: 9px 15px; cursor: pointer; font-weight: 600; }
.gpc-chat-send:disabled { opacity: .55; cursor: not-allowed; }
.gpc-cta-group { display: flex; gap: 8px; flex-wrap: wrap; border-top: 1px solid #cbd0d5; margin-top: 10px; padding-top: 10px; }
.gpc-bot a.gpc-cta-btn { text-decoration: none; text-align: center; color: white; background: #d63638; border-radius: 8px; padding: 8px 10px; font-size: 13px; font-weight: 600; }
.gpc-bot a.gpc-cta-zalo { background: #0068ff; }
@media (max-width: 480px) { .gpc-mode-floating { right: 12px; bottom: 12px; } .gpc-mode-floating .gpc-chat-box { width: calc(100vw - 24px); height: min(480px, calc(100dvh - 95px)); } }
