.service-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

.service-widget-card {
  width: 218px;
  padding: 15px;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(16, 24, 40, 0.2);
}

.service-widget-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.service-widget-head strong {
  display: block;
  color: #101828;
  font-size: 15px;
  line-height: 1.3;
}

.service-widget-head span {
  display: block;
  margin-top: 4px;
  color: #667085;
  font-size: 10px;
  line-height: 1.45;
}

.service-widget-close,
.service-widget-launch {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  color: #344054;
  background: #ffffff;
  cursor: pointer;
}

.service-widget-close:hover,
.service-widget-launch:hover {
  color: #2f6fed;
  border-color: #b9cdf8;
  background: #f4f7ff;
}

.service-widget-card img {
  width: 168px;
  height: 168px;
  display: block;
  margin: 12px auto 8px;
  padding: 6px;
  border: 1px solid #e5eaf1;
  border-radius: 6px;
  background: #ffffff;
  object-fit: contain;
}

.service-widget-mail {
  display: block;
  color: #2f6fed;
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.service-widget-launch {
  display: none;
  width: auto;
  min-width: 96px;
  height: 44px;
  grid-auto-flow: column;
  gap: 7px;
  padding: 0 14px;
  color: #ffffff;
  border-color: #2f6fed;
  background: #2f6fed;
  box-shadow: 0 12px 28px rgba(47, 111, 237, 0.26);
  font-size: 12px;
  font-weight: 700;
}

.service-widget.is-collapsed .service-widget-card {
  display: none;
}

.service-widget.is-collapsed .service-widget-launch {
  display: inline-grid;
}

.service-widget svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 640px) {
  .service-widget {
    right: 12px;
    bottom: 12px;
  }

  .service-widget-card {
    width: 194px;
    padding: 12px;
  }

  .service-widget-card img {
    width: 146px;
    height: 146px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-widget * {
    transition: none !important;
    animation: none !important;
  }
}
