/* TechVista WhatsApp desk: new WhatsApp look (white message pill, black new-chat button, grey chips, roomy list). Remove this file's <link> in index.html to go back. */
@media (prefers-color-scheme: light) {
  body .wa-rail { background: #f7f8fa; border-right: 0; }
  body .wa-ri { color: #3b4a54; }
  body .wa-ri:hover { background: #e9edef; }
  body .wa-ri.on { background: #e9edef; color: #111b21; }
  body .wa-side { border-right: 1px solid #e9edef; }
  body .wa-sh { padding: 14px 14px 6px 20px; }
  body .wa-sh h1 { font-size: 22px; font-weight: 600; letter-spacing: -.1px; }
  body .wa-ib.g { background: #111b21; color: #fff; width: 40px; height: 40px; }
  body .wa-ib.g:hover { background: #2a3942; }
  body .wa-srch { margin: 6px 16px 10px; background: #f0f2f5; border-radius: 24px; padding: 0 16px; }
  body .wa-srch input { padding: 12px 0; font-size: 15px; }
  body .wa-chips { padding: 2px 16px 12px; gap: 8px; }
  body .wa-chip { background: #fff; border: 1px solid #d1d7db; color: #3b4a54; border-radius: 20px; padding: 6px 14px; font-size: 14.5px; font-weight: 500; }
  body .wa-chip:hover { background: #f5f6f6; }
  body .wa-chip.on { background: #e9edef; border-color: #e9edef; color: #111b21; font-weight: 600; }
  body .wa-row:hover { background: #f5f6f6; }
  body .wa-row.on { background: #f0f2f5; }
  body .wa-rm { border-bottom: 0; }
  body .wa-nm { font-size: 17px; font-weight: 400; color: #111b21; }
  body .wa-tm { font-size: 12.5px; color: #667781; }
  body .wa-pv { font-size: 15px; margin-top: 2px; }
  body .wa-ub { background: #25d366; color: #fff; }
  body .wa-chat { background: #f4f1ec; }
  body .wa-msgs { background-color: #f4f1ec; }
  body .wa-ch { height: 60px; background: #fff; border-bottom: 0; box-shadow: 0 1px 0 rgba(11,20,26,.10); padding: 0 18px; }
  body .wa-ch .nm { font-size: 17px; font-weight: 500; }
  body .wa-day { background: #fff; color: #54656f; font-size: 12.5px; padding: 5px 12px; border-radius: 8px; box-shadow: 0 1px 1px rgba(11,20,26,.10); }
  body .wa-b { border-radius: 10px; font-size: 14.8px; line-height: 20px; box-shadow: 0 1px 1px rgba(11,20,26,.10); }
  body .wa-b.in { border-top-left-radius: 0; background: #fff; }
  body .wa-b.out { border-top-right-radius: 0; background: #d9fdd3; }
  body .wa-comp { background: transparent; padding: 8px 20px 16px; align-items: center; }
  body .wa-compw { background: transparent; }
  body .wa-inbox { background: #fff; border: 1px solid #d1d7db; border-radius: 28px; padding: 4px 8px; box-shadow: 0 1px 3px rgba(11,20,26,.10); align-items: center; }
  body .wa-inbox textarea { font-size: 15.5px; padding: 10px 6px; }
  body .wa-comp .wa-cb { color: #3b4a54; }
  body .wa-comp .wa-cb.g { background: #111b21; color: #fff; }
  body .wa-comp .wa-cb.g:hover { background: #2a3942; }
  body .wa-ctx, body .wa-att, body .wa-menu { border-radius: 18px; }
}

/* inputs: the CRM's own input style must not paint a white box inside the grey pills */
body .wa .wa-srch input, body .wa .wa-exf select, body .wa .wa-ep-s input { background: transparent !important; border: 0 !important; box-shadow: none !important; outline: 0 !important; border-radius: 0 !important; }
/* bolder, slightly larger icons like the new WhatsApp */
body .wa .wa-ib svg, body .wa .wa-ri svg, body .wa .wa-cb svg { width: 24px; height: 24px; stroke-width: 1.9; }

/* emoji panel (all themes) */
body .wa-ep { position: absolute; bottom: 70px; left: 16px; width: 380px; height: 430px; max-height: 70vh; display: flex; flex-direction: column; background: #fff; color: #111b21; border-radius: 22px; box-shadow: 0 8px 36px rgba(11,20,26,.22); z-index: 40; overflow: hidden; animation: waPop .14s ease; }
body .wa-ep-tabs { display: flex; justify-content: space-between; padding: 10px 14px 0; border-bottom: 1px solid #e9edef; }
body .wa-ep-tabs button { border: 0; background: transparent; font-size: 20px; padding: 6px 6px 10px; border-bottom: 3px solid transparent; filter: grayscale(1); opacity: .7; cursor: pointer; }
body .wa-ep-tabs button.on { border-bottom-color: #111b21; filter: none; opacity: 1; }
body .wa-ep-s { display: flex; align-items: center; gap: 10px; margin: 12px 14px 6px; padding: 0 14px; height: 42px; border: 1px solid #d1d7db; border-radius: 22px; color: #667781; }
body .wa-ep-s:focus-within { border: 2px solid #111b21; padding: 0 13px; }
body .wa-ep-s input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 15px; color: inherit; font-family: inherit; }
body .wa-ep-b { flex: 1; overflow-y: auto; padding: 0 10px 10px 14px; }
body .wa-ep-b h4 { margin: 12px 0 6px; font-size: 13px; font-weight: 600; color: #667781; }
body .wa-ep-g { display: grid; grid-template-columns: repeat(8, 1fr); }
body .wa-ep-g button { border: 0; background: transparent; font-size: 26px; height: 42px; border-radius: 10px; cursor: pointer; line-height: 1; }
body .wa-ep-g button:hover { background: #f0f2f5; }
body .wa-ep-none { text-align: center; color: #667781; padding: 30px 0; }
@media (max-width: 900px) { body .wa-ep { left: 6px; right: 6px; width: auto; bottom: 64px; } }
@media (prefers-color-scheme: dark) {
  body .wa-ep { background: #233138; color: #e9edef; }
  body .wa-ep-tabs { border-bottom-color: #2a3942; }
  body .wa-ep-tabs button.on { border-bottom-color: #e9edef; }
  body .wa-ep-s { border-color: #3b4a54; color: #8696a0; }
  body .wa-ep-s:focus-within { border-color: #e9edef; }
  body .wa-ep-g button:hover { background: #2a3942; }
}
