.ph-ai-chat,.ph-ai-chat *{box-sizing:border-box}.ph-ai-chat__panel[hidden]{display:none!important}.ph-ai-chat[hidden],.ph-ai-chat [hidden]{display:none!important}.ph-ai-chat{position:fixed;right:22px;bottom:22px;z-index:2147482000;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#101828}.ph-ai-chat__launcher{display:flex;align-items:center;gap:8px;height:48px;padding:0 17px;border:0;border-radius:999px;background:#111827;color:#fff;box-shadow:0 14px 34px rgba(17,24,39,.24);font:700 14px/1 inherit;cursor:pointer}.ph-ai-chat__launcher-icon{display:grid;place-items:center;width:24px;height:24px}.ph-ai-chat__panel{position:absolute;right:0;bottom:60px;width:400px;height:min(640px,calc(100dvh - 100px));min-height:470px;overflow:hidden;border:1px solid #e4e7ec;border-radius:22px;background:#fff;box-shadow:0 26px 80px rgba(15,23,42,.2);grid-template-rows:64px minmax(0,1fr) auto auto auto}.ph-ai-chat__panel:not([hidden]){display:grid}.ph-ai-chat__header{display:flex;align-items:center;justify-content:space-between;padding:10px 10px 10px 14px;border-bottom:1px solid #eef0f3;background:rgba(255,255,255,.98)}.ph-ai-chat__identity{display:flex;align-items:center;min-width:0;gap:10px}.ph-ai-chat__avatar{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:12px;background:#111827;color:#fff}.ph-ai-chat__identity>div{display:grid;gap:2px;min-width:0}.ph-ai-chat__identity strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ph-ai-chat__identity small{font-size:11px;color:#667085}.ph-ai-chat__close,.ph-ai-chat__sheet-close{display:grid;place-items:center;padding:0;border:0;background:transparent;color:#475467;cursor:pointer}.ph-ai-chat__close{width:42px;height:42px;border-radius:12px;font:400 30px/1 Arial,sans-serif}.ph-ai-chat__close span{display:block;transform:translateY(-1px)}.ph-ai-chat__close:hover,.ph-ai-chat__sheet-close:hover{background:#f2f4f7;color:#101828}.ph-ai-chat__messages{min-height:0;overflow:auto;padding:18px 15px 12px;display:flex;flex-direction:column;gap:13px;background:#fff;scrollbar-width:thin;scrollbar-color:#d0d5dd transparent}.ph-ai-chat__message{display:flex}.ph-ai-chat__message--customer{justify-content:flex-end}.ph-ai-chat__bubble{max-width:88%;font-size:13px;line-height:1.5;overflow-wrap:anywhere}.ph-ai-chat__message--customer .ph-ai-chat__bubble{padding:10px 13px;border-radius:17px 17px 4px 17px;background:#f0f2f5}.ph-ai-chat__message--ai .ph-ai-chat__bubble,.ph-ai-chat__message--admin .ph-ai-chat__bubble{padding:2px 2px;background:#fff}.ph-ai-chat__message--system{justify-content:center}.ph-ai-chat__message--system .ph-ai-chat__bubble{max-width:92%;padding:7px 11px;border-radius:999px;background:#f8fafc;color:#667085;font-size:11px;text-align:center}.ph-ai-chat__bubble>small{display:block;margin-bottom:3px;color:#98a2b3;font-size:10px;font-weight:700}.ph-ai-chat__text{white-space:normal}.ph-ai-chat__sources{display:grid;gap:4px;margin-top:9px;padding-top:8px;border-top:1px solid #eef0f3}.ph-ai-chat__sources strong{font-size:10px;color:#667085}.ph-ai-chat__sources a{font-size:10px;color:#175cd3;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ph-ai-chat__product-list{display:flex;gap:8px;overflow:auto;margin-top:10px;padding:2px 1px 5px;scrollbar-width:none}.ph-ai-chat__product-list::-webkit-scrollbar{display:none}.ph-ai-chat__product-label{display:block;margin-top:9px;font-size:10px;font-weight:800;color:#667085}.ph-ai-chat__product-card{flex:0 0 235px;display:grid;grid-template-columns:64px minmax(0,1fr);gap:9px;padding:8px;border:1px solid #e4e7ec;border-radius:13px;background:#fff;text-decoration:none;color:#101828;box-shadow:0 2px 7px rgba(16,24,40,.04)}.ph-ai-chat__product-card:hover{border-color:#b8c0cc}.ph-ai-chat__product-card img{width:64px;height:64px;object-fit:contain;border-radius:9px;background:#f8fafc}.ph-ai-chat__product-card-info{display:grid;align-content:center;min-width:0;gap:2px}.ph-ai-chat__product-card-info strong{font-size:11px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.ph-ai-chat__product-card-info small{color:#667085;font-size:9px}.ph-ai-chat__product-card-info b{font-size:10px;color:#175cd3}.ph-ai-chat__image{display:block;margin-top:8px}.ph-ai-chat__image img{display:block;max-width:100%;max-height:260px;border-radius:12px;border:1px solid #e4e7ec;object-fit:contain}.ph-ai-chat__toolbar{min-height:35px;display:flex;align-items:center;padding:0 13px;border-top:1px solid #f2f4f7;background:#fff}.ph-ai-chat__toolbar button{border:0;background:transparent;padding:7px 3px;color:#475467;font:650 11px/1 inherit;cursor:pointer}.ph-ai-chat__toolbar button:hover{color:#101828}.ph-ai-chat__resume-link{color:#175cd3!important}.ph-ai-chat__composer{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:end;gap:6px;margin:0 10px 8px;padding:6px;border:1px solid #d0d5dd;border-radius:18px;background:#fff;box-shadow:0 1px 2px rgba(16,24,40,.04)}.ph-ai-chat__composer:focus-within{border-color:#98a2b3;box-shadow:0 0 0 3px rgba(152,162,179,.12)}.ph-ai-chat__composer textarea{width:100%;min-height:34px;max-height:118px;resize:none;border:0;outline:0;padding:7px 4px;font:13px/1.45 inherit;background:transparent}.ph-ai-chat__attach,.ph-ai-chat__send{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border:0;border-radius:11px;cursor:pointer}.ph-ai-chat__attach{background:transparent;color:#667085}.ph-ai-chat__attach:hover{background:#f2f4f7;color:#101828}.ph-ai-chat__attach svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.ph-ai-chat__send{background:#111827;color:#fff;font:700 19px/1 inherit}.ph-ai-chat__send:disabled{opacity:.45;cursor:default}.ph-ai-chat__footer-note{padding:0 12px 9px;color:#98a2b3;text-align:center;font-size:9px}.ph-ai-chat__handoff-sheet{position:absolute;inset:64px 0 0;z-index:5;display:grid;align-items:end;padding:12px;background:rgba(15,23,42,.16);backdrop-filter:blur(2px)}.ph-ai-chat__handoff-card{display:grid;gap:10px;padding:15px;border:1px solid #e4e7ec;border-radius:18px;background:#fff;box-shadow:0 18px 50px rgba(15,23,42,.18)}.ph-ai-chat__handoff-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.ph-ai-chat__handoff-head>div{display:grid;gap:3px}.ph-ai-chat__handoff-head strong{font-size:14px}.ph-ai-chat__handoff-head p{margin:0;color:#667085;font-size:11px;line-height:1.4}.ph-ai-chat__sheet-close{flex:0 0 36px;width:36px;height:36px;border-radius:10px;font:400 25px/1 Arial,sans-serif}.ph-ai-chat__handoff-card label{display:grid;gap:5px;font-size:11px;font-weight:700}.ph-ai-chat__handoff-card input{width:100%;height:39px;border:1px solid #d0d5dd;border-radius:10px;padding:0 10px;font:12px inherit;outline:0}.ph-ai-chat__handoff-card input:focus{border-color:#98a2b3;box-shadow:0 0 0 3px rgba(152,162,179,.12)}.ph-ai-chat__handoff-actions{display:flex;gap:8px}.ph-ai-chat__handoff-actions button{flex:1;height:39px;border-radius:10px;font:750 11px/1 inherit;cursor:pointer}.ph-ai-chat__handoff-actions .primary{border:0;background:#111827;color:#fff}.ph-ai-chat__handoff-actions .secondary{border:1px solid #d0d5dd;background:#fff;color:#344054}.ph-ai-chat__typing{display:flex;align-items:center;gap:4px;color:#667085;font-size:11px}.ph-ai-chat__typing i{display:block;width:5px;height:5px;border-radius:50%;background:#98a2b3;animation:ph-ai-dot 1.2s infinite}.ph-ai-chat__typing i:nth-child(2){animation-delay:.15s}.ph-ai-chat__typing i:nth-child(3){animation-delay:.3s}@keyframes ph-ai-dot{0%,70%,100%{opacity:.3;transform:translateY(0)}35%{opacity:1;transform:translateY(-2px)}}
@media(max-width:560px){.ph-ai-chat{right:10px;bottom:10px}.ph-ai-chat__launcher{height:46px}.ph-ai-chat__panel{position:fixed;left:8px;right:8px;bottom:68px;width:auto;height:min(650px,calc(100dvh - 82px));min-height:0;border-radius:18px}.ph-ai-chat__header{height:60px}.ph-ai-chat__handoff-sheet{inset:60px 0 0}.ph-ai-chat__product-card{flex-basis:215px}}
/* BUILD109.0.19: human typing + read receipt */
.ph-ai-chat__receipt{min-height:14px;margin-top:3px;padding-right:4px;text-align:right;color:#667085;font-size:10px;line-height:1.2}
.ph-ai-chat__message--remote-typing .ph-ai-chat__bubble{opacity:.92}


/* BUILD109.0.24 — all product cards visible + aligned composer */
.ph-ai-chat__product-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important;overflow:visible!important;scroll-snap-type:none!important;padding-bottom:0!important}.ph-ai-chat__product-card{min-width:0!important;width:100%!important;flex:none!important;grid-template-columns:54px minmax(0,1fr)!important}.ph-ai-chat__product-card img{width:54px!important;height:54px!important}.ph-ai-chat__product-card-info strong{white-space:normal!important;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.ph-ai-chat__composer{align-items:center!important}.ph-ai-chat__composer textarea{align-self:center!important;margin:0!important;min-height:44px!important;line-height:1.45!important;padding-top:10px!important;padding-bottom:10px!important}.ph-ai-chat__composer button[type="submit"]{flex:0 0 44px!important;width:44px!important;height:44px!important;min-height:44px!important;align-self:center!important;margin:0!important;display:grid!important;place-items:center!important}.ph-ai-chat__operator-presence{display:inline-flex;align-items:center;gap:5px;margin-top:2px;font-size:10px}.ph-ai-chat__operator-presence.is-online{color:#067647}.ph-ai-chat__operator-presence.is-offline{color:#98a2b3}
@media(max-width:420px){.ph-ai-chat__product-list{grid-template-columns:1fr!important}}

/* BUILD109.0.25 — recalled human message */
.ph-ai-chat__message.is-recalled .ph-ai-chat__text{color:#98a2b3;font-style:italic}
/* BUILD109.0.26 staff contact card */
.ph-ai-chat__staff-card{margin-top:8px;padding:10px;border:1px solid #e4e7ec;border-radius:12px;background:#fff;display:flex;gap:9px;align-items:center;color:#344054}.ph-ai-chat__staff-card>img{width:44px;height:44px;border-radius:50%;object-fit:cover}.ph-ai-chat__staff-card>span{display:grid;gap:2px;min-width:0}.ph-ai-chat__staff-card strong{font-size:13px}.ph-ai-chat__staff-card small,.ph-ai-chat__staff-card span span{font-size:11px;color:#667085;overflow-wrap:anywhere}
