/* PHI proactive chat (client, 7 Nov 2026). Black and white only. */
.phi-chat-on .whatsapp_icon { display: none !important; }
.phic { position: fixed; right: 20px; bottom: 20px; z-index: 99990; font-family: 'Manrope', system-ui, sans-serif; color: #0a0a0a; }
.phic *, .phic *::before, .phic *::after { box-sizing: border-box; }
.phic button { font-family: inherit; cursor: pointer; }
.phic__launch { width: 58px; height: 58px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: #0a0a0a; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.28); transition: transform .2s ease; padding: 0; }
.phic__launch:hover { transform: translateY(-2px); }
.phic__launch svg { width: 26px; height: 26px; }
.phic__launch .phic__x { display: none; }
.phic.is-open .phic__launch .phic__bubble-ic { display: none; }
.phic.is-open .phic__launch .phic__x { display: block; }
.phic__dot { position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid #0a0a0a; }
.phic.is-open .phic__dot, .phic.seen .phic__dot { display: none; }

/* proactive greeting */
.phic__peek { position: absolute; right: 0; bottom: 72px; width: 290px; background: #fff; border: 1px solid #e3e5e8; border-radius: 16px 16px 4px 16px; box-shadow: 0 16px 40px rgba(0,0,0,.18); padding: 16px 40px 16px 16px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .3s ease, transform .3s ease; }
.phic__peek.is-on { opacity: 1; transform: none; pointer-events: auto; }
.phic__peek b { display: block; font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.phic__peek p { margin: 0; font-size: 14px; line-height: 1.45; color: #3b3f45; }
.phic__peek-open { all: unset; position: absolute; inset: 0; border-radius: inherit; cursor: pointer; }
.phic__peek-close { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border: 0; background: transparent; color: #6b7076; font-size: 18px; line-height: 1; border-radius: 50%; z-index: 1; }
.phic__peek-close:hover { background: #f1f2f4; color: #0a0a0a; }

/* panel */
.phic__panel { position: absolute; right: 0; bottom: 72px; width: 370px; max-width: calc(100vw - 24px); height: 560px; max-height: calc(100vh - 110px); background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.28); display: none; flex-direction: column; overflow: hidden; border: 1px solid #e3e5e8; }
.phic.is-open .phic__panel { display: flex; }
.phic__head { background: #0a0a0a; color: #fff; padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.phic__head img { height: 30px; width: auto; }
.phic__head strong { display: block; font-size: 15px; font-weight: 700; letter-spacing: .01em; }
.phic__head span { display: block; font-size: 12px; opacity: .7; margin-top: 2px; }
.phic__head button { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; font-size: 18px; line-height: 1; }
.phic__log { flex: 1; overflow-y: auto; padding: 18px 16px 8px; background: #f6f7f8; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.phic__msg { max-width: 86%; padding: 11px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.phic__msg--bot { background: #fff; border: 1px solid #e3e5e8; border-bottom-left-radius: 4px; align-self: flex-start; }
.phic__msg--me { background: #0a0a0a; color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.phic__msg a { color: inherit; font-weight: 700; text-decoration: underline; }
.phic__typing { align-self: flex-start; background: #fff; border: 1px solid #e3e5e8; border-radius: 14px; padding: 12px 14px; display: flex; gap: 4px; }
.phic__typing i { width: 6px; height: 6px; border-radius: 50%; background: #9aa0a6; animation: phicDot 1s infinite ease-in-out; }
.phic__typing i:nth-child(2) { animation-delay: .15s; } .phic__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes phicDot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.phic__chips { display: flex; flex-wrap: wrap; gap: 8px; align-self: stretch; }
.phic__chip { border: 1px solid #0a0a0a; background: #fff; color: #0a0a0a; border-radius: 999px; padding: 8px 13px; font-size: 13px; font-weight: 600; text-decoration: none !important; line-height: 1.2; display: inline-block; }
.phic__chip:hover, .phic__chip:focus-visible { background: #0a0a0a; color: #fff; }
.phic__chip--solid { background: #0a0a0a; color: #fff; }
.phic__chip--solid:hover { background: #2a2d31; }
.phic__form { background: #fff; border: 1px solid #e3e5e8; border-radius: 14px; padding: 14px; display: grid; gap: 8px; align-self: stretch; }
.phic__form label { font-size: 12px; font-weight: 600; color: #3b3f45; }
.phic__form input, .phic__form textarea { width: 100%; border: 1px solid #cfd3d8; border-radius: 10px; padding: 9px 11px; font: inherit; font-size: 14px; color: #0a0a0a; background: #fff; }
.phic__form textarea { min-height: 76px; resize: vertical; }
.phic__form input:focus, .phic__form textarea:focus { outline: 2px solid #0a0a0a; outline-offset: 0; border-color: #0a0a0a; }
.phic__form button { border: 0; border-radius: 10px; background: #0a0a0a; color: #fff; padding: 11px; font-weight: 700; font-size: 14px; }
.phic__form button[disabled] { opacity: .5; }
.phic__form small { font-size: 11.5px; color: #6b7076; line-height: 1.4; }
.phic__err { color: #0a0a0a; font-size: 12.5px; font-weight: 600; }
.phic__bar { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid #e3e5e8; background: #fff; }
.phic__bar input { flex: 1; min-width: 0; border: 1px solid #cfd3d8; border-radius: 999px; padding: 10px 14px; font: inherit; font-size: 14px; }
.phic__bar input:focus { outline: 2px solid #0a0a0a; border-color: #0a0a0a; }
.phic__bar button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: #0a0a0a; color: #fff; display: grid; place-items: center; flex: none; padding: 0; }
.phic__bar svg { width: 18px; height: 18px; }
.phic__foot { font-size: 11px; color: #8a8f95; text-align: center; padding: 0 12px 10px; background: #fff; }
.phic .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 480px) {
  .phic { right: 14px; bottom: 14px; }
  .phic__launch { width: 54px; height: 54px; }
  .phic__peek { width: min(290px, calc(100vw - 28px)); bottom: 66px; }
  .phic.is-open { left: 0; right: 0; bottom: 0; top: 0; }
  .phic.is-open .phic__launch { display: none; }
  .phic__panel { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; border-radius: 0; border: 0; }
  .phic__bar input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .phic__peek, .phic__launch { transition: none; } .phic__typing i { animation: none; } }
/* guard against theme colours on strong / links */
.phic .phic__head strong { color: #fff !important; }
.phic .phic__chip { color: #0a0a0a !important; }
.phic .phic__chip--solid, .phic .phic__chip:hover, .phic .phic__chip:focus-visible { color: #fff !important; }
.phic .phic__msg--me, .phic .phic__msg--me * { color: #fff !important; }
.phic .phic__msg--bot { color: #0a0a0a; }
