.zteapi-floating-actions {
  position: fixed;
  right: 34px;
  bottom: 30px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.zteapi-floating-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #d8462f 0%, #c9311f 100%);
  box-shadow: 0 18px 42px rgba(181, 48, 32, .34), 0 8px 18px rgba(15, 23, 42, .12);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  transform: translateZ(0);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.zteapi-floating-action:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(181, 48, 32, .42), 0 10px 22px rgba(15, 23, 42, .14);
}

.zteapi-floating-action:focus-visible {
  outline: 3px solid rgba(216, 70, 47, .28);
  outline-offset: 4px;
}

.zteapi-floating-action svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
}

.zteapi-floating-actions.is-hidden {
  display: none;
}

.zteapi-payment-toast {
  position: fixed;
  right: 28px;
  top: 22px;
  z-index: 1000;
  width: min(360px, calc(100vw - 32px));
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid rgba(5, 150, 105, .22);
  border-radius: 8px;
  color: #064e3b;
  background: #ecfdf5;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .16);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  transform: translateY(-10px);
  opacity: 0;
  transition: transform .2s ease, opacity .2s ease;
}

.zteapi-payment-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.zteapi-payment-toast strong {
  font-size: 15px;
}

.zteapi-payment-toast span,
.zteapi-payment-toast small {
  font-size: 13px;
  line-height: 1.5;
}

.zteapi-qrpay-subpage {
  width: 100%;
  min-height: calc(100vh - 92px);
  margin: 0;
}

.zteapi-qrpay-frame {
  display: block;
  width: 100%;
  min-height: calc(100vh - 92px);
  border: 0;
  background: #f7fafb;
}

@media (max-width: 720px) {
  .zteapi-floating-actions {
    right: 18px;
    bottom: 18px;
  }

  .zteapi-floating-action {
    min-height: 52px;
    padding: 0 16px;
    font-size: 14px;
  }

  .zteapi-payment-toast {
    right: 16px;
    top: 16px;
  }

  .zteapi-qrpay-subpage,
  .zteapi-qrpay-frame {
    min-height: calc(100vh - 72px);
  }
}

@media (max-width: 420px) {
  .zteapi-floating-action {
    width: 52px;
    padding: 0;
    justify-content: center;
  }

  .zteapi-floating-action span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
}
