/* chat.css — BEER-CHAT2 กล่องแชตแบบ Messenger/LINE · รายการข้อความเลื่อนได้เต็มพื้นที่ · ปุ่มด่วนแถวเดียวเลื่อนแนวนอน · ช่องพิมพ์ล่างสุด · มือถือเต็มจอ
   ไม่อ้างไฟล์/ฟอนต์ภายนอก · ตัวหนังสือทุกจุด ≥ 16px (มือถือไม่ซูมเอง) */
.bc-root, .bc-root * { box-sizing: border-box; }
.bc-root { position: fixed; right: 16px; bottom: 16px; z-index: 2147483000; font-family: Tahoma, "Leelawadee UI", sans-serif; font-size: 16px; line-height: 1.55; color: #073b6b; }
.bc-root [hidden] { display: none !important; }
.bc-launch { display: block; margin-left: auto; min-height: 52px; padding: 12px 22px; border: 0; border-radius: 26px; background: #006cac; color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; box-shadow: 0 6px 20px rgba(7, 59, 107, .3); }
.bc-launch:hover { background: #073b6b; }
.bc-launch:focus-visible, .bc-chip:focus-visible, .bc-btn:focus-visible, .bc-send:focus-visible, .bc-close:focus-visible, .bc-input:focus-visible, .bc-link:focus-visible { outline: 3px solid #23a7df; outline-offset: 2px; }
/* แผง: คอลัมน์ flex สูงคงที่ ⇒ ข้อความกินพื้นที่ที่เหลือ ไม่โดนปุ่ม/ข้อความเตือนดันจนเหลือนิดเดียว */
.bc-panel { width: 380px; max-width: calc(100vw - 32px); height: min(620px, calc(100vh - 96px)); margin-bottom: 12px; display: flex; flex-direction: column; background: #fff; border: 1px solid #c8dfeb; border-radius: 14px; box-shadow: 0 10px 34px rgba(7, 59, 107, .28); overflow: hidden; }
.bc-head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 6px 14px; background: #006cac; color: #fff; }
.bc-title { font-size: 16px; }
.bc-head-btns { display: flex; align-items: center; gap: 6px; }
.bc-call { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; min-width: 44px; padding: 4px 10px; border: 1px solid #fff; border-radius: 8px; background: transparent; color: #fff; font-size: 18px; line-height: 1; text-decoration: none; }
.bc-call:hover, .bc-call:focus-visible { background: rgba(255, 255, 255, .2); outline: 3px solid #fff; outline-offset: 1px; }
.bc-tel { color: inherit; font-weight: 700; text-decoration: underline; white-space: nowrap; }
.bc-close { min-height: 40px; min-width: 56px; padding: 4px 12px; border: 1px solid #fff; border-radius: 8px; background: transparent; color: #fff; font: inherit; font-size: 16px; cursor: pointer; }
.bc-log { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 12px 10px; background: #f4f9fc; }
.bc-msg { width: fit-content; max-width: 86%; margin: 0 0 8px; padding: 8px 12px; border-radius: 16px; font-size: 16px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.bc-bot { margin-right: auto; background: #fff; border: 1px solid #dcecf6; border-bottom-left-radius: 4px; }
.bc-me { margin-left: auto; background: #006cac; color: #fff; border-bottom-right-radius: 4px; }
.bc-warn { background: #fff7e6; border-color: #f0d9a8; }
.bc-typing { color: #526a7e; }
.bc-small { margin-top: 6px; font-size: 16px; line-height: 1.45; color: #526a7e; }
.bc-link { color: #006cac; font-weight: 700; text-decoration: underline; }
.bc-chips { flex: 0 0 auto; display: flex; gap: 8px; padding: 8px 10px; overflow-x: auto; overflow-y: hidden; white-space: nowrap; border-top: 1px solid #e1edf4; background: #fff; -webkit-overflow-scrolling: touch; }
.bc-chip { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 40px; padding: 4px 14px; border: 1px solid #006cac; border-radius: 20px; background: #fff; color: #006cac; font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; }
.bc-chip-main { background: #006cac; color: #fff; }
.bc-chip:disabled { opacity: .55; cursor: default; }
.bc-input-row { flex: 0 0 auto; display: flex; gap: 8px; padding: 8px 10px 10px; background: #fff; }
.bc-input { flex: 1 1 auto; min-width: 0; min-height: 46px; padding: 8px 14px; border: 1px solid #8fb4c8; border-radius: 23px; font: inherit; font-size: 16px; color: #073b6b; background: #fff; }
.bc-input:disabled { background: #eef3f6; }
.bc-send { flex: 0 0 auto; min-height: 46px; padding: 8px 20px; border: 0; border-radius: 23px; background: #006cac; color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.bc-send:disabled, .bc-btn:disabled { opacity: .55; cursor: default; }
.bc-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 14px; border: 1px solid #006cac; border-radius: 10px; background: #fff; color: #006cac; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; text-align: center; }
.bc-btn-main { background: #006cac; color: #fff; }
.bc-confirm { max-width: 92%; }
.bc-confirm-line { font-size: 16px; }
.bc-confirm-note { margin-top: 6px; font-size: 16px; color: #526a7e; }
.bc-confirm-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.bc-ok { margin-top: 8px; font-size: 16px; font-weight: 700; color: #11663a; }
.bc-err { margin-top: 8px; font-size: 16px; font-weight: 700; color: #b3261e; }
.bc-gal { max-width: 92%; }
.bc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-bottom: 6px; }
.bc-img { display: block; width: 100%; height: 110px; object-fit: cover; border-radius: 8px; background: #dcecf6; }
/* มือถือ: แผงเต็มจอ (ความสูงปรับตามแป้นพิมพ์ด้วย visualViewport ใน chat.js) */
@media (max-width: 599px) {
  .bc-root { right: 12px; bottom: 12px; }
  .bc-root.bc-open { right: 0; bottom: 0; left: 0; top: 0; }
  .bc-root.bc-open .bc-launch { display: none; }
  .bc-panel { position: fixed; left: 0; right: 0; top: 0; width: 100%; max-width: none; height: 100vh; height: 100dvh; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
  .bc-msg { max-width: 90%; }
}
