/* RC35.39 — Conversational website support messenger */
.plp-support-chat{position:fixed;inset:auto 22px 22px auto;z-index:130;direction:rtl;font-family:inherit}
.plp-support-chat.is-authenticated{bottom:24px}
.plp-support-launcher{border:0;background:linear-gradient(135deg,#2446d8,#1834ad);color:#fff;min-height:54px;padding:10px 16px;border-radius:999px;display:flex;align-items:center;gap:9px;font:inherit;font-weight:800;box-shadow:0 14px 34px rgba(24,52,173,.28);cursor:pointer}
.plp-support-launcher-icon{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.15)}
.plp-support-launcher svg,.plp-support-head svg,.plp-support-form svg{width:20px;height:20px;fill:currentColor;display:block}
.plp-support-panel{position:absolute;right:0;bottom:68px;width:min(390px,calc(100vw - 32px));height:min(610px,calc(100dvh - 120px));background:#fff;border:1px solid var(--plp-border,#e4e8f0);border-radius:22px;box-shadow:0 24px 60px rgba(18,32,65,.2);overflow:hidden;display:flex;flex-direction:column;opacity:0;transform:translateY(12px) scale(.98);pointer-events:none;transition:opacity .18s ease,transform .18s ease}
.plp-support-chat[data-state="open"] .plp-support-panel{opacity:1;transform:none;pointer-events:auto}
.plp-support-chat[data-state="open"] .plp-support-launcher{opacity:0;pointer-events:none;transform:scale(.9)}
.plp-support-head{display:flex;align-items:center;gap:11px;padding:15px 16px;border-bottom:1px solid #e9edf5;background:linear-gradient(180deg,#f8faff,#fff)}
.plp-support-avatar{width:42px;height:42px;border-radius:14px;background:#eef2ff;color:#2446d8;display:grid;place-items:center;flex:0 0 42px}
.plp-support-head>div:nth-child(2){min-width:0;flex:1}
.plp-support-head strong{display:block;font-size:14px;line-height:1.5;color:#172033;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.plp-support-head small{display:flex;align-items:center;gap:5px;color:#667085;font-size:11px;margin-top:2px}
.plp-support-dot{width:7px;height:7px;border-radius:50%;background:#18a37a;box-shadow:0 0 0 3px rgba(24,163,122,.12)}
.plp-support-close{width:38px;height:38px;border:0;border-radius:12px;background:#f2f4f7;color:#475467;font-size:25px;line-height:1;cursor:pointer}
.plp-support-messages{flex:1;overflow:auto;padding:16px 14px 8px;display:flex;flex-direction:column;gap:9px;scroll-behavior:smooth;background:#fbfcff}
.plp-support-bubble{max-width:88%;padding:10px 13px;border-radius:15px;font-size:13px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere}
.plp-support-assistant{align-self:flex-start;background:#fff;color:#26324a;border:1px solid #e3e8f2;border-bottom-right-radius:5px}
.plp-support-user{align-self:flex-end;background:#2446d8;color:#fff;border-bottom-left-radius:5px}
.plp-support-assistant.is-note{background:#ecf8f3;border-color:#c5eadc;color:#08745d;font-weight:700}
.plp-support-assistant.is-error{background:#fff4f2;border-color:#fecdca;color:#b42318}
.plp-support-actions{display:flex;flex-wrap:wrap;gap:7px;align-self:flex-start;max-width:94%}
.plp-support-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:7px 11px;border-radius:11px;border:1px solid #cfd8ff;background:#fff;color:#2446d8;text-decoration:none;font-size:12px;font-weight:800}
.plp-support-quick{padding:9px 12px 7px;display:flex;gap:6px;overflow-x:auto;border-top:1px solid #eef1f6;background:#fff;scrollbar-width:none}
.plp-support-quick::-webkit-scrollbar{display:none}
.plp-support-quick button{flex:0 0 auto;border:1px solid #d9e0f3;background:#f7f9ff;color:#334a87;min-height:34px;padding:6px 10px;border-radius:999px;font:inherit;font-size:11px;font-weight:700;cursor:pointer}
.plp-support-form{display:flex;align-items:center;gap:8px;padding:9px 12px 6px;background:#fff}
.plp-support-form input{flex:1;min-width:0;height:44px;border:1px solid #d7deeb;border-radius:13px;padding:0 12px;font:inherit;font-size:14px;outline:0;background:#fff;color:#172033}
.plp-support-form input:focus{border-color:#8ba0ff;box-shadow:0 0 0 3px rgba(36,70,216,.10)}
.plp-support-form button{width:44px;height:44px;border:0;border-radius:13px;background:#2446d8;color:#fff;display:grid;place-items:center;cursor:pointer;flex:0 0 44px}
.plp-support-form.is-busy button{opacity:.55;cursor:wait}
.plp-support-privacy{padding:0 13px 10px;background:#fff;color:#98a2b3;font-size:9.5px;text-align:center}
.plp-support-assistant.is-typing{display:flex;gap:4px;align-items:center;width:54px;min-height:36px}
.plp-support-assistant.is-typing span{width:6px;height:6px;border-radius:50%;background:#98a2b3;animation:plpSupportTyping 1s infinite ease-in-out}
.plp-support-assistant.is-typing span:nth-child(2){animation-delay:.14s}.plp-support-assistant.is-typing span:nth-child(3){animation-delay:.28s}
@keyframes plpSupportTyping{0%,60%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(-4px);opacity:1}}
@media(max-width:640px){
  .plp-support-chat{right:auto;left:14px;bottom:16px}
  .plp-support-chat.is-authenticated{bottom:calc(88px + env(safe-area-inset-bottom))}
  .plp-support-launcher{width:48px;height:48px;min-height:48px;padding:0;justify-content:center;border-radius:50%;box-shadow:0 9px 24px rgba(24,52,173,.24)}
  .plp-support-launcher-icon{width:48px;height:48px;background:transparent}
  .plp-support-launcher-icon svg{width:22px;height:22px}
  .plp-support-launcher>span:last-child{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
  .plp-support-chat.plp-support-page-exam-attempt{display:none!important}
  .plp-support-panel{position:fixed;left:10px;right:10px;bottom:10px;width:auto;height:min(72dvh,620px);border-radius:22px}
  .plp-support-chat.is-authenticated .plp-support-panel{bottom:calc(82px + env(safe-area-inset-bottom));height:min(70dvh,600px)}
  .plp-support-bubble{max-width:92%}
  body.plp-support-open{overflow:hidden}
}
@media(max-width:390px){
  .plp-support-panel{left:7px;right:7px}
  .plp-support-head{padding:12px}
  .plp-support-messages{padding-inline:10px}
}
@media(prefers-reduced-motion:reduce){.plp-support-panel{transition:none}.plp-support-assistant.is-typing span{animation:none}}

/* RC35.39 conversational follow-up chips */
.plp-support-suggestions{display:flex;flex-wrap:wrap;gap:7px;align-self:flex-start;max-width:96%;margin:0 0 2px}
.plp-support-suggestions button{appearance:none;border:1px solid #d7def5;background:#f8faff;color:#3346a8;border-radius:999px;padding:7px 11px;font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.plp-support-suggestions button:hover,.plp-support-suggestions button:focus-visible{background:#eef2ff;border-color:#aebcf6;outline:none}
