/* PS Chat – konsultacijų langas. Spalvos iš temos tokenų (--color-*) su rezervinėmis reikšmėmis. */
.ps-chat { --pc-ink: var(--color-on-surface, #111c2c); --pc-muted: var(--color-on-surface-variant, #574237); --pc-dark: var(--color-inverse-surface, #263142); --pc-accent: var(--color-primary-container, #f37825); --pc-line: var(--color-surface-container, #e7eeff); --pc-bg: #fff; --pc-wa: #0b6b47; font-family: var(--font-body, Inter, system-ui, sans-serif); font-size: 14px; line-height: 1.45; color: var(--pc-ink); }
.ps-chat[hidden] { display: none; }
.ps-chat *, .ps-chat *::before, .ps-chat *::after { box-sizing: border-box; }

.ps-chat__dot { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 9999px; background: #9aa3b0; }
.ps-chat__dot.is-on { background: #22c55e; box-shadow: 0 0 0 3px rgb(34 197 94 / .25); }

.ps-chat__launcher { position: fixed; z-index: 9000; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px 0 14px; border: 0; border-radius: 9999px; background: var(--pc-dark); color: #fff; font: 700 13px/1 var(--font-headline, inherit); letter-spacing: .02em; cursor: pointer; box-shadow: 0 6px 20px rgb(17 28 44 / .3); transition: transform .15s, background .15s, bottom .2s; }
.ps-chat__launcher:hover { background: #1c2636; transform: translateY(-1px); }
.ps-chat__launcher:focus-visible, .ps-chat__btn:focus-visible, .ps-chat__chip:focus-visible, .ps-chat__x:focus-visible { outline: 2px solid var(--pc-accent); outline-offset: 2px; }
/* slapukų juosta uždengtų mygtuką – kol ji rodoma, mygtuko nerodome */
.ps-chat.is-lifted .ps-chat__launcher { display: none; }
.ps-chat.is-open .ps-chat__launcher { display: none; }
@media (max-width: 520px) { .ps-chat__launcher-text { display: none; } .ps-chat__launcher { width: 52px; height: 52px; padding: 0; justify-content: center; } .ps-chat__launcher .ps-chat__dot { position: absolute; top: 12px; right: 12px; } }

.ps-chat__panel { position: fixed; z-index: 9001; right: 16px; bottom: 16px; width: 380px; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); display: flex; flex-direction: column; overflow: hidden; border-radius: 6px; background: var(--pc-bg); box-shadow: 0 12px 32px rgb(0 0 0 / .22); }
.ps-chat__panel[hidden] { display: none; }
@media (max-width: 520px) { .ps-chat__panel { right: 0; left: 0; bottom: 0; width: auto; max-width: none; max-height: 92vh; border-radius: 12px 12px 0 0; } }
.ps-chat__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 16px 14px 20px; background: var(--pc-dark); color: #fff; }
.ps-chat__head h2 { margin: 0 0 4px; font: 700 16px/1.2 var(--font-headline, inherit); color: #fff; }
.ps-chat__status { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12px; color: #d8e3fa; }
.ps-chat__x { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 0; border-radius: 9999px; background: rgb(255 255 255 / .12); color: #fff; cursor: pointer; }
.ps-chat__x:hover { background: rgb(255 255 255 / .22); }
.ps-chat__body { padding: 18px 20px 20px; overflow-y: auto; }
.ps-chat__view[hidden] { display: none; }
.ps-chat__ctx { margin: 0 0 14px; padding: 10px 12px; border-left: 3px solid var(--pc-accent); border-radius: 2px; background: #fff7f1; font-weight: 600; font-size: 13px; }
.ps-chat__lead { margin: 0 0 10px; font: 700 13px var(--font-headline, inherit); }
.ps-chat__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ps-chat__chip { padding: 8px 12px; border: 1px solid #cdd3dd; border-radius: 4px; background: #fff; color: var(--pc-ink); font: 600 12px var(--font-headline, inherit); cursor: pointer; }
.ps-chat__chip:hover { border-color: var(--pc-accent); }
.ps-chat__chip[aria-pressed="true"] { border-color: var(--pc-accent); background: #fff7f1; color: #9c4500; box-shadow: inset 0 0 0 1px var(--pc-accent); }
.ps-chat__hint { margin: 0 0 14px; color: var(--pc-muted); font-size: 13px; }
.ps-chat__btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; padding: 0 16px; border: 0; border-radius: 6px; font: 700 12px var(--font-headline, inherit); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.ps-chat__btn--wa { margin-bottom: 8px; background: var(--pc-wa); color: #fff; }
.ps-chat__btn--wa:hover { background: #09593b; color: #fff; }
.ps-chat__btn--alt { background: #f0f3ff; color: var(--pc-ink); }
.ps-chat__btn--alt:hover { background: var(--pc-line); }
.ps-chat__btn--primary { background: var(--pc-accent); color: var(--pc-ink); }
.ps-chat__btn--primary:hover { background: #db5f20; color: #fff; }
.ps-chat__btn--primary:disabled { opacity: .6; cursor: wait; }
.ps-chat__btn--ghost { background: #fff; border: 1px solid #cdd3dd; color: var(--pc-muted); }
.ps-chat__form label { display: block; margin: 0 0 12px; font: 600 12px var(--font-body, inherit); color: var(--pc-muted); }
.ps-chat__form input:not([type=checkbox]), .ps-chat__form textarea { display: block; width: 100%; margin-top: 5px; padding: 10px 12px; border: 1px solid #ccc; border-radius: 4px; background: #fff; color: var(--pc-ink); font: 14px var(--font-body, inherit); }
.ps-chat__form input:not([type=checkbox]) { height: 42px; padding-block: 0; }
.ps-chat__form input:focus, .ps-chat__form textarea:focus { outline: 0; border-color: var(--pc-accent); box-shadow: 0 0 0 2px rgb(243 120 37 / .25); }
.ps-chat__note { margin: -4px 0 12px; font-size: 12px; color: #6b7280; }
.ps-chat__check { display: flex !important; gap: 8px; align-items: flex-start; font-weight: 500 !important; line-height: 1.4; }
.ps-chat__check input { flex: none; margin-top: 2px; accent-color: var(--pc-accent); }
.ps-chat__check a { color: #9c4500; }
.ps-chat__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ps-chat__error { margin: 0 0 12px; padding: 10px 12px; border-radius: 4px; background: #ffdad6; color: #93000a; font-size: 13px; }
.ps-chat__error[hidden] { display: none; }
.ps-chat__row { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }
.ps-chat__done { text-align: center; padding: 8px 0; }
.ps-chat__ok { display: inline-flex; margin-bottom: 8px; color: #1b7340; }
.ps-chat__done p { margin: 0 0 16px; font-size: 15px; font-weight: 600; }

/* būsenos „piliulė“ temoje: <span class="ps-chat-pill is-on">…</span> */
.ps-chat-pill { display: inline-flex; align-items: center; gap: 8px; }
