.servicecus-async-host { position: relative; z-index: 99990; }
.servicecus-widget, .servicecus-widget * { box-sizing: border-box; }
.servicecus-widget {
  --servicecus-size: 58px;
  --servicecus-gap: 10px;
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 99990;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--servicecus-gap);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  pointer-events: none;
}
.servicecus-widget[data-side="left"] { right: auto; left: 22px; }
.servicecus-widget button, .servicecus-widget a { font: inherit; }
.servicecus-toolbar, .servicecus-launcher, .servicecus-back-top, .servicecus-account-panel { pointer-events: auto; }
.servicecus-toolbar {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px) scale(.94);
  transition: grid-template-rows .28s ease, opacity .22s ease, transform .28s ease;
}
.servicecus-widget.is-open .servicecus-toolbar { grid-template-rows: 1fr; overflow: visible; opacity: 1; transform: none; }
.servicecus-toolbar-inner { position: relative; min-height: 0; overflow: visible; }
.servicecus-channel-viewport {
  width: calc(var(--servicecus-size) + 16px);
  max-height: calc((var(--servicecus-size) + var(--servicecus-gap)) * 6 - var(--servicecus-gap) + 12px);
  margin: -6px -8px;
  padding: 6px 8px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.servicecus-channel-viewport::-webkit-scrollbar { display: none; }
.servicecus-channel-list { display: flex; flex-direction: column; gap: var(--servicecus-gap); }
.servicecus-channel-button, .servicecus-launcher, .servicecus-back-top {
  width: var(--servicecus-size);
  height: var(--servicecus-size);
  min-width: var(--servicecus-size);
  border: 0;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
  transition: transform .18s ease, opacity .18s ease;
  text-decoration: none;
  padding: 0;
}
.servicecus-channel-button:hover, .servicecus-channel-button:focus-visible,
.servicecus-launcher:hover, .servicecus-launcher:focus-visible,
.servicecus-back-top:hover, .servicecus-back-top:focus-visible {
  color: #fff;
  transform: scale(1.08);
  box-shadow: none;
  outline: none;
}
.servicecus-channel-button i, .servicecus-launcher i, .servicecus-back-top i { font-size: 28px; line-height: 1; }
.servicecus-channel-image { position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.servicecus-channel-button[aria-expanded="true"] { box-shadow: none; }
.servicecus-launcher { background: #ff0033; position: relative; }
.servicecus-launcher i { font-size: 30px; transition: transform .24s ease; }
.servicecus-widget.is-open .servicecus-launcher i::before { content: "\f62a"; }
.servicecus-widget.is-open .servicecus-launcher i { transform: rotate(90deg); }
.servicecus-scroll-button {
  border: 0;
  background: transparent;
  color: #707987;
  width: 18px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  pointer-events: auto;
}
.servicecus-scroll-button:disabled { opacity: .25; cursor: default; }
.servicecus-scroll-button i { font-size: 16px; line-height: 1; }
.servicecus-scroll-rail {
  position: absolute;
  top: -1px;
  right: -19px;
  bottom: -1px;
  width: 18px;
  display: none;
  flex-direction: column;
  align-items: center;
  border: 1px solid #e2e6ec;
  border-radius: 3px;
  background: rgba(255, 255, 255, .94);
  pointer-events: auto;
}
.servicecus-widget[data-side="left"] .servicecus-scroll-rail { right: auto; left: -19px; }
.servicecus-scroll-rail.is-visible { display: flex; }
.servicecus-scroll-track {
  position: relative;
  flex: 1;
  width: 4px;
  min-height: 30px;
  border-radius: 999px;
  background: #e0e3e8;
  cursor: pointer;
}
.servicecus-scroll-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  min-height: 24px;
  border-radius: 999px;
  background: #737b86;
  cursor: grab;
  touch-action: none;
}
.servicecus-scroll-thumb:active { cursor: grabbing; }
.servicecus-back-top {
  display: none;
  flex: 0 0 var(--servicecus-size);
  background: rgba(45, 52, 62, .82);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(.86);
}
.servicecus-back-top.is-enabled { display: inline-flex; }
.servicecus-back-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
.servicecus-back-top i { font-size: 24px; }
.servicecus-account-panel {
  position: absolute;
  right: calc(var(--servicecus-size) + 18px);
  top: 45%;
  width: min(330px, calc(100vw - 120px));
  max-height: min(390px, calc(100vh - 80px));
  overflow: visible;
  border-radius: 5px;
  border: 1px solid #edf0f4;
  background: #fff;
  color: #263043;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  transform: translate(10px, -50%) scale(.97);
  transform-origin: right center;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.servicecus-widget[data-side="left"] .servicecus-account-panel { right: auto; left: calc(var(--servicecus-size) + 18px); transform-origin: left center; transform: translate(-10px, -50%) scale(.97); }
.servicecus-account-panel.is-visible { opacity: 1; visibility: visible; transform: translate(0, -50%) scale(1); }
.servicecus-account-panel::after {
  content: "";
  position: absolute;
  margin-top: -10px;
  right: -10px;
  top: var(--servicecus-arrow-top, 50%);
  border-width: 10px 0 10px 10px;
  border-style: solid;
  border-color: transparent transparent transparent #fff;
}
.servicecus-widget[data-side="left"] .servicecus-account-panel::after { right: auto; left: -10px; border-width: 10px 10px 10px 0; border-color: transparent #fff transparent transparent; }
.servicecus-account-list {
  max-height: inherit;
  padding: 8px 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: inherit;
}
.servicecus-account-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) 34px; align-items: center; gap: 10px; width: 100%; min-width: 0; padding: 10px 15px; color: inherit; text-decoration: none; transition: background .16s ease; }
.servicecus-account-row:hover { background: #f7f9fc; color: inherit; }
.servicecus-account-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #f0efff; color: #8277ed; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; }
.servicecus-account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.servicecus-account-avatar i { font-size: 24px; }
.servicecus-account-copy { min-width: 0; cursor: copy; }
.servicecus-account-name { display: block; font-size: 15px; font-weight: 500; color: #2e3543; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.servicecus-account-value { display: flex; min-width: 0; align-items: center; gap: 7px; margin-top: 3px; color: #8a93a2; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.servicecus-account-value i { font-size: 13px; transition: color .16s ease, transform .16s ease; }
.servicecus-account-value .bi-clipboard-check-fill { color: #198754; transform: scale(1.12); }
.servicecus-send { color: #263043; font-size: 25px; display: inline-flex; align-items: center; justify-content: center; }
@media (min-width: 768px) {
  .servicecus-launcher { display: none; }
}
@media (max-width: 767.98px) {
  .servicecus-widget { --servicecus-size: 54px; right: 16px; bottom: 76px; }
  .servicecus-widget[data-mobile-side="left"] { right: auto; left: 16px; }
  .servicecus-widget[data-mobile-side="right"] { left: auto; right: 16px; }
  .servicecus-launcher { display: inline-flex; }
  .servicecus-account-panel { right: calc(var(--servicecus-size) + 13px); width: min(292px, calc(100vw - 92px)); }
  .servicecus-widget[data-mobile-side="left"] .servicecus-account-panel { right: auto; left: calc(var(--servicecus-size) + 13px); transform-origin: left center; }
  .servicecus-widget[data-mobile-side="right"] .servicecus-account-panel { left: auto; right: calc(var(--servicecus-size) + 13px); transform-origin: right center; }
  .servicecus-widget[data-mobile-side="left"] .servicecus-account-panel::after { right: auto; left: -10px; border-width: 10px 10px 10px 0; border-color: transparent #fff transparent transparent; }
  .servicecus-widget[data-mobile-side="right"] .servicecus-account-panel::after { left: auto; right: -10px; border-width: 10px 0 10px 10px; border-color: transparent transparent transparent #fff; }
  .servicecus-account-row { padding: 9px 13px; grid-template-columns: 40px minmax(0, 1fr) 32px; }
  .servicecus-account-avatar { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .servicecus-widget *, .servicecus-widget *::before, .servicecus-widget *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
