/* WhatsApp chats on the board (29 Oct), styled like the WhatsApp app */
.wa-overlay { position: fixed; inset: 0; z-index: 5000; background: rgba(11, 20, 26, 0.55); display: flex; align-items: flex-start; justify-content: center; padding: 10vh 16px 0; }
/* Opens 10% below the top of the screen; drag it by the green header bar */
.wa-app { position: relative; width: min(1180px, 100%); height: calc(90vh - 12px); display: flex; background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35); font-family: "Segoe UI", Helvetica, Arial, sans-serif; color: #111b21; }
.wa-side { width: 360px; flex: none; display: flex; flex-direction: column; border-right: 1px solid #e9edef; background: #fff; }
.wa-side-head, .wa-main-head { height: 62px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 14px; background: #008069; color: #fff; }
.wa-side-head { justify-content: space-between; }
.wa-side-head, .wa-main-head { cursor: move; user-select: none; touch-action: none; }
.wa-side-head button, .wa-main-head button { cursor: pointer; }
.wa-app.is-dragging { opacity: 0.96; box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45); }
.wa-me { display: flex; align-items: center; gap: 10px; }
.wa-me small, .wa-head-name small { display: block; font-size: 12.5px; opacity: 0.85; }
.wa-icon { background: none; border: 0; color: inherit; font-size: 20px; cursor: pointer; padding: 6px 8px; border-radius: 50%; }
.wa-icon:hover { background: rgba(255, 255, 255, 0.15); }
.wa-back { display: none; }
/* number tabs: bot number / shop number (29 Oct) */
.wa-lines { display: flex; gap: 6px; padding: 8px 12px 0; }
.wa-line { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; border: 1px solid #d1d7db;
  background: #fff; border-radius: 10px; padding: 6px 10px; cursor: pointer; text-align: left; font: inherit; color: #111b21; }
.wa-line b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.wa-line small { font-size: 12px; color: #667781; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.wa-line.is-on { border-color: #00a884; background: #e7f8f2; }
.wa-empty a { color: #00a884; font-weight: 600; }
.wa-search { padding: 8px 12px; border-bottom: 1px solid #e9edef; }
.wa-search input { width: 100%; box-sizing: border-box; border: 0; border-radius: 8px; background: #f0f2f5; padding: 9px 14px; font-size: 15px; outline: none; }
.wa-list { flex: 1; overflow-y: auto; }
.wa-chat { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; border: 0; border-bottom: 1px solid #f0f2f5;
  background: #fff; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.wa-chat:hover { background: #f5f6f6; }
.wa-chat.is-open { background: #f0f2f5; }
.wa-avatar { width: 46px; height: 46px; flex: none; border-radius: 50%; background: #dfe5e7; color: #54656f; display: inline-flex;
  align-items: center; justify-content: center; font-weight: 700; font-size: 18px; }
.wa-avatar-me { background: #fff; color: #008069; width: 40px; height: 40px; font-size: 15px; }
.wa-main-head .wa-avatar { width: 40px; height: 40px; background: #e9edef; }
.wa-chat-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wa-chat-top { display: flex; justify-content: space-between; gap: 8px; }
.wa-chat-top b { font-weight: 600; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-chat-top small { color: #667781; font-size: 12px; flex: none; }
.wa-chat-last { color: #667781; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-tick { color: #53bdeb; font-size: 12px; letter-spacing: -3px; margin-right: 3px; }
.wa-new .wa-avatar { background: #d9fdd3; color: #008069; }
.wa-empty { padding: 30px 16px; text-align: center; color: #667781; font-size: 14px; }
.wa-main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #efeae2; }
.wa-placeholder { margin: auto; text-align: center; color: #54656f; display: flex; flex-direction: column; gap: 8px; padding: 24px; }
.wa-placeholder b { font-size: 24px; font-weight: 400; color: #41525d; }
.wa-ph-icon { font-size: 56px; }
.wa-head-name { min-width: 0; }
.wa-head-name b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-msgs { flex: 1; overflow-y: auto; padding: 14px 6% 10px;
  background-color: #efeae2; background-image: radial-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px); background-size: 18px 18px; }
.wa-day { text-align: center; margin: 10px 0; }
.wa-day span { background: #fff; color: #54656f; font-size: 12.5px; padding: 5px 12px; border-radius: 8px; box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13); }
.wa-msg { display: flex; margin: 2px 0; }
.wa-msg.out { justify-content: flex-end; }
.wa-bubble { position: relative; max-width: min(75%, 560px); padding: 6px 9px 8px; border-radius: 8px; background: #fff;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13); font-size: 14.5px; line-height: 1.4; }
.wa-msg.out .wa-bubble { background: #d9fdd3; }
.wa-msg.in .wa-bubble { border-top-left-radius: 0; }
.wa-msg.out .wa-bubble { border-top-right-radius: 0; }
.wa-text { white-space: pre-wrap; word-wrap: break-word; padding-right: 64px; }
.wa-time { position: absolute; right: 8px; bottom: 4px; font-size: 11px; color: #667781; }
.wa-by { display: block; font-size: 12px; font-weight: 700; color: #008069; margin-bottom: 1px; }
.wa-tpl { display: inline-block; font-size: 10.5px; font-weight: 700; color: #54656f; background: rgba(0, 0, 0, 0.06); border-radius: 4px; padding: 0 5px; margin-bottom: 3px; }
.wa-compose { flex: none; background: #f0f2f5; padding: 6px 14px 10px; }
.wa-as { font-size: 12px; color: #667781; padding: 2px 4px 6px; }
.wa-link { background: none; border: 0; color: #008069; font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
.wa-compose-row { display: flex; align-items: flex-end; gap: 10px; }
.wa-compose textarea { flex: 1; resize: none; border: 0; border-radius: 10px; padding: 11px 14px; font: inherit; font-size: 15px;
  background: #fff; outline: none; max-height: 140px; }
.wa-send { width: 46px; height: 46px; flex: none; border: 0; border-radius: 50%; background: #008069; color: #fff; font-size: 20px; cursor: pointer; }
.wa-send:disabled { opacity: 0.5; }
.wa-closed { background: #fff8e1; color: #6b4e00; border-radius: 8px; padding: 10px 14px; font-size: 13.5px; line-height: 1.45; }
@media (max-width: 760px) {
  .wa-overlay { padding: 0; }
  .wa-app { border-radius: 0; height: 100%; transform: none !important; }
  .wa-side-head, .wa-main-head { cursor: default; }
  .wa-side { width: 100%; border-right: 0; }
  .wa-main { display: none; }
  .wa-app.chat-open .wa-side { display: none; }
  .wa-app.chat-open .wa-main { display: flex; }
  .wa-back { display: inline-block; }
  .wa-msgs { padding: 10px 10px; }
  .wa-bubble { max-width: 85%; }
}

/* photos / voice notes / videos / files of the shop number (29 Oct) */
.wa-media { display:block; margin:2px 0 4px; max-width:260px; }
.wa-media img { display:block; max-width:260px; max-height:320px; border-radius:6px; }
audio.wa-media { width:260px; max-width:100%; }
video.wa-media { width:260px; max-width:100%; border-radius:6px; }
.wa-file { color:inherit; text-decoration:underline; word-break:break-all; }
