/* Quylinh Webchat AI — khung chat góc phải dưới */
#qwca-widget { position: fixed; right: 18px; bottom: 18px; z-index: 2147483000; font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
#qwca-bubble { width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer; background: #1e7e34; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.25); transition: transform .15s ease; }
#qwca-bubble:hover { transform: scale(1.06); }
#qwca-bubble.qwca-open { background: #155724; }
#qwca-panel { position: absolute; right: 0; bottom: 70px; width: 360px; max-width: calc(100vw - 36px); height: 520px; max-height: calc(100vh - 120px); background: #fff; border-radius: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.25); display: flex; flex-direction: column; overflow: hidden; }
#qwca-panel.qwca-hidden { display: none; }
#qwca-header { background: #1e7e34; color: #fff; padding: 12px 14px; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
#qwca-title { flex: 1; }
#qwca-status { width: 9px; height: 9px; border-radius: 50%; background: #7CFC00; display: inline-block; }
#qwca-close { background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; line-height: 1; padding: 0 2px; }
#qwca-messages { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: #f4f6f4; }
.qwca-msg { max-width: 85%; padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.qwca-msg.qwca-bot { background: #e8f5e9; color: #1b1b1b; align-self: flex-start; border-bottom-left-radius: 4px; }
.qwca-msg.qwca-user { background: #1e7e34; color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.qwca-msg.qwca-typing { color: #777; font-style: italic; }
.qwca-quick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.qwca-quick button { background: #fff; border: 1px solid #1e7e34; color: #1e7e34; border-radius: 16px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
#qwca-lead-form { padding: 12px; border-top: 1px solid #e0e0e0; background: #fff; display: flex; flex-direction: column; gap: 8px; }
#qwca-lead-form.qwca-hidden { display: none; }
#qwca-lead-form p { margin: 0; font-size: 13px; color: #333; }
#qwca-lead-form input { border: 1px solid #ccc; border-radius: 8px; padding: 9px 10px; font-size: 14px; width: 100%; box-sizing: border-box; }
#qwca-lead-send { background: #1e7e34; color: #fff; border: none; border-radius: 8px; padding: 10px; font-size: 14px; cursor: pointer; }
#qwca-input-row { display: flex; gap: 6px; padding: 10px; border-top: 1px solid #e0e0e0; background: #fff; }
#qwca-input { flex: 1; border: 1px solid #ccc; border-radius: 20px; padding: 9px 14px; font-size: 14px; outline: none; }
#qwca-input:focus { border-color: #1e7e34; }
#qwca-send { width: 40px; height: 40px; border-radius: 50%; border: none; background: #1e7e34; color: #fff; font-size: 16px; cursor: pointer; flex-shrink: 0; }
#qwca-send:disabled { opacity: .5; cursor: default; }
@media (max-width: 480px) {
  #qwca-widget { right: 12px; bottom: 12px; }
  #qwca-panel { width: calc(100vw - 24px); height: 70vh; bottom: 66px; }
}
