/* Match Magento .action.primary (Contact Seller): 1.4rem, padding 7px 15px,
   line-height @line-height__base. Shield stays 1.8rem so it fits the 20px line box. */
.xm-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  gap: 0.5rem;
  max-width: 100%;
  padding: 7px 15px;
  border: 1px solid transparent;
  border-radius: 0.4rem;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.428571429;
  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-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).
   Page body is white; card uses @color-background-card-gray (#F0F2F5). */
.xm-reputation-account {
  margin: 2.4rem 0 1.6rem;
  padding: 1.6rem;
  background: #F0F2F5;
  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;
}
/* 20261118：目录列表信誉盾对齐同卡片 Add to Cart。
   文字 13px；外框 35px（border-box，含 1px 边框）。
   左内边距 10px（右内边距仍用 .xm-badge 的 15px）；盾标与文字间隙仍是 gap 0.5rem。
   详情页、账户、订单、卖家资料仍走 .xm-badge（1.4rem，自然高度 36px，左右内边距 15px）。
   line-height: 1 与 Luma .product-item .tocart 相同，13px 文字落在 35px 框内。 */
.xm-badge-list .xm-badge {
  height: 35px;
  padding-left: 10px;
  font-size: 13px;
  line-height: 1;
}
/* 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;
  }
}
