.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{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{display:grid;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{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;}.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;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%;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;}}.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;}.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:end!important;}.ph-ai-chat__composer textarea{align-self:end!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:end!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;}}.ph-ai-chat__message.is-recalled .ph-ai-chat__text{color:#98a2b3;font-style:italic;}.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;}.ph-ai-chat__staff-card a{overflow-wrap:anywhere;}.ph-ai-chat__launcher{position:relative;}.ph-ai-chat__launcher-unread{position:absolute;right:-5px;top:-7px;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:#d92d20;color:#fff;font-size:11px;line-height:20px;text-align:center;font-style:normal;box-shadow:0 0 0 2px #fff;}.ph-ai-chat__launcher-unread[hidden]{display:none!important;}.ph-ai-chat__staff-card a{display:block;color:inherit;text-decoration:none;}.ph-ai-chat__staff-card a:hover{text-decoration:underline;}

/* BUILD109.0.57 — grouped mobile conversation, pin strip, avatars and call retry. */
.ph-ai-chat__pinned{padding:7px 12px;border-bottom:1px solid #eef0f3;background:#f8fbff}.ph-ai-chat__pinned[hidden]{display:none!important}.ph-ai-chat__pinned button{width:100%;display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:7px;align-items:center;border:0;background:transparent;text-align:left;padding:0;color:#344054;cursor:pointer}.ph-ai-chat__pinned button>span:nth-child(2){display:grid;min-width:0}.ph-ai-chat__pinned strong{font-size:11px;color:#1570ef}.ph-ai-chat__pinned small{font-size:10px;color:#667085;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ph-ai-chat__pinned i{font-style:normal;font-size:19px}.ph-ai-chat__time-separator{display:flex;justify-content:center;margin:2px 0 5px}.ph-ai-chat__time-separator span{padding:3px 9px;border-radius:999px;background:#d0d5dd;color:#fff;font-size:10px;font-weight:700}.ph-ai-chat__message{align-items:flex-end;gap:7px}.ph-ai-chat__message--admin,.ph-ai-chat__message--ai{justify-content:flex-start}.ph-ai-chat__message--customer{justify-content:flex-end}.ph-ai-chat__message-avatar{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:50%;overflow:hidden;background:#e9eef5;color:#344054;font-size:11px;font-weight:800}.ph-ai-chat__message-avatar img{width:100%;height:100%;object-fit:cover}.ph-ai-chat__message--ai .ph-ai-chat__message-avatar{background:#111827;color:#fff}.ph-ai-chat__message.is-group-continuation .ph-ai-chat__message-avatar{visibility:hidden}.ph-ai-chat__message.is-pin-highlight .ph-ai-chat__bubble{animation:ph-ai-pin-hi 1.5s ease}.ph-ai-chat__call-log{display:grid;grid-template-columns:34px minmax(0,1fr);overflow:hidden;padding:9px 10px 0}.ph-ai-chat__call-log-retry{grid-column:1/-1;margin:8px -10px 0;padding:8px;border:0;border-top:1px solid #d0d5dd;background:#fff;color:#1570ef;font:800 11px/1 inherit;cursor:pointer}.ph-ai-chat__message--customer .ph-ai-chat__call-log{background:#f6f8fa}.ph-ai-chat__message--admin .ph-ai-chat__call-log{background:#fff}.ph-ai-chat__bubble>small{margin-bottom:3px}@keyframes ph-ai-pin-hi{0%,100%{box-shadow:none}35%{box-shadow:0 0 0 5px rgba(46,144,250,.17)}}

/* BUILD109.0.59 — viewer-relative chat alignment and reply quote. */
.ph-ai-chat__message--customer{justify-content:flex-end!important;flex-direction:row!important}.ph-ai-chat__message--admin,.ph-ai-chat__message--ai{justify-content:flex-start!important;flex-direction:row!important}
.ph-ai-chat__reply-quote{display:grid;width:100%;gap:2px;margin:0 0 7px;padding:7px 9px;border:0;border-left:3px solid #1570ef;border-radius:7px;background:rgba(21,112,239,.08);text-align:left;color:#344054;cursor:pointer}.ph-ai-chat__reply-quote strong{font-size:10px;font-weight:600}.ph-ai-chat__reply-quote span{font-size:10px;color:#667085;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ph-ai-chat__message.is-reply-highlight .ph-ai-chat__bubble{animation:ph-ai-reply-hi 1.4s ease}@keyframes ph-ai-reply-hi{35%{box-shadow:0 0 0 5px rgba(21,112,239,.16)}100%{box-shadow:none}}
.ph-ai-chat__call-log strong{font-weight:500!important}.ph-ai-chat__call-log small{font-weight:400!important}.ph-ai-chat__call-log-retry{font-weight:600!important;text-align:center!important}

/* BUILD109.0.59 — support avatar fallback by Admin gender. */
.ph-ai-chat__message-avatar--support{background:#f2f4f7!important;color:#51338f!important}.ph-ai-chat__support-avatar{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.45;stroke-linecap:round;stroke-linejoin:round}.ph-ai-chat__support-avatar .hair{fill:currentColor;stroke:none;opacity:.9}.ph-ai-chat__support-avatar .headset{stroke-width:1.7}.ph-ai-chat__support-avatar .mic{fill:currentColor;stroke:none}.ph-ai-chat__support-avatar--female{color:#8a3fa3}.ph-ai-chat__support-avatar--male{color:#315c9a}.ph-ai-chat__support-avatar--unknown{color:#51338f}

/* BUILD109.0.60 — Zalo-like time marker, centered Call avatar/card and 1s reply focus. */
.ph-ai-chat__time-separator span{background:#b8bdc4!important;color:#fff!important;font-weight:400!important;font-size:10px!important;line-height:1.2!important;padding:4px 9px!important}
.ph-ai-chat__message.is-call{align-items:center!important}.ph-ai-chat__message.is-call .ph-ai-chat__message-avatar{align-self:center!important;visibility:visible!important}
.ph-ai-chat__message.is-call .ph-ai-chat__bubble{padding:0!important;background:transparent!important;max-width:88%!important}
.ph-ai-chat__call-log{display:grid!important;grid-template-columns:34px minmax(0,1fr)!important;align-items:center!important;min-width:220px!important;padding:9px 10px 0!important;overflow:hidden!important}
.ph-ai-chat__call-log strong{font-weight:500!important}.ph-ai-chat__call-log small{font-weight:400!important;color:#667085!important}.ph-ai-chat__call-log-retry{grid-column:1/-1!important;width:auto!important;margin:8px -10px 0!important;padding:9px!important;border-top:1px solid #e4e7ec!important;text-align:center!important;font-weight:550!important}
.ph-ai-chat__call-log-icon svg,.ph-ai-chat__header-call svg{fill:#fff!important;stroke:none!important}.ph-ai-chat__call-log-icon svg path,.ph-ai-chat__header-call svg path{fill:#fff!important;stroke:none!important}
.ph-ai-chat__message.is-reply-highlight .ph-ai-chat__bubble{animation:ph-ai-reply-focus 1s ease!important}@keyframes ph-ai-reply-focus{0%,100%{outline:0 solid transparent;outline-offset:2px}18%,78%{outline:3px solid #1570ef;outline-offset:2px}}

/* BUILD109.0.61 — sender avatar stays at the start/top of the content group. */
.ph-ai-chat__message{align-items:flex-start!important}
.ph-ai-chat__message.is-call{align-items:flex-start!important}
.ph-ai-chat__message-avatar,.ph-ai-chat__message.is-call .ph-ai-chat__message-avatar{align-self:flex-start!important}
.ph-ai-chat__time-separator span{background:#bfc2c7!important;color:#fff!important;font-weight:400!important}

/* BUILD109.0.62 — stable first-frame composer */
.ph-ai-chat__form{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:end!important;width:100%!important;gap:8px!important}.ph-ai-chat__form textarea{width:100%!important;min-width:0!important;box-sizing:border-box!important;margin:0!important}.ph-ai-chat__send{width:48px!important;height:48px!important;min-width:48px!important;border-radius:12px!important;display:grid!important;place-items:center!important}.ph-ai-chat__messages{scrollbar-gutter:auto!important;padding-right:0!important}.ph-ai-chat__messages::-webkit-scrollbar{width:8px!important}

/* BUILD109.0.80 — document attachment card/control; Call UI is unchanged. */
.ph-ai-chat__file-attach{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border:0;border-radius:11px;background:transparent;color:#667085;cursor:pointer}.ph-ai-chat__file-attach:hover{background:#f2f4f7;color:#101828}.ph-ai-chat__file-attach>span{font-size:8px;font-weight:800;letter-spacing:.02em}.ph-ai-chat__file{display:grid;gap:2px;margin-top:8px;padding:9px 11px;border:1px solid #e4e7ec;border-radius:11px;background:#fff;color:#344054;text-decoration:none}.ph-ai-chat__file strong{font-size:11px;overflow-wrap:anywhere}.ph-ai-chat__file small{font-size:9px;color:#667085}
.ph-ai-chat__file-attach[hidden]{display:none!important}.ph-ai-chat__composer{grid-template-columns:auto auto minmax(0,1fr) auto!important}

/* BUILD109.0.85: Admin/customer parity for contact and call cards */
.ph-webchat-contact-card{width:min(100%,360px);padding:12px 14px;border:1px solid #cfd6e0;border-radius:13px;background:#fff;color:#182230;box-shadow:0 5px 14px rgba(16,24,40,.05)}.ph-webchat-contact-card__head{display:grid;gap:3px;padding-bottom:8px}.ph-webchat-contact-card__head strong{font-size:14px;line-height:1.35;font-weight:800}.ph-webchat-contact-card__head small{font-size:12px;color:#667085}.ph-webchat-contact-card__rows{display:grid;border-top:1px solid #eaecf0}.ph-webchat-contact-card__row{display:grid;grid-template-columns:28px minmax(0,1fr);gap:8px;align-items:center;min-height:38px;border-bottom:1px solid #eaecf0;color:#475467!important;text-decoration:none!important}.ph-webchat-contact-card__row:last-child{border-bottom:0}.ph-webchat-contact-card__icon{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#f2f4f7;font-size:16px;font-weight:900}.ph-webchat-contact-card__icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.ph-webchat-contact-card__icon--phone{color:#e83e8c}.ph-webchat-contact-card__icon--phone svg{fill:currentColor;stroke:none}.ph-webchat-contact-card__icon--zalo{color:#1570ef}.ph-webchat-contact-card__icon--email{color:#1570ef}.ph-webchat-call-card{min-width:220px;padding:10px 12px 0;border:1px solid #cfd6e0;border-radius:12px;background:#fff;overflow:hidden;color:#1d2939}.ph-webchat-call-card__title{display:block;margin-bottom:7px;font-size:14px;font-weight:700}.ph-webchat-call-card.is-danger .ph-webchat-call-card__title{color:#d92d20}.ph-webchat-call-card__body{display:flex;align-items:center;gap:8px;padding-bottom:9px}.ph-webchat-call-card__body small{margin:0!important;color:#667085;font-size:13px;font-weight:400}.ph-webchat-call-card__icon{position:relative;display:inline-grid;place-items:center;width:28px;height:28px;color:#7d8da1}.ph-webchat-call-card__phone{width:24px;height:24px;fill:currentColor}.ph-webchat-call-card__marker{position:absolute;right:-2px;top:-3px;width:12px;height:12px}.ph-webchat-call-card__icon.is-incoming .ph-webchat-call-card__marker:before{content:'↙';color:#12b76a;font-size:16px;font-weight:900}.ph-webchat-call-card__icon.is-outgoing .ph-webchat-call-card__marker:before{content:'↗';color:#f04438;font-size:16px;font-weight:900}.ph-webchat-call-card__icon.is-missed{color:#d92d20}.ph-webchat-call-card__icon.is-missed .ph-webchat-call-card__marker:before{content:'↙';color:#d92d20;font-size:16px;font-weight:900}.ph-webchat-call-card__icon.is-rejected .ph-webchat-call-card__marker:before{content:'⊘';color:#d92d20;font-size:15px;font-weight:900}.ph-webchat-call-card__retry{display:block!important;width:calc(100% + 24px)!important;margin:0 -12px!important;padding:10px!important;border:0!important;border-top:1px solid #d0d5dd!important;background:transparent!important;color:#1570ef!important;text-align:center!important;font-size:14px!important;font-weight:650!important;cursor:pointer}


/* BUILD109.0.86 — customer call-card layout parity with Admin/Zalo reference. */
.ph-ai-chat .ph-webchat-call-card{display:block!important;min-width:220px!important;width:max-content!important;max-width:min(320px,100%)!important;padding:12px 14px 0!important;border:1px solid #cfd6e0!important;border-radius:12px!important;overflow:hidden!important}
.ph-ai-chat .ph-webchat-call-card__title{display:block!important;margin:0 0 9px!important;white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;font-size:14px!important;line-height:1.35!important;font-weight:700!important}
.ph-ai-chat .ph-webchat-call-card__body{display:flex!important;align-items:center!important;gap:9px!important;padding:0 0 11px!important}
.ph-ai-chat .ph-webchat-call-card__body small{display:block!important;margin:0!important;white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;font-size:13px!important;line-height:1.35!important;font-weight:400!important;color:#667085!important}
.ph-ai-chat .ph-webchat-call-card__retry{display:block!important;width:calc(100% + 28px)!important;margin:0 -14px!important;padding:10px 12px!important;border:0!important;border-top:1px solid #d0d5dd!important;background:transparent!important;color:#1570ef!important;text-align:center!important;font-size:14px!important;font-weight:600!important}
.ph-ai-chat__message.is-call .ph-ai-chat__bubble{display:block!important;max-width:88%!important;padding:0!important;border:0!important;background:transparent!important}


/* BUILD109.0.88 — customer card parity and Zalo-like call glyph alignment. */
.ph-ai-chat .ph-webchat-contact-card{width:min(100%,360px)!important;padding:12px 14px!important;border:1px solid #cfd6e0!important;border-radius:13px!important;background:#fff!important;color:#182230!important;box-shadow:0 5px 14px rgba(16,24,40,.05)!important}
.ph-ai-chat .ph-webchat-contact-card__head{display:grid!important;gap:3px!important;padding-bottom:8px!important}
.ph-ai-chat .ph-webchat-contact-card__rows{display:grid!important;border-top:1px solid #eaecf0!important}
.ph-ai-chat .ph-webchat-contact-card__row{display:grid!important;grid-template-columns:28px minmax(0,1fr)!important;gap:8px!important;align-items:center!important;min-height:38px!important;border-bottom:1px solid #eaecf0!important;color:#475467!important;text-decoration:none!important}
.ph-ai-chat .ph-webchat-contact-card__row:last-child{border-bottom:0!important}
.ph-ai-chat .ph-webchat-contact-card__icon{display:grid!important;place-items:center!important;width:28px!important;height:28px!important;border-radius:8px!important;background:#f2f4f7!important}
.ph-ai-chat .ph-webchat-call-card{display:block!important;width:max-content!important;min-width:220px!important;max-width:min(320px,100%)!important;padding:12px 14px 0!important;border:1px solid #cfd6e0!important;border-radius:12px!important;overflow:hidden!important}
.ph-ai-chat .ph-webchat-call-card__title{display:block!important;margin:0 0 9px!important;white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;font-size:14px!important;line-height:1.35!important}
.ph-ai-chat .ph-webchat-call-card__body{display:flex!important;align-items:center!important;gap:9px!important;padding:0 0 11px!important}
.ph-ai-chat .ph-webchat-call-card__body small{display:block!important;margin:0!important;white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;font-size:13px!important;line-height:1.35!important}
.ph-ai-chat .ph-webchat-call-card__icon{display:inline-grid!important;place-items:center!important;width:31px!important;height:31px!important;flex:0 0 31px!important;color:#7d8da1!important}
.ph-ai-chat .ph-webchat-call-card__glyph{display:block!important;width:31px!important;height:31px!important;overflow:visible!important}
.ph-ai-chat .ph-webchat-call-card__glyph .ph-call-phone{fill:#7d8da1!important}
.ph-ai-chat .ph-webchat-call-card__glyph .ph-call-mark{fill:none!important;stroke-width:2.4!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.ph-ai-chat .ph-webchat-call-card__glyph .ph-call-mark--in{stroke:#12b76a!important}
.ph-ai-chat .ph-webchat-call-card__glyph .ph-call-mark--out{stroke:#f04438!important}
.ph-ai-chat .ph-webchat-call-card__icon.is-missed .ph-call-phone{fill:#d92d20!important;transform:rotate(25deg);transform-origin:16px 16px}
.ph-ai-chat .ph-webchat-call-card__glyph .ph-call-mark--missed{fill:none!important;stroke:#d92d20!important;stroke-width:2.4!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.ph-ai-chat .ph-webchat-call-card__glyph .ph-call-reject-circle,.ph-ai-chat .ph-webchat-call-card__glyph .ph-call-reject-slash{fill:none!important;stroke:#d92d20!important;stroke-width:2.2!important;stroke-linecap:round!important}
.ph-ai-chat .ph-webchat-call-card__retry{display:block!important;width:calc(100% + 28px)!important;margin:0 -14px!important;padding:10px 12px!important;border:0!important;border-top:1px solid #d0d5dd!important;background:transparent!important;color:#1570ef!important;text-align:center!important}

/* BUILD109.0.93 — plain URLs in chat text are real links without breaking the bubble. */
.ph-ai-chat__message-link{color:#175cd3;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px;overflow-wrap:anywhere;word-break:break-word}

/* BUILD109.0.99 — file card download-only + persisted link preview. */
.ph-ai-chat__file-card{display:grid;grid-template-columns:42px minmax(0,1fr) 32px;align-items:center;gap:9px;width:min(340px,100%);margin-top:8px;padding:10px;border:1px solid #d7dde5;border-radius:11px;background:#fff;color:#1d2939}
.ph-ai-chat__file-type{position:relative;display:grid;place-items:end center;width:38px;height:46px;padding:0 2px 7px;overflow:hidden;border-radius:6px;background:#667085;color:#fff;font-size:9px;font-weight:800;line-height:1}
.ph-ai-chat__file-type:after{content:"";position:absolute;right:0;top:0;border-style:solid;border-width:0 0 10px 10px;border-color:transparent transparent rgba(255,255,255,.7) transparent}
.ph-ai-chat__file-type--pdf{background:#f04438}.ph-ai-chat__file-type--sheet{background:#12a150}.ph-ai-chat__file-type--doc{background:#2e75d8}.ph-ai-chat__file-type--archive{background:#b26a18}
.ph-ai-chat__file-copy{display:grid;gap:3px;min-width:0}.ph-ai-chat__file-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12.5px;line-height:1.35}.ph-ai-chat__file-copy small{color:#667085;font-size:10.5px;line-height:1.3}
.ph-ai-chat__file-download{display:grid;place-items:center;width:30px;height:30px;border:1px solid #cbd3dd;border-radius:7px;background:#fff;color:#344054;text-decoration:none}.ph-ai-chat__file-download:hover{color:#175cd3;background:#f8fafc}.ph-ai-chat__file-download svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ph-ai-chat__link-preview{display:grid;grid-template-columns:76px minmax(0,1fr);width:min(340px,100%);min-height:70px;margin-top:8px;overflow:hidden;border:1px solid #d7dde5;border-radius:11px;background:#fff;color:#1d2939;text-decoration:none}
.ph-ai-chat__link-preview-media{display:grid;place-items:center;width:76px;min-height:70px;overflow:hidden;background:#f2f4f7}.ph-ai-chat__link-preview-media img{display:block;width:100%;height:100%;min-height:70px;max-height:88px;object-fit:cover}.ph-ai-chat__link-preview-media.is-icon img{width:28px;height:28px;min-height:0;object-fit:contain}.ph-ai-chat__link-preview-media.is-icon svg{width:26px;height:26px;fill:none;stroke:#667085;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.ph-ai-chat__link-preview-copy{display:grid;align-content:center;gap:3px;min-width:0;padding:8px 10px}.ph-ai-chat__link-preview-copy strong{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:12px;line-height:1.3}.ph-ai-chat__link-preview-description{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;color:#667085;font-size:10px;line-height:1.3}.ph-ai-chat__link-preview-domain{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#667085;font-size:9.5px;line-height:1.25}

/* BUILD109.0.106 — Zalo missed-call glyph parity. */
.ph-webchat-call-card__glyph--missed{width:30px!important;height:30px!important;overflow:visible!important}
.ph-webchat-call-card__glyph--missed .ph-call-missed-handset{fill:#d92d20!important;transform:none!important}
.ph-webchat-call-card__glyph--missed .ph-call-missed-arrow{fill:none!important;stroke:#d92d20!important;stroke-width:2.2!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.ph-webchat-call-card__icon.is-missed .ph-call-phone{transform:none!important}
