#phc-root{--c:var(--phc-color,#2563eb);position:fixed;bottom:20px;transition:bottom .2s ease;z-index:99999;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;font-size:15px}
#phc-root *{box-sizing:border-box}
#phc-root.phc-right{right:20px}
#phc-root.phc-left{left:20px}
#phc-toggle{width:56px;height:56px;border-radius:50%;border:0;background:var(--c);color:#fff;cursor:pointer;
box-shadow:0 6px 18px rgba(0,0,0,.25);display:flex;align-items:center;justify-content:center;transition:transform .15s}
#phc-toggle:hover{transform:scale(1.07)}
#phc-toggle.phc-hidden{display:none}
#phc-panel{position:absolute;bottom:0;width:380px;height:580px;max-height:calc(100vh - 40px);background:#fff;color:#1f2937;
border-radius:16px;overflow:hidden;box-shadow:0 12px 40px rgba(0,0,0,.28);display:flex;flex-direction:column}
#phc-panel[hidden]{display:none}
.phc-right #phc-panel{right:0}
.phc-left #phc-panel{left:0}
#phc-head{display:flex;align-items:center;gap:10px;background:var(--c);color:#fff;padding:12px 14px;flex:0 0 auto}
#phc-avatar{width:34px;height:34px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;overflow:hidden;flex:none}
#phc-avatar img{width:100%;height:100%;object-fit:cover;display:block}
#phc-title{flex:1;font-weight:600;font-size:16px}
#phc-close,#phc-new{background:transparent;border:0;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;margin:-8px -6px;padding:0;border-radius:8px}
#phc-close{font-size:30px;line-height:1}
#phc-close:hover,#phc-new:hover{background:rgba(255,255,255,.18)}
#phc-log{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:10px;background:#fff}
.phc-msg{display:flex;flex-direction:column;max-width:85%}
.phc-msg.phc-user{align-self:flex-end;align-items:flex-end}
.phc-msg.phc-assistant{align-self:flex-start}
.phc-bubble{padding:10px 14px;border-radius:16px;line-height:1.5;word-wrap:break-word}
.phc-user .phc-bubble{background:var(--c);color:#fff;border-bottom-right-radius:4px}
.phc-assistant .phc-bubble{background:#f3f4f6;border-bottom-left-radius:4px}
.phc-err .phc-bubble{background:#fef2f2;color:#991b1b}
.phc-bubble a{color:inherit;text-decoration:underline;word-break:break-all}
.phc-li{padding-left:14px;position:relative}
.phc-li:before{content:"\2022";position:absolute;left:2px}
.phc-num{padding-left:20px}
.phc-num:before{content:attr(data-n) ".";left:0}
.phc-bubble em{font-style:italic}
.phc-tablewrap{overflow-x:auto;margin:6px 0;max-width:100%}
.phc-bubble table{border-collapse:collapse;font-size:13px;width:100%}
.phc-bubble th,.phc-bubble td{border:1px solid #d1d5db;padding:5px 8px;text-align:left;vertical-align:top}
.phc-bubble th{background:#e5e7eb;font-weight:600}
.phc-gap{height:6px}
.phc-meta{display:flex;align-items:center;gap:8px;margin-top:3px}
.phc-time{font-size:11px;color:#9ca3af}
.phc-fb{display:inline-flex;gap:2px}
.phc-fb button{background:transparent;border:0;cursor:pointer;font-size:14px;line-height:1;padding:4px 6px;border-radius:6px;opacity:.55;filter:grayscale(1)}
.phc-fb button:hover:not(:disabled){opacity:1;filter:none;background:#f3f4f6}
.phc-fb button:disabled{cursor:default}
.phc-fb button.phc-picked{opacity:1;filter:none}
.phc-msg.phc-user .phc-meta{justify-content:flex-end}
.phc-dots{display:flex;gap:4px;padding:14px}
.phc-dots i{width:7px;height:7px;border-radius:50%;background:#9ca3af;animation:phc-b 1s infinite ease-in-out}
.phc-dots i:nth-child(2){animation-delay:.15s}
.phc-dots i:nth-child(3){animation-delay:.3s}
@keyframes phc-b{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
.phc-sugg{display:flex;flex-direction:column;gap:8px;margin-top:4px}
.phc-sugg button{text-align:left;background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:10px 12px;cursor:pointer;color:#374151;font:inherit;font-size:14px}
.phc-sugg button:hover{border-color:var(--c);color:var(--c)}
#phc-note{font-size:11px;color:#9ca3af;padding:0 16px 6px;background:#fff}
#phc-note a{color:var(--c);text-decoration:underline}
html.phc-lock,html.phc-lock body{overflow:hidden}
#phc-form{display:flex;gap:8px;padding:10px 14px calc(14px + env(safe-area-inset-bottom,0px));background:#fff;border-top:1px solid #f3f4f6}
#phc-input{flex:1;border:1px solid #e5e7eb;background:#f9fafb;border-radius:999px;padding:10px 16px;font:inherit;outline:none;color:#1f2937}
#phc-input:focus{border-color:var(--c)}
#phc-send{width:42px;height:42px;border-radius:50%;border:0;background:var(--c);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
#phc-send:disabled{opacity:.5;cursor:default}
@media (max-width:767px){
#phc-root{bottom:14px}
#phc-root.phc-right{right:14px}
#phc-root.phc-left{left:14px}
#phc-panel{position:fixed;inset:0;width:100%;height:100%;max-height:none;border-radius:0}
#phc-head{padding-top:calc(12px + env(safe-area-inset-top,0px))}
#phc-input{font-size:16px}
}
.phc-formwrap{max-width:100%;width:100%}
.phc-cform{background:#f3f4f6;border-radius:16px;border-bottom-left-radius:4px;padding:12px 14px;display:flex;flex-direction:column;gap:8px;width:100%}
.phc-field{display:flex;flex-direction:column;gap:3px;font-size:12px;color:#4b5563}
.phc-field input,.phc-field textarea,.phc-field select{border:1px solid #d1d5db;background:#fff;border-radius:10px;padding:8px 10px;font:inherit;font-size:14px;color:#1f2937;outline:none;width:100%;resize:vertical}
.phc-field input:focus,.phc-field textarea:focus,.phc-field select:focus{border-color:var(--c)}
.phc-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.phc-chint{font-size:11px;color:#6b7280;line-height:1.4}
.phc-cstatus{font-size:12px;color:#991b1b;min-height:0}
.phc-cact{position:sticky;bottom:-14px;margin:4px -14px -12px;padding:8px 14px 12px;background:#f3f4f6;border-radius:0 0 16px 4px}
.phc-csend{display:block;margin-left:auto;background:var(--c);color:#fff;border:0;border-radius:999px;padding:8px 22px;font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.phc-csend:disabled{opacity:.6;cursor:default}
@media (max-width:767px){.phc-field input,.phc-field textarea,.phc-field select{font-size:16px}}
.phc-opts{display:flex;flex-direction:column;gap:8px;margin-top:8px;width:100%}
.phc-opt{display:flex;align-items:center;gap:10px;text-align:left;background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:10px 12px;cursor:pointer;color:#1f2937;font:inherit;transition:border-color .15s,box-shadow .15s}
.phc-opt:hover:not(:disabled){border-color:var(--c);box-shadow:0 2px 8px rgba(0,0,0,.08)}
.phc-opt-t{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.phc-opt-t strong{font-size:14px;font-weight:600}
.phc-opt-t span{font-size:12.5px;color:#6b7280;line-height:1.35}
.phc-opt i{font-style:normal;font-size:22px;line-height:1;color:#9ca3af}
.phc-opt:hover:not(:disabled) i{color:var(--c)}
.phc-opt-unsure{background:transparent;border:1px solid #d1d5db;border-radius:999px;padding:9px 14px;cursor:pointer;color:#374151;font:inherit;font-size:14px}
.phc-opt-unsure:hover:not(:disabled){border-color:var(--c);color:var(--c)}
.phc-opts button:disabled{cursor:default;opacity:.55}
.phc-opts button.phc-picked{opacity:1;border-color:var(--c)}
.phc-opt-ic{flex:none;width:36px;height:36px;border:1px solid #e5e7eb;border-radius:10px;display:flex;align-items:center;justify-content:center;color:#6b7280;background:#f9fafb}
.phc-opt:hover:not(:disabled) .phc-opt-ic{color:var(--c);border-color:var(--c)}
.phc-wa{display:inline-flex;align-items:center;gap:8px;background:#25d366;color:#fff!important;text-decoration:none!important;border-radius:999px;padding:10px 18px;font-weight:600;font-size:14px}
.phc-wa:hover{background:#1ebe5b}
.phc-wa svg{flex:none} .phc-bubble a.phc-wa,.phc-bubble a.phc-ics{word-break:normal;overflow-wrap:normal;text-decoration:none;max-width:100%;line-height:1.3;text-align:left;border-radius:22px}
.phc-opt-q{padding:8px 12px}
.phc-opt-q .phc-opt-t strong{font-weight:500;font-size:13.5px}
.phc-ics{display:inline-flex;align-items:center;gap:8px;margin-top:10px;border:1px solid var(--c);color:var(--c)!important;background:#fff;border-radius:999px;padding:8px 16px;font-weight:600;font-size:13.5px;text-decoration:none!important}
.phc-ics:hover{background:#f9fafb}
.phc-step{font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:#6b7280;margin:0 0 4px;font-weight:600}
.phc-bubble .phc-cform{margin-top:8px;padding:0;background:transparent;border-radius:0}
.phc-ferr{color:#b91c1c;font-size:12.5px;min-height:0}
.phc-ferr:empty{display:none} .phc-pending{display:none}
.phc-opts>.phc-hide{opacity:0;pointer-events:none;transform:translateY(4px)}
.phc-opts>*{transition:opacity .3s ease,transform .3s ease}
.phc-cform .phc-ftitle{font-weight:600;margin:0 0 8px}
.phc-q{margin:0 0 14px;padding:0 0 12px;border-bottom:1px solid rgba(128,128,128,.2)}
.phc-q:last-of-type{border-bottom:0}
.phc-qlabel{font-weight:600;margin:0 0 6px}
.phc-q textarea{width:100%;box-sizing:border-box}
.phc-qhint{font-size:12px;opacity:.7;margin:4px 0 6px}
.phc-qopt{display:block;margin:6px 0;cursor:pointer}
.phc-qopt input{margin-right:6px;vertical-align:middle} .phc-faqhead{display:flex;flex-direction:column;gap:2px;margin:2px 0 2px}
.phc-faqhead strong{font-size:14px}
.phc-faqhead span{font-size:12px;color:#6b7280}
.phc-acc{border:1px solid #e5e7eb;border-radius:12px;background:#fff;overflow:hidden}
.phc-acc-open{border-color:var(--c)}
.phc-acc-q{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;text-align:left;background:transparent;border:0;padding:11px 12px;cursor:pointer;color:#1f2937;font:inherit;font-size:13.5px;font-weight:500}
.phc-acc-q:focus-visible{outline:2px solid var(--c);outline-offset:-2px}
.phc-acc-q i{font-style:normal;font-size:20px;line-height:1;color:var(--c);flex:none}
.phc-acc-a{padding:0 12px 12px;font-size:13.5px;line-height:1.5;color:#374151;overflow-wrap:anywhere;white-space:pre-line}
.phc-opt-cta{justify-content:center;background:var(--c);border-color:var(--c);color:#fff;font-weight:600}
.phc-opt-cta:hover:not(:disabled){color:#fff;opacity:.92}
.phc-faqnext{font-size:14px;line-height:1.45;color:#1f2937;margin:2px 0}
.phc-opts .phc-opt-q.phc-opt-cta2{justify-content:center;font-weight:600} .phc-bubble a.phc-wa{display:flex;justify-content:center;width:100%;box-sizing:border-box;background:#05863a;margin-top:10px;padding:12px 18px;border-radius:999px}
.phc-bubble a.phc-wa:hover{background:#046d2f}
.phc-wa-hint{font-size:12px;color:#6b7280;text-align:center;margin-top:8px;line-height:1.4} .phc-sug-head{display:flex;align-items:center;gap:6px;font-size:13px;color:#6b7280;margin:2px 0 0}
.phc-sug-head svg{width:15px;height:15px}