.loyalty-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 12%, rgba(211, 167, 99, 0.16), transparent 34%),
    var(--account-card);
}

.loyalty-card::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -48px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(228, 201, 143, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.loyalty-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 8px;
}

.loyalty-heading h2 {
  margin: 0;
}

.loyalty-badge {
  display: inline-grid;
  min-width: 70px;
  min-height: 70px;
  place-items: center;
  border: 1px solid rgba(228, 201, 143, 0.48);
  border-radius: 50%;
  color: var(--account-gold);
  background: rgba(228, 201, 143, 0.07);
  font-size: 24px;
  font-weight: 750;
}

.loyalty-progress {
  height: 10px;
  margin: 22px 0 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #11110f;
  box-shadow: inset 0 0 0 1px var(--account-line);
}

.loyalty-progress > span {
  display: block;
  width: var(--loyalty-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8f6338, var(--account-gold));
}

.loyalty-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--account-muted);
  font-size: 13px;
}

.loyalty-caption strong {
  color: var(--account-text);
}

.order-discount {
  color: var(--account-gold);
}

@media (max-width: 520px) {
  .loyalty-badge {
    min-width: 60px;
    min-height: 60px;
    font-size: 21px;
  }

  .loyalty-caption {
    display: grid;
  }
}
