/* WeChat binding mode selector. */
.wx-bind-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.wx-bind-method {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.wx-bind-method:hover {
  border-color: #bccbe3;
  background: #fbfcff;
}

.wx-bind-method.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 1px rgba(41, 73, 216, 0.08);
}

.wx-bind-method-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid #dbe4ff;
  border-radius: 8px;
  color: var(--primary);
  background: #f3f6ff;
}

.wx-bind-method > span:last-child {
  min-width: 0;
}

.wx-bind-method b,
.wx-bind-method small {
  display: block;
}

.wx-bind-method b {
  font-size: 13px;
}

.wx-bind-method small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.wx-bind-panel[hidden] {
  display: none;
}

.wx-scan-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid #dbe4ff;
  border-radius: 8px;
  background: #f8faff;
}

.wx-scan-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid #cfdcff;
  border-radius: 8px;
  color: var(--primary);
  background: #fff;
}

.wx-scan-card b {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.wx-scan-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.65;
}

.wx-scan-status {
  margin: 12px 0;
  padding: 11px 12px;
  border-radius: 7px;
  color: #53627b;
  background: #f5f7fb;
  font-size: 12px;
  line-height: 1.65;
}

.wx-scan-status b {
  display: block;
  color: var(--ink);
  font-size: 12.5px;
}

.wx-scan-status p {
  margin: 3px 0 0;
}

.wx-scan-status.ok {
  color: #087f61;
  background: #eaf9f4;
}

.wx-scan-status.error {
  color: #a23a32;
  background: #fff1ef;
}

@media (max-width: 520px) {
  .wx-bind-methods {
    grid-template-columns: 1fr;
  }
}
