.cw-guide-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.cw-guide-launch {
  position: static;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #f2f2f2;
  border-radius: 7px;
  background: #f2f2f2;
  color: #111;
  font: 700 13px/1 "Segoe UI", "Microsoft YaHei", sans-serif;
  cursor: pointer;
  white-space: nowrap;
}

html.cw-guide-active #sct-order-dock {
  visibility: hidden !important;
  opacity: 0 !important;
  transform: translateX(100%) !important;
  pointer-events: none !important;
}

.cw-guide-launch:hover {
  background: #fff;
}

.cw-guide-launch:focus-visible {
  outline: 2px solid #f2f2f2;
  outline-offset: 3px;
}

.cw-guide-highlight {
  position: fixed;
  z-index: 300000;
  display: none;
  border: 2px solid #fff;
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(13,13,13, .7), 0 12px 42px rgba(0, 0, 0, .25);
  pointer-events: none;
  transition: none;
}

.cw-guide-highlight::after {
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 16px;
  content: "";
}

.cw-guide-card {
  position: fixed;
  z-index: 300002;
  display: none;
  width: min(360px, calc(100vw - 28px));
  padding: 20px;
  border: 1px solid rgba(17, 17, 17, .12);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 22px 64px rgba(0, 0, 0, .26);
  color: #171717;
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
}

.cw-guide-card.is-open,
.cw-guide-highlight.is-open {
  display: block;
}

.cw-guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cw-guide-progress-label {
  color: #727272;
  font-size: 12px;
  font-weight: 650;
}

.cw-guide-close {
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: #f2f2f2;
  color: #545454;
  font-size: 19px;
  cursor: pointer;
}

.cw-guide-progress {
  height: 4px;
  margin: 13px 0 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9e9e9;
}

.cw-guide-progress span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: #171717;
  transition: width .22s ease;
}

.cw-guide-kicker {
  display: block;
  margin-bottom: 7px;
  color: #757575;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .08em;
}

.cw-guide-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}

.cw-guide-description {
  margin: 10px 0 0;
  color: #5b5b5b;
  font-size: 13px;
  line-height: 1.7;
}

.cw-guide-note {
  display: flex;
  gap: 8px;
  margin-top: 13px;
  padding: 10px 11px;
  border-radius: 8px;
  background: #f4f4f4;
  color: #525252;
  font-size: 12px;
  line-height: 1.55;
}

.cw-guide-note::before {
  color: #171717;
  font-weight: 800;
  content: "TIP";
}

.cw-guide-preference {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  color: #787878;
  font-size: 11px;
  cursor: pointer;
}

.cw-guide-preference input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #171717;
}

.cw-guide-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 17px;
}

.cw-guide-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(17, 17, 17, .14);
  border-radius: 8px;
  background: #fff;
  color: #171717;
  font: 650 12px/1 "Segoe UI", "Microsoft YaHei", sans-serif;
  cursor: pointer;
}

.cw-guide-button.primary {
  margin-left: auto;
  border-color: #171717;
  background: #171717;
  color: #fff;
}

.cw-guide-button[hidden] {
  display: none;
}

.cw-guide-toast {
  position: fixed;
  z-index: 300003;
  right: 24px;
  bottom: 24px;
  display: none;
  padding: 11px 15px;
  border-radius: 8px;
  background: #171717;
  color: #fff;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .2);
  font: 600 12px/1.4 "Segoe UI", "Microsoft YaHei", sans-serif;
}

.cw-guide-toast.is-open {
  display: block;
}

@media (max-width: 720px) {
  html.cw-guide-active body {
    padding-bottom: 380px;
  }

  .cw-guide-card {
    left: 14px !important;
    right: 14px !important;
    bottom: 14px !important;
    top: auto !important;
    width: auto;
    max-height: 42vh;
    overflow-y: auto;
    padding: 15px 17px;
  }

  .cw-guide-title {
    font-size: 18px;
  }

  .cw-guide-description {
    line-height: 1.55;
  }

  .cw-guide-note {
    margin-top: 9px;
    padding: 8px 10px;
  }

  .cw-guide-preference {
    margin-top: 11px;
  }

  .cw-guide-actions {
    margin-top: 12px;
  }

  .cw-guide-highlight {
    border-radius: 9px;
  }
}
