/* Asisten Perizinan chat, ported from perizinanbali.id site.css (.pb-chat). Uses the option's own colour tokens. */
.pj-chat { display: flex; flex-direction: column; min-width: 0; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .28); overflow: hidden; scroll-margin-top: 90px; }
.pj-chat-head { display: flex; align-items: center; gap: 12px; padding: 13px 18px; background: var(--deep-700); color: #fff; }
.pj-chat-head img { display: block; width: 34px; height: 34px; border-radius: 6px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .3); }
.pj-chat-head strong { display: block; font-weight: 800; font-size: 15px; line-height: 1.2; }
.pj-chat-head span { display: block; font-size: 12px; line-height: 1.3; color: rgba(255, 255, 255, .75); }
.pj-chat-head em { margin-left: auto; font-style: normal; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .14); }
.pj-chat-log { display: flex; flex-direction: column; gap: 12px; height: clamp(360px, 58vh, 520px); padding: 20px 18px; overflow-y: auto; overscroll-behavior: contain; background: #fff; }
.pj-chat-log:focus-visible { outline: 2px solid var(--deep-700); outline-offset: -2px; }
.pj-msg { max-width: 88%; padding: 11px 14px; border-radius: 14px; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-line; }
.pj-msg-bot { align-self: flex-start; background: var(--deep-50); border-bottom-left-radius: 4px; }
.pj-msg-user { align-self: flex-end; background: var(--deep-700); color: #fff; border-bottom-right-radius: 4px; }
.pj-msg-link { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 700; color: var(--deep-700); }
.pj-typing { display: flex; gap: 5px; padding: 15px 16px; }
.pj-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: pjDot 1s infinite ease-in-out; }
.pj-typing span:nth-child(2) { animation-delay: .15s; }
.pj-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes pjDot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.pj-doc { align-self: stretch; padding: 16px; background: #f7f8fa; border: 1px solid var(--line); border-radius: 12px; }
.pj-doc-group + .pj-doc-group { margin-top: 16px; }
.pj-doc-title { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-700); }
.pj-doc-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.pj-doc-list a { display: block; font-weight: 800; font-size: 15px; line-height: 1.3; color: var(--deep-700); }
.pj-doc-list span { display: block; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.pj-doc-req li { position: relative; padding-left: 14px; font-size: 14px; line-height: 1.45; }
.pj-doc-req li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 1px; background: var(--brand-500); }
.pj-doc-note { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.5; color: var(--muted); }
.pj-chat-wa { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 8px; align-self: stretch; }
.pj-chat-wa .btn { flex-direction: column; align-items: flex-start; gap: 1px; padding: 9px 14px; border-radius: 12px; }
.pj-chat-wa small { font-size: 12px; font-weight: 600; }
.pj-chat-wa strong { font-size: 15px; font-weight: 800; }
.pj-chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px; background: #fff; }
.pj-chat-chips:not(:empty) { padding-bottom: 12px; }
.pj-chip { min-height: 44px; padding: 7px 12px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: 13.5px; font-weight: 600; line-height: 1.3; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.pj-chip:hover { background: var(--deep-50); border-color: var(--deep-700); }
.pj-chip:focus-visible { outline: 2px solid var(--deep-700); outline-offset: 2px; }
.pj-chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.pj-chat-input { flex: 1; min-width: 0; min-height: 48px; padding: 12px 14px; background: #f7f8fa; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: 16px; }
.pj-chat-input:focus-visible { outline: 2px solid var(--deep-700); outline-offset: 1px; }
.pj-chat-form .btn { flex: none; width: 48px; justify-content: center; padding: 0; }
.pj-chat-noscript { margin: 0; padding: 12px 18px; font-size: 14px; line-height: 1.5; }
@media (max-width: 760px) { .pj-chat-log { height: clamp(300px, 52vh, 440px); } }
@media (prefers-reduced-motion: reduce) { .pj-typing span { animation: none; } }
