@import "./scroll-top.css";



.haipai-consultation-launcher {
  --launcher-background: #0e2e43;
  --launcher-foreground: #fff;
  --launcher-size: 48px;
  position: fixed;
  right: 24px;
  bottom: 182px;
  z-index: 999999;
  width: var(--launcher-size);
  height: var(--launcher-size);
  margin: 0;
  padding: 0;
  border: 0;
  font-family: var(--font-harmonyos-sans);
  font-size: 15px;
  line-height: 1;
}

.haipai-consultation-launcher[data-surface="dark"] {
  --launcher-background: #fff;
  --launcher-foreground: #0e2e43;
}

.haipai-consultation-launcher,
.haipai-consultation-launcher *,
.haipai-consultation-launcher *::before,
.haipai-consultation-launcher *::after {
  box-sizing: border-box;
}

.haipai-consultation-launcher * {
  font-family: inherit;
  line-height: inherit;
  letter-spacing: normal;
}

.haipai-consultation-launcher .haipai-consultation-launcher-button {
  position: absolute;
  right: 0;
  top: 0;
  display: block;
  width: var(--launcher-size);
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--launcher-background);
  color: var(--launcher-foreground);
  font-size: inherit;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 22, 38, .16);
  transition: width 220ms cubic-bezier(.22, 1, .36, 1), background-color 180ms ease, color 180ms ease, box-shadow 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.haipai-consultation-launcher .haipai-consultation-launcher-button:focus-visible {
  width: calc(var(--launcher-size) + 88px);
  outline: 2px solid #f77319;
  outline-offset: 4px;
}

.haipai-consultation-launcher .haipai-consultation-launcher-icon {
  position: absolute;
  right: 0;
  top: 0;
  display: grid;
  width: var(--launcher-size);
  height: var(--launcher-size);
  margin: 0;
  padding: 0;
  place-items: center;
}

.haipai-consultation-launcher .haipai-consultation-launcher-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

.haipai-consultation-launcher .haipai-consultation-launcher-copy {
  position: absolute;
  right: calc(var(--launcher-size) + 8px);
  top: 50%;
  display: block;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  opacity: 0;
  transform: translate(6px, -50%);
  transition: opacity 140ms ease, transform 220ms cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}

.haipai-consultation-launcher .haipai-consultation-launcher-copy strong {
  display: block;
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: var(--font-weight-label);
}

/* The expanded pill has one label, without a second floating tooltip. */
.haipai-consultation-launcher .haipai-consultation-launcher-copy span {
  display: none;
}

.haipai-consultation-launcher-button:focus-visible .haipai-consultation-launcher-copy {
  opacity: 1;
  transform: translate(0, -50%);
}

@media (hover: hover) and (pointer: fine) {
  .haipai-consultation-launcher .haipai-consultation-launcher-button:hover {
    width: calc(var(--launcher-size) + 88px);
    box-shadow: 0 10px 24px rgba(0, 22, 38, .22);
  }

  .haipai-consultation-launcher-button:hover .haipai-consultation-launcher-copy {
    opacity: 1;
    transform: translate(0, -50%);
  }
}

@media (max-width: 767px) {
  .haipai-consultation-launcher {
    --launcher-size: 44px;
    right: 16px;
    bottom: 120px;
    font-size: 14px;
  }

  .haipai-consultation-launcher .haipai-consultation-launcher-icon svg {
    width: 20px;
    height: 20px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .haipai-consultation-launcher .haipai-consultation-launcher-button,
  .haipai-consultation-launcher .haipai-consultation-launcher-copy {
    transition: none;
  }
}
