/* =========================================================================
   FAST WMS · /tools/whatsapp-demo/ — simulator styles
   A generic chat UI in WhatsApp-like colours. No WhatsApp logo or marks.
   ========================================================================= */
.wa-main { display: grid; grid-template-columns: 1fr minmax(340px, 420px); gap: 56px; align-items: start; }
.wa-hero { padding-top: 40px; }
.wa-copy .wa-h2 { margin-top: 34px; }
.wa-copy h2 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; line-height: 1.12; margin-bottom: 14px; }
.wa-copy > p { color: var(--muted); max-width: 52ch; }
.wa-list { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 12px; }
.wa-list li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.wa-list .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--blue-lt); display: flex; align-items: center; justify-content: center; font-size: 17px; }
.wa-list strong { display: block; color: var(--ink); font-size: 16px; }
.wa-list span { font-size: 14.5px; color: var(--muted); }
.wa-own-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.tl-btn.off { background: #e9edf2; color: #6b7280 !important; cursor: not-allowed; box-shadow: none; transform: none; }
.wa-own-note { font-size: 13.5px; color: var(--light); }

/* the phone */
.wa-phone { position: sticky; top: 84px; border-radius: 40px; background: #0f1b2d; padding: 12px; box-shadow: 0 30px 70px rgba(16,36,63,.22); }
.wa-screen { position: relative; border-radius: 30px; overflow: hidden; height: min(720px, calc(100vh - 140px)); min-height: 520px; display: flex; flex-direction: column; background: #ECE5DD; }
.wa-head { display: flex; align-items: center; gap: 11px; padding: 14px 14px 12px; background: #0B6E5F; color: #fff; }
.wa-av { width: 38px; height: 38px; border-radius: 50%; background: #d9f2ee; color: #0B6E5F; font: 800 17px var(--head); display: flex; align-items: center; justify-content: center; flex: none; }
.wa-head strong { display: block; font: 700 16px var(--sans); line-height: 1.2; }
.wa-head small { font-size: 12.5px; opacity: .85; }
.wa-head button { margin-left: auto; background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: 9px; padding: 7px 10px; font: 600 12.5px var(--sans); cursor: pointer; }
.wa-head button:hover { background: rgba(255,255,255,.24); }
.wa-log { flex: 1; overflow-y: auto; padding: 14px 12px 8px; display: flex; flex-direction: column; gap: 8px;
  background-color: #ECE5DD; background-image: radial-gradient(rgba(16,36,63,.05) 1px, transparent 1.2px); background-size: 18px 18px; scroll-behavior: smooth; }
.wa-day { align-self: center; font-size: 12px; color: #5b6472; background: rgba(255,255,255,.85); padding: 3px 10px; border-radius: 8px; margin-bottom: 4px; }
.wa-msg { display: flex; flex-direction: column; max-width: 88%; animation: tlIn .25s ease both; }
.wa-msg.bot { align-self: flex-start; }
.wa-msg.me { align-self: flex-end; }
.wa-b { position: relative; background: #fff; color: #111b21; border-radius: 4px 12px 12px 12px; padding: 8px 10px 20px; font-size: 14.5px; line-height: 1.45; box-shadow: 0 1px 1px rgba(0,0,0,.08); min-width: 86px; overflow-wrap: anywhere; }
.wa-msg.me .wa-b { background: #DCF8C6; border-radius: 12px 4px 12px 12px; }
.wa-b a { color: #0b66c3; text-decoration: underline; }
.wa-t { position: absolute; right: 9px; bottom: 4px; font-size: 11px; color: #667781; white-space: nowrap; }
.wa-tick { color: #34a8e0; letter-spacing: -2px; margin-left: 2px; }
.wa-linkbtn { display: flex !important; align-items: center; justify-content: center; gap: 6px; margin: 10px -10px -2px; padding: 9px 10px 0; border-top: 1px solid #e9edef; color: #0b66c3 !important; text-decoration: none !important; font-weight: 600; }
.wa-acts { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.wa-acts button, .wa-listbtn { background: #fff; color: #0b66c3; border: 0; border-radius: 10px; padding: 10px 12px; font: 600 14.5px var(--sans); cursor: pointer; box-shadow: 0 1px 1px rgba(0,0,0,.08); transition: background .15s; }
.wa-acts button:hover:not(:disabled), .wa-listbtn:hover:not(:disabled) { background: #f5f8fb; }
.wa-acts button:disabled, .wa-listbtn:disabled { color: #8696a0; cursor: default; }
.wa-listbtn { margin-top: 4px; }
.wa-typing .wa-b { padding: 11px 14px; display: flex; gap: 4px; min-width: 0; }
.wa-typing i { width: 7px; height: 7px; border-radius: 50%; background: #8696a0; animation: waDot 1.1s infinite; }
.wa-typing i:nth-child(2) { animation-delay: .15s; } .wa-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes waDot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.wa-form { display: flex; gap: 8px; padding: 8px 10px 12px; background: #ECE5DD; }
.wa-form input[type="text"]:not([name="_honey"]):not([name="website"]) { flex: 1; border: 0; border-radius: 22px; padding: 11px 16px; font-size: 15px; background: #fff; color: #111b21; box-shadow: 0 1px 1px rgba(0,0,0,.06); min-width: 0; }
.wa-form input:focus { outline: 2px solid #0B6E5F; }
.wa-send { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: #0B6E5F; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.wa-send:hover { background: #095c50; }

/* list bottom sheet */
.wa-sheet { position: absolute; inset: 0; z-index: 5; }
.wa-sheet[hidden] { display: none; }
.wa-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.35); opacity: 0; transition: opacity .2s; border: 0; padding: 0; width: 100%; cursor: pointer; }
.wa-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 78%; background: #fff; border-radius: 18px 18px 0 0; display: flex; flex-direction: column; transform: translateY(100%); transition: transform .22s ease; }
.wa-sheet.open .wa-scrim { opacity: 1; }
.wa-sheet.open .wa-panel { transform: none; }
.wa-panel-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid #e9edef; }
.wa-panel-h strong { flex: 1; text-align: center; font: 700 16px var(--sans); color: #111b21; }
.wa-panel-h button { border: 0; background: none; font-size: 22px; line-height: 1; color: #54656f; cursor: pointer; width: 32px; height: 32px; border-radius: 8px; }
.wa-sheet-body { overflow-y: auto; padding: 4px 0 14px; }
.wa-sec-t { font: 700 12.5px var(--sans); color: #0B6E5F; padding: 14px 18px 6px; text-transform: none; }
.wa-row { display: block; width: 100%; text-align: left; border: 0; background: #fff; padding: 11px 18px; border-bottom: 1px solid #f0f2f5; cursor: pointer; }
.wa-row:hover, .wa-row:focus-visible { background: #f5f8fb; }
.wa-row strong { display: block; font: 600 15px var(--sans); color: #111b21; }
.wa-row small { display: block; font-size: 13px; color: #667781; margin-top: 2px; }

.wa-what { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.wa-what .tl-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.wa-what .tl-card p { font-size: 15px; color: var(--muted); }

.tl-cta { text-align: center; }
.tl-cta h2 { max-width: 22ch; margin: 0 auto 12px; }
.tl-cta p { color: var(--muted); margin-bottom: 26px; }

@media (max-width: 900px) {
  .wa-main { grid-template-columns: 1fr; gap: 28px; }
  .wa-phone { position: static; border-radius: 0; padding: 0; background: none; box-shadow: none; margin: 0 -20px; }
  .wa-screen { border-radius: 0; height: 78vh; height: 78svh; min-height: 480px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .wa-what { grid-template-columns: 1fr; }
  .wa-hero { padding-top: 24px; }
  /* phone right after the headline; the "what you can try" list after it */
  .wa-copy { display: contents; }
  .wa-copy > * { order: 1; }
  .wa-phone-col { order: 2; }
  .wa-copy > .wa-h2, .wa-copy > .wa-p, .wa-copy > .wa-list, .wa-copy > .wa-own-row { order: 3; }
  .wa-copy .wa-h2 { margin-top: 6px; }
  .wa-main { gap: 0; }
  .wa-copy > .tl-hero-meta { margin-bottom: 22px; }
  .wa-phone-col { margin-bottom: 28px; }
  .fw-wa { display: none !important; } /* the page is a chat; the float covered Send */
}
@media (prefers-reduced-motion: reduce) {
  .wa-typing i { animation: none; opacity: .6; }
  .wa-log { scroll-behavior: auto; }
}
