/* Align with Luma .abs-actions-addto (wishlist): body 1.4rem text + ~18px shield */
.xm-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  padding: 0.25rem 0.65rem;
  border: 1px solid transparent;
  border-radius: 0.4rem;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.4;
  vertical-align: middle;
  cursor: default;
}
.xm-badge__shield {
  flex: 0 0 auto;
  width: 1.8rem;
  height: 1.8rem;
  display: block;
  overflow: visible;
  /* Do not set fill here — per-tier SVG paths carry their own fill/stroke. */
  filter: drop-shadow(0 0.05rem 0.05rem rgba(0, 0, 0, 0.12));
}
.xm-badge__label {
  white-space: nowrap;
}
.xm-badge__kyc {
  margin-left: 0.25rem;
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: underline;
}
/* Product detail: sit like wishlist / compare row */
.product-info-main > .xm-badge {
  margin: 0 0 1.2rem;
}
.xm-badge__tip {
  display: none;
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.35rem);
  z-index: 5;
  min-width: 16rem;
  max-width: 24rem;
  padding: 0.5rem 0.65rem;
  border-radius: 0.25rem;
  background: #1a1a1a;
  color: #fff;
  font-size: 1.1rem;
  line-height: 1.4;
  white-space: normal;
  box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.2);
}
.xm-badge:hover .xm-badge__tip,
.xm-badge:focus .xm-badge__tip,
.xm-badge:focus-within .xm-badge__tip {
  display: block;
}
.xm-badge--l0 {
  color: #6b7280;
  background: #f3f4f6;
}
.xm-badge--l1 {
  color: #1e40af;
  background: #eff6ff;
  border-color: #bfdbfe;
}
.xm-badge--l2 {
  color: #0f172a;
  background: #fff;
  border-color: #cbd5e1;
}
.xm-badge--l2 .xm-badge__shield {
  filter: drop-shadow(0 0.05rem 0.06rem rgba(15, 23, 42, 0.18));
}
.xm-badge--l3 {
  color: #b45309;
  background: #fffbeb;
  border-color: #fde68a;
}
.xm-badge--compact {
  gap: 0.35rem;
  padding: 0.12rem 0.45rem;
  font-size: 1.2rem;
  letter-spacing: normal;
}
.xm-badge--compact .xm-badge__shield {
  width: 1.8rem;
  height: 1.8rem;
}
.xm-badge--compact .xm-badge__label {
  font-size: 1.2rem;
}
.xm-badge-trial {
  display: inline-block;
  margin-left: 0.5rem;
  color: #374151;
  font-size: 1.2rem;
}
/* Account edit: single read-only card (no marketing .xm-card hover) */
.xm-reputation-account {
  margin: 2.4rem 0 1.6rem;
  padding: 1.6rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1.6rem;
  box-shadow: none;
}
.xm-reputation-account__title {
  margin: 0 0 1.2rem;
  padding: 0 0 1.2rem;
  border-bottom: 1px solid #e5e7eb;
  color: #111827;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
}
.xm-reputation-account__list {
  margin: 0;
  padding: 0;
}
.xm-reputation-account__row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0 0 1.2rem;
}
.xm-reputation-account__row:last-child {
  margin-bottom: 0;
}
.xm-reputation-account__key {
  margin: 0;
  color: #111827;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.3;
}
.xm-reputation-account__value {
  margin: 0;
  color: #374151;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.4;
}
.xm-reputation-account__trial {
  display: block;
  margin: 1.2rem 0 0;
  padding: 0.8rem 1.2rem;
  background: #f3f4f6;
  border-radius: 0.8rem;
  color: #374151;
  font-size: 1.2rem;
  line-height: 1.4;
}
.xm-reputation-account__note,
.xm-reputation-account__disclaimer {
  margin: 0.8rem 0 0;
  color: #6b7280;
  font-size: 1.1rem;
  line-height: 1.4;
}
@media (min-width: 768px) {
  .xm-reputation-account {
    padding: 2.4rem;
    box-shadow: 0 0.8rem 3rem rgba(0, 0, 0, 0.07);
  }
  .xm-reputation-account__row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
  }
  .xm-reputation-account__key {
    flex: 0 0 auto;
  }
  .xm-reputation-account__value {
    flex: 1 1 auto;
    text-align: right;
  }
}
.xm-badge-list {
  display: block;
  /* 20260913-FE-SPACING-12（宋董拍板 2026-09-13 下午）：目录卡片行距 5px → 12px，
     与 unit-rate.css 同步；取代 20260913-FE-LISTING-01 的 5px 节奏（原裁决作废）。 */
  margin: 12px 0;
}
/* FE-1 listing (Plugin compact badge): full label, not short form. */
.xm-badge-list .xm-badge__label {
  font-size: 1.4rem;
}
/* FE-3 account card: shield as the visual anchor in the dl row. */
.xm-reputation-account__value .xm-badge {
  font-size: 1.5rem;
}
.xm-reputation-account__value .xm-badge__shield {
  width: 2.4rem;
  height: 2.4rem;
}
/* FE-5 · seller order — buyer shield inside Buyer Information */
.xm-reputation-order-buyer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.xm-reputation-order-buyer__label {
  font-weight: 600;
}
.xm-reputation-order-buyer-row {
  margin-top: 0.8rem;
}
@media (max-width: 767px) {
  .xm-badge__tip {
    min-width: 12rem;
    max-width: 80vw;
  }
}
