/* Kirtara — asisten chat situs. Mandiri: tidak bergantung CSS layout. */
.kchat { --kc-ink: #1e0f2b; --kc-bg: #fbf7f2; --kc-paper: #fff; --kc-line: #e6dcd2; --kc-mute: #7b6f84; --kc-coral: #ff6b47; --kc-ok: #1c8a50;
  position: fixed; right: 20px; bottom: 20px; z-index: 900; font-family: inherit; color: var(--kc-ink); line-height: 1.45; }
.kchat *, .kchat *::before, .kchat *::after { box-sizing: border-box; }
.kchat [hidden], .kchat[hidden] { display: none !important; }
.has-kchat .wa-float { display: none !important; }
.kchat__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.kchat__mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--kc-coral); color: var(--kc-ink); flex: none; }
.kchat__mark svg { width: 18px; height: 18px; }
.kchat__launch { position: relative; display: flex; align-items: center; gap: 10px; margin-left: auto; padding: 7px 16px 7px 7px; border: 0; border-radius: 99px; background: var(--kc-ink); color: var(--kc-bg); font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer;
  box-shadow: 0 10px 28px -12px rgba(30, 15, 43, .55); transition: transform .2s, box-shadow .2s; }
.kchat__launch:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(30, 15, 43, .6); }
.kchat__launch .kchat__mark { transition: transform .3s; }
.kchat.is-open .kchat__launch .kchat__mark { transform: rotate(45deg); }
.kchat__ping { position: absolute; top: 2px; left: 30px; width: 11px; height: 11px; border-radius: 50%; background: var(--kc-coral); border: 2px solid var(--kc-ink); }
.kchat__ping::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--kc-coral); animation: kc-ping 1.6s ease-out infinite; }
@keyframes kc-ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.kchat__greet { position: absolute; right: 0; bottom: 62px; width: 300px; padding: 14px 14px 12px; border: 1.5px solid var(--kc-ink); border-radius: 14px 14px 4px 14px; background: var(--kc-paper);
  box-shadow: 6px 6px 0 var(--kc-ink); opacity: 0; transform: translateY(10px) scale(.96); transform-origin: bottom right; transition: opacity .3s, transform .35s cubic-bezier(.3, 1.4, .5, 1); }
.kchat__greet.is-in { opacity: 1; transform: none; }
.kchat__greet-txt { margin: 0 22px 10px 0; font-size: .95rem; font-weight: 600; cursor: pointer; }
.kchat__x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--kc-mute); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.kchat__x:hover { background: #f3ece5; color: var(--kc-ink); }
.kchat__panel { position: absolute; right: 0; bottom: 64px; width: 380px; height: min(580px, calc(100vh - 110px)); display: flex; flex-direction: column; border: 1.5px solid var(--kc-ink); border-radius: 16px; background: var(--kc-bg);
  box-shadow: 8px 8px 0 var(--kc-ink); overflow: hidden; opacity: 0; transform: translateY(14px) scale(.98); transform-origin: bottom right; transition: opacity .22s, transform .3s cubic-bezier(.2, .9, .3, 1.1); }
.kchat__panel.is-in { opacity: 1; transform: none; }
.kchat__head { display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 14px; border-bottom: 1.5px solid var(--kc-ink); background: var(--kc-paper); }
.kchat__head > div { flex: 1; min-width: 0; }
.kchat__head b { display: block; font-size: .98rem; }
.kchat__head small { display: flex; align-items: center; gap: 6px; font-size: .74rem; color: var(--kc-mute); }
.kchat__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--kc-ok); }
.kchat__icon { width: 34px; height: 34px; border: 0; border-radius: 9px; background: transparent; color: var(--kc-ink); font-size: 1.15rem; cursor: pointer; }
.kchat__icon:hover { background: #f3ece5; }
.kchat__log { flex: 1; overflow-y: auto; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; }
.kchat__msg { max-width: 86%; padding: 9px 12px; border-radius: 14px; font-size: .93rem; overflow-wrap: anywhere; animation: kc-in .3s cubic-bezier(.2, .8, .2, 1) both; }
.kchat__msg--bot { align-self: flex-start; background: var(--kc-paper); border: 1px solid var(--kc-line); border-bottom-left-radius: 4px; }
.kchat__msg--user { align-self: flex-end; background: var(--kc-ink); color: var(--kc-bg); border-bottom-right-radius: 4px; }
.kchat__msg--warn { border-color: #f3c3cb; background: #fff6f4; }
.kchat__msg a { color: #c2401f; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.kchat__handoff { display: inline-block; margin-top: 6px; }
@keyframes kc-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.kchat__typing { display: flex; gap: 4px; padding: 12px 14px; }
.kchat__typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--kc-mute); animation: kc-dot 1s ease-in-out infinite; }
.kchat__typing i:nth-child(2) { animation-delay: .15s; } .kchat__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes kc-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.kchat__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.kchat__log > .kchat__chips { margin: 2px 0 4px; }
.kchat__chip { padding: 7px 11px; border: 1.5px solid var(--kc-ink); border-radius: 99px; background: transparent; font: inherit; font-size: .84rem; font-weight: 600; color: var(--kc-ink); text-align: left; cursor: pointer; transition: background .15s, color .15s; }
.kchat__chip:hover { background: var(--kc-ink); color: var(--kc-bg); }
.kchat__form { display: flex; align-items: flex-end; gap: 8px; margin: 0; padding: 10px; border-top: 1px solid var(--kc-line); background: var(--kc-paper); }
.kchat__form textarea { flex: 1; resize: none; min-height: 42px; max-height: 120px; padding: 10px 12px; border: 1.5px solid var(--kc-line); border-radius: 12px; font: inherit; font-size: .94rem; color: var(--kc-ink); background: #fff; scrollbar-width: none; }
.kchat__form textarea::-webkit-scrollbar { display: none; }
.kchat__form textarea:focus { outline: 0; border-color: var(--kc-ink); }
.kchat__send { width: 42px; height: 42px; flex: none; border: 0; border-radius: 12px; background: var(--kc-coral); color: var(--kc-ink); font-size: 1.2rem; font-weight: 800; cursor: pointer; }
.kchat__send:hover { filter: brightness(.95); }
.kchat__foot { margin: 0; padding: 7px 12px 10px; background: var(--kc-paper); font-size: .72rem; color: var(--kc-mute); }
.kchat__foot a { color: var(--kc-ink); font-weight: 700; }
.kchat :focus-visible { outline: 2px solid var(--kc-coral); outline-offset: 2px; }
@media (max-width: 600px) {
  .kchat { right: 12px; bottom: 12px; }
  .kchat__launch { padding: 6px; }
  .kchat__launch-txt { display: none; }
  .kchat__greet { width: min(290px, calc(100vw - 24px)); bottom: 56px; }
  .kchat__panel { position: fixed; inset: 0; width: auto; height: auto; border: 0; border-radius: 0; box-shadow: none; }
  .kchat.is-open .kchat__launch { display: none; }
}
@media (prefers-reduced-motion: reduce) { .kchat *, .kchat *::after { animation: none !important; transition: none !important; } }
