/* Messenger profile opened from a support conversation. */
html body #app .cp-workspace.cps-profile {
  --cps-surface:#fff;
  --cps-line:#e7eaee;
  --cps-muted:#566374;
  box-sizing:border-box;
  width:min(100%,690px);
  min-width:0;
  margin-inline:auto;
  padding:0 clamp(10px,3vw,24px) 28px;
}
html[data-theme=dark] body #app .cp-workspace.cps-profile {
  --cps-surface:#14171b;
  --cps-line:#29303a;
  --cps-muted:#aeb8c6;
}
.cps-profile .cps-header { display:grid; grid-template-columns:44px 1fr 44px; align-items:center; min-height:52px; }
.cps-header h1 { grid-column:2; font-size:17px; font-weight:650; text-align:center; margin:0; }
.cps-profile .cps-person { display:flex; flex-direction:column; align-items:center; padding:18px 12px 13px; text-align:center; }
.cps-profile .cps-person .cps-avatar { position:relative; width:80px; height:80px; border-radius:50%; overflow:hidden; display:grid; place-items:center; font-size:28px; }
.cps-avatar img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.cps-profile .cps-person h2 { max-width:100%; overflow-wrap:anywhere; margin:13px 0 0; font-size:25px; line-height:1.18; letter-spacing:-.02em; }
.cps-profile .cps-identity { display:flex; align-items:center; justify-content:center; gap:4px; min-height:38px; margin:0; color:var(--cps-muted); font-size:14px; }
.cps-profile .cps-identity .cp-copy { min-width:38px; min-height:38px; border:0; box-shadow:none; background:transparent; }
.cps-profile .cps-person > small { margin-top:7px; color:var(--cps-muted); font-size:12px; }
html body #app .cps-profile .cps-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:7px; margin:2px 0 17px; }
.cps-profile .cps-actions > :is(button,details) { min-height:42px; }
.cps-profile .cps-group { border:1px solid var(--cps-line); border-radius:18px; background:var(--cps-surface); margin:0 0 12px; min-width:0; }
html body #app .cps-profile .cps-group > .cp-card { margin:0; border:0; border-radius:0; box-shadow:none; background:none; min-width:0; }
html body #app .cps-profile .cps-group > * + * { border-top:1px solid var(--cps-line); }
html body #app .cps-profile .cps-group > details > summary { min-height:51px; padding:11px 14px; }
.cps-profile .cps-group > details > summary h2 { font-size:14px; font-weight:560; min-width:0; }
.cps-profile .cp-context-contacts { padding:11px 14px; }
.cps-profile .cp-context-contacts h2 { font-size:13px; font-weight:550; }
.cps-profile .cp-contacts > div { min-width:0; overflow-wrap:anywhere; }
.cps-profile .cps-balance { display:flex; flex-wrap:wrap; gap:9px; align-items:center; padding:10px 14px; min-height:51px; font-size:14px; }
.cps-balance > span { display:inline-flex; align-items:center; gap:8px; }
.cps-balance > span svg { width:19px; height:19px; }
.cps-balance strong { margin-inline-start:auto; }
.cps-profile .cps-state { padding:20px; text-align:center; }
@media (prefers-reduced-motion:no-preference) {
  .cps-profile.cps-enter .cps-person { animation:cps-reveal 200ms cubic-bezier(.22,1,.36,1); }
  @keyframes cps-reveal { from { opacity:.55; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }
}
.cps-profile .cps-avatar .fo-avatar-initials { position:absolute; inset:0; display:grid; place-items:center; font-size:28px; line-height:1; }
.cps-profile .cps-header > button { width:44px; height:44px; }
html body #app .cps-profile .cps-actions > button,
html body #app .cps-profile .cps-actions > .cp-more > summary {
  box-sizing:border-box;
  min-height:42px;
  height:42px;
  padding:0 12px;
  font-size:13px;
  border-radius:12px;
}
.cps-profile .cps-actions > .cp-more { min-height:0; }
.cps-profile [data-cp-panel].cps-disclosure-moving { overflow:clip; }
.cps-profile [data-cp-panel] > summary > svg:last-child { transition:transform 220ms ease; }
.cps-profile [data-cp-panel][data-cps-expanded=false] > summary > svg:last-child { transform:rotate(0); }
@media (prefers-reduced-motion:reduce) {
  .cps-profile [data-cp-panel] > summary > svg:last-child { transition:none; }
}
