/* Widget livechat Z Engine (17 Sep 2026). Netral terhadap tema website:
   panel terang agar percakapan mudah dibaca, kepala & gelembung CS gelap. */
.lc{--lc-ink:#101828;--lc-ink-2:#475467;--lc-muted:#667085;--lc-line:#e4e7ec;--lc-bg:#f5f6f8;--lc-surface:#fff;--lc-dark:#101828;--lc-dark-2:#1d2939;--lc-online:#12b76a;--lc-danger:#d92d20;
  position:fixed;z-index:2147483000;right:20px;bottom:20px;font:14px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:var(--lc-ink)}
.lc *,.lc *:before,.lc *:after{box-sizing:border-box}
.lc [hidden]{display:none!important}
.lc-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.lc svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

.lc-launcher{position:relative;display:grid;width:58px;height:58px;place-items:center;margin:0 0 0 auto;padding:0;border:0;border-radius:50%;background:var(--lc-dark);color:#fff;box-shadow:0 10px 28px rgba(16,24,40,.35),0 0 0 3px rgba(255,255,255,.14);cursor:pointer;transition:transform .15s}
.lc-launcher:hover{transform:translateY(-2px)}
.lc-launcher:focus-visible,.lc button:focus-visible,.lc textarea:focus-visible,.lc input:focus-visible{outline:3px solid #53b1fd;outline-offset:2px}
.lc-launcher svg{width:26px;height:26px}
.lc-launcher .lc-ico-close{display:none}
.lc.is-open .lc-launcher .lc-ico-chat{display:none}
.lc.is-open .lc-launcher .lc-ico-close{display:block}
.lc-launcher:after{content:"";position:absolute;right:4px;bottom:4px;width:12px;height:12px;border:2px solid var(--lc-dark);border-radius:50%;background:var(--lc-muted)}
.lc.is-online .lc-launcher:after{background:var(--lc-online)}
.lc-badge{position:absolute;top:-4px;right:-4px;min-width:22px;height:22px;padding:0 6px;border:2px solid #fff;border-radius:999px;background:var(--lc-danger);color:#fff;font-size:11px;font-weight:700;line-height:18px;text-align:center}

.lc-panel{position:absolute;right:0;bottom:72px;display:flex;flex-direction:column;width:370px;height:min(600px,calc(100vh - 110px));overflow:hidden;border-radius:18px;background:var(--lc-bg);box-shadow:0 24px 60px rgba(16,24,40,.35);animation:lc-in .18s ease-out}
@keyframes lc-in{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
.lc-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 14px 14px 16px;background:linear-gradient(135deg,var(--lc-dark),var(--lc-dark-2));color:#fff}
.lc-agent{display:flex;min-width:0;align-items:center;gap:10px}
.lc-avatar{display:grid;width:40px;height:40px;flex:0 0 40px;place-items:center;border-radius:50%;background:rgba(255,255,255,.14);font-size:13px;font-weight:800;letter-spacing:.04em}
.lc-agent div{display:flex;min-width:0;flex-direction:column}
.lc-agent b{overflow:hidden;font-size:15px;text-overflow:ellipsis;white-space:nowrap}
.lc-agent small{display:flex;align-items:center;gap:6px;color:#d0d5dd;font-size:12px}
.lc-agent small i{width:8px;height:8px;border-radius:50%;background:#98a2b3}
.lc.is-online .lc-agent small i{background:var(--lc-online)}
.lc-close{display:grid;width:36px;height:36px;place-items:center;padding:0;border:0;border-radius:10px;background:rgba(255,255,255,.1);color:#fff;cursor:pointer}

.lc-body{flex:1;overflow-y:auto;padding:16px 14px;overscroll-behavior:contain}
.lc-messages{display:flex;flex-direction:column;gap:6px;margin:0;padding:0;list-style:none}
.lc-day{align-self:center;margin:8px 0 4px;padding:2px 10px;border-radius:999px;background:#e4e7ec;color:var(--lc-ink-2);font-size:11px}
.lc-msg{display:flex;max-width:82%;flex-direction:column;gap:2px}
.lc-msg.me{align-self:flex-end;align-items:flex-end}
.lc-msg.them{align-self:flex-start}
.lc-bubble{padding:9px 12px;border-radius:16px;font-size:14px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.lc-msg.me .lc-bubble{border-bottom-right-radius:5px;background:var(--lc-dark);color:#fff}
.lc-msg.them .lc-bubble{border-bottom-left-radius:5px;background:var(--lc-surface);box-shadow:0 1px 2px rgba(16,24,40,.08);color:var(--lc-ink)}
.lc-bubble img{display:block;max-width:100%;max-height:240px;margin:-3px -6px 2px;border-radius:12px;cursor:zoom-in}
.lc-msg time{padding:0 4px;color:var(--lc-muted);font-size:10.5px}
.lc-msg.pending{opacity:.6}
.lc-system{align-self:center;max-width:90%;padding:4px 10px;color:var(--lc-muted);font-size:12px;text-align:center}

.lc-form{display:flex;flex-direction:column;gap:8px;padding:10px 12px 12px;border-top:1px solid var(--lc-line);background:var(--lc-surface)}
.lc-error{margin:0;padding:7px 10px;border-radius:8px;background:#fef3f2;color:#b42318;font-size:12.5px}
.lc-preview{position:relative;align-self:flex-start}
.lc-preview img{display:block;max-width:120px;max-height:90px;border-radius:10px;border:1px solid var(--lc-line)}
.lc-preview button{position:absolute;top:-8px;right:-8px;width:24px;height:24px;padding:0;border:0;border-radius:50%;background:var(--lc-dark);color:#fff;font-size:15px;line-height:1;cursor:pointer}
.lc-compose{display:flex;align-items:flex-end;gap:6px}
.lc-attach{position:relative;display:grid;width:40px;height:40px;flex:0 0 40px;place-items:center;border-radius:10px;color:var(--lc-muted);cursor:pointer}
.lc-attach:hover{background:var(--lc-bg);color:var(--lc-ink)}
.lc-attach input{position:absolute;inset:0;opacity:0;cursor:pointer}
.lc-compose textarea{flex:1;min-height:40px;max-height:120px;padding:9px 12px;border:1px solid var(--lc-line);border-radius:12px;background:var(--lc-bg);color:var(--lc-ink);font:inherit;font-size:14px;line-height:1.45;resize:none}
.lc-compose textarea:focus{border-color:#98a2b3;background:#fff;outline:0}
.lc-send{display:grid;width:40px;height:40px;flex:0 0 40px;place-items:center;padding:0;border:0;border-radius:12px;background:var(--lc-dark);color:#fff;cursor:pointer}
.lc-send:disabled{opacity:.45;cursor:default}
.lc-send svg{width:19px;height:19px}

.lc-zoom{position:fixed;inset:0;z-index:2147483001;display:grid;place-items:center;padding:20px;background:rgba(0,0,0,.85);cursor:zoom-out}
.lc-zoom img{max-width:100%;max-height:100%;border-radius:8px}

body.lc-enabled .public-support-float{bottom:92px}
@media (max-width:900px){
  .lc{right:12px;bottom:calc(88px + env(safe-area-inset-bottom,0px))}
  .lc-launcher{width:52px;height:52px}
  body.lc-enabled .public-support-float{bottom:calc(150px + env(safe-area-inset-bottom,0px))!important}
}
@media (max-width:520px){
  .lc.is-open{inset:0;right:0;bottom:0}
  .lc.is-open .lc-launcher{display:none}
  .lc-panel{position:fixed;inset:0;width:auto;height:auto;border-radius:0;padding-top:env(safe-area-inset-top,0);padding-bottom:env(safe-area-inset-bottom,0);animation:none}
  .lc-head{border-radius:0}
  .lc-compose textarea{font-size:16px}
}
@media (prefers-reduced-motion:reduce){.lc-panel{animation:none}.lc-launcher{transition:none}}

/* Tema website sering menata input/textarea secara global (gelap, border
   tebal); kunci tampilan kolom di widget supaya tetap terbaca di semua tema. */
.lc .lc-compose textarea,.lc .lc-field input,.lc .lc-rate textarea{margin:0!important;border:1px solid var(--lc-line)!important;background:var(--lc-bg)!important;color:var(--lc-ink)!important;box-shadow:none!important;font:inherit!important;font-size:14px!important;line-height:1.45!important;letter-spacing:normal!important;text-transform:none!important;-webkit-text-fill-color:var(--lc-ink)!important}
.lc .lc-field input{height:42px!important;padding:0 12px!important;border-radius:10px!important;background:#fff!important}
.lc .lc-field input:disabled{background:var(--lc-bg)!important;color:var(--lc-muted)!important;-webkit-text-fill-color:var(--lc-muted)!important}
.lc .lc-rate textarea{padding:8px 10px!important;border-radius:10px!important;background:#fff!important;resize:none}
.lc .lc-compose textarea{min-height:40px!important;padding:9px 12px!important;border-radius:12px!important}
.lc .lc-compose textarea:focus,.lc .lc-field input:focus,.lc .lc-rate textarea:focus{border-color:#98a2b3!important;background:#fff!important}
.lc .lc-compose textarea::placeholder,.lc .lc-field input::placeholder,.lc .lc-rate textarea::placeholder{color:#98a2b3!important;-webkit-text-fill-color:#98a2b3!important;opacity:1}
/* Tombol pembuka putih: menonjol di tema gelap maupun terang. */
.lc .lc-launcher{background:#fff;color:var(--lc-dark);box-shadow:0 10px 28px rgba(0,0,0,.35),0 0 0 1px rgba(16,24,40,.08)}
.lc .lc-launcher:after{border-color:#fff}
@media (max-width:520px){.lc .lc-compose textarea{font-size:16px!important}}

/* ---- form sebelum chat, topik, mengetik, terbaca, rating (17 Sep 2026) ---- */
.lc-start{display:flex;flex:1;flex-direction:column;gap:14px;overflow-y:auto;padding:18px 16px 16px;background:var(--lc-surface)}
.lc-start-head{display:flex;flex-direction:column;align-items:center;gap:3px;padding:4px 6px 2px;text-align:center}
.lc-start-head span{font-size:30px}
.lc-start-head b{font-size:16px}
.lc-start-head p{margin:0;color:var(--lc-muted);font-size:13px}
.lc-topics{margin:0;padding:0;border:0}
.lc-topics legend{margin-bottom:8px;padding:0;color:var(--lc-ink-2);font-size:12.5px;font-weight:700}
.lc-topics legend em,.lc-field em{color:var(--lc-danger);font-style:normal}
.lc-topics div{display:flex;flex-wrap:wrap;gap:8px}
.lc .lc-topic{padding:8px 12px;border:1px solid var(--lc-line);border-radius:999px;background:#fff;color:var(--lc-ink);font:600 13px/1.2 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;cursor:pointer}
.lc .lc-topic:hover{border-color:#98a2b3}
.lc .lc-topic[aria-pressed="true"]{border-color:var(--lc-dark);background:var(--lc-dark);color:#fff}
.lc-fields{display:grid;gap:12px}
.lc-field{display:flex;flex-direction:column;gap:5px;color:var(--lc-ink-2);font-size:12.5px;font-weight:700}
.lc-field small{color:var(--lc-muted);font-weight:500}
.lc-field.invalid input{border-color:var(--lc-danger)!important}
.lc .lc-start-btn{height:46px;margin-top:auto;border:0;border-radius:12px;background:var(--lc-dark);color:#fff;font:700 15px system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;cursor:pointer}
.lc .lc-start-btn:disabled{opacity:.6;cursor:default}
.lc-msg time .tick{margin-left:4px;letter-spacing:-3px;color:var(--lc-muted)}
.lc-msg time .tick.read{color:#2e90fa}
.lc-typing{display:flex;align-items:center;gap:3px;width:max-content;margin-top:8px;padding:9px 12px;border-radius:16px;border-bottom-left-radius:5px;background:var(--lc-surface);box-shadow:0 1px 2px rgba(16,24,40,.08)}
.lc-typing span{width:6px;height:6px;border-radius:50%;background:#98a2b3;animation:lc-dot 1.2s infinite}
.lc-typing span:nth-child(2){animation-delay:.15s}
.lc-typing span:nth-child(3){animation-delay:.3s}
.lc-typing em{margin-left:6px;color:var(--lc-muted);font-size:12px;font-style:normal}
@keyframes lc-dot{0%,60%,100%{opacity:.35;transform:none}30%{opacity:1;transform:translateY(-3px)}}
.lc-rate{display:grid;gap:10px;margin-top:12px;padding:14px;border:1px solid var(--lc-line);border-radius:14px;background:var(--lc-surface);text-align:center}
.lc-rate b{font-size:14px}
.lc-rate-choices{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.lc .lc-rate-choices button{height:42px;border:1px solid var(--lc-line);border-radius:10px;background:#fff;color:var(--lc-ink);font:600 14px system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;cursor:pointer}
.lc .lc-rate-choices button[aria-pressed="true"]{border-color:var(--lc-dark);background:var(--lc-dark);color:#fff}
.lc-rate .lc-start-btn{margin-top:0;height:40px;font-size:14px}
.lc-rate-done{color:var(--lc-muted);font-size:13px}
@media (prefers-reduced-motion:reduce){.lc-typing span{animation:none}}

/* Cuplikan balasan CS di atas tombol saat widget tertutup. */
.lc-peek{position:absolute;right:0;bottom:70px;display:flex;align-items:flex-start;width:min(290px,calc(100vw - 32px));border-radius:14px;background:#fff;box-shadow:0 14px 36px rgba(16,24,40,.3);animation:lc-in .2s ease-out}
.lc.is-open .lc-peek{display:none}
.lc .lc-peek-body{display:flex;flex:1;min-width:0;flex-direction:column;gap:2px;padding:11px 4px 11px 13px;border:0;background:transparent;color:var(--lc-ink);font:14px/1.4 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;text-align:left;cursor:pointer}
.lc-peek-body b{font-size:12px;color:var(--lc-muted)}
.lc-peek-body span{display:-webkit-box;overflow:hidden;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow-wrap:anywhere}
.lc .lc-peek-close{width:30px;height:30px;margin:6px 6px 0 0;padding:0;border:0;border-radius:8px;background:transparent;color:var(--lc-muted);font-size:18px;line-height:1;cursor:pointer}
.lc .lc-peek-close:hover{background:var(--lc-bg)}
@media (max-width:900px){.lc-peek{bottom:64px}}

/* Reaksi emoji & balas pesan (17 Sep 2026) */
.lc-msg{position:relative}
.lc-bubble{cursor:pointer}
.lc-bubble:focus-visible{outline:2px solid #53b1fd;outline-offset:2px}
.lc .lc-quote{display:flex;width:100%;flex-direction:column;gap:1px;margin:-2px 0 6px;padding:5px 9px;border:0;border-left:3px solid #53b1fd;border-radius:8px;background:rgba(16,24,40,.06);color:inherit;font:12.5px/1.35 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;text-align:left;cursor:pointer}
.lc-msg.me .lc-quote{background:rgba(255,255,255,.14);border-left-color:#a6d4fa}
.lc-quote b{font-size:11.5px;opacity:.8}
.lc-quote span{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;opacity:.9}
.lc-reactions{display:flex;gap:3px;margin-top:-8px;padding:0 6px;z-index:1}
.lc-reactions span{display:grid;min-width:24px;height:24px;place-items:center;padding:0 4px;border:2px solid var(--lc-bg);border-radius:999px;background:#fff;box-shadow:0 1px 3px rgba(16,24,40,.15);font-size:13px;line-height:1}
.lc-reactions span.mine{background:#e6f2ff}
.lc-actions{display:none;flex-wrap:wrap;align-items:center;gap:2px;margin-top:4px;padding:4px;border-radius:999px;background:#fff;box-shadow:0 6px 18px rgba(16,24,40,.18)}
.lc-msg.show-actions .lc-actions{display:flex}
.lc .lc-actions button{display:grid;min-width:32px;height:32px;place-items:center;padding:0 4px;border:0;border-radius:999px;background:transparent;font-size:17px;line-height:1;cursor:pointer}
.lc .lc-actions button:hover,.lc .lc-actions button[aria-pressed="true"]{background:var(--lc-bg)}
.lc .lc-actions .lc-reply-btn{padding:0 10px;color:var(--lc-ink);font:600 13px system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
.lc-msg.flash .lc-bubble{animation:lc-flash 1.4s ease}
@keyframes lc-flash{0%,60%{box-shadow:0 0 0 3px #53b1fd}100%{box-shadow:none}}
.lc-replying{display:flex;align-items:center;gap:8px;padding:6px 8px 6px 10px;border-left:3px solid #53b1fd;border-radius:8px;background:var(--lc-bg)}
.lc-replying div{display:flex;min-width:0;flex:1;flex-direction:column}
.lc-replying b{color:#1570ef;font-size:12px}
.lc-replying span{overflow:hidden;color:var(--lc-ink-2);font-size:12.5px;text-overflow:ellipsis;white-space:nowrap}
.lc .lc-replying button{width:28px;height:28px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--lc-muted);font-size:18px;cursor:pointer}
