.cz-marketplace-feature-stage:has(.cz-loyalty-reward) { container-type: inline-size; }

#czLoyaltyTitle span { white-space: nowrap; }

.cz-loyalty-reward {
  position: absolute;
  z-index: 2;
  top: 11.5%;
  left: 1%;
  box-sizing: border-box;
  width: 34.5%;
  max-width: 178px;
  padding: .8em .9em;
  border: 1px solid #ffffff29;
  border-radius: 1.15em;
  background: #201c22;
  box-shadow: 0 10px 24px #17121c42;
  color: #fff;
  font-size: clamp(10px, 2.65cqw, 14px);
  line-height: 1.3;
}

.cz-loyalty-reward strong,
.cz-loyalty-reward span { display: block; }
.cz-loyalty-reward strong { font-weight: 700; }
.cz-loyalty-reward span { margin-top: .32em; color: #ffbbd6; }

@media (prefers-reduced-motion: no-preference) {
  .cz-loyalty-reward { animation: cz-feature-notice-float 4s ease-in-out infinite; }
}

.cz-feature-details__visual--loyalty-rewards { --phone-top: 6%; }
.cz-feature-details__visual--loyalty-rewards .cz-feature-visual__phone { width: 54%; }

.cz-loyalty-settings {
  position: relative;
  container-type: inline-size;
}
.cz-loyalty-settings .cz-marketplace-statusbar {
  background: #0f0f0d;
  color: #f6f4f2;
}
.cz-loyalty-settings .cz-marketplace-island { background: #030303; }

.cz-loyalty-referrals {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 7%;
  color: #242027;
}

.cz-loyalty-referrals__graph {
  --line: #cba2b8;
  --branch-height: clamp(22px, 7.4cqi, 39px);
  display: grid;
  justify-items: center;
  width: min(100%, 420px);
}

.cz-loyalty-referrals__source {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(10px, 3.2cqi, 18px);
  padding: clamp(12px, 4cqi, 21px);
  border: 1px solid #ece3e8;
  border-radius: clamp(16px, 4.6cqi, 24px);
  background: #fff;
  box-shadow: 0 12px 25px #48304713;
}

.cz-loyalty-referrals__source::after {
  position: absolute;
  top: 100%;
  left: 50%;
  height: var(--branch-height);
  border-left: 1px solid var(--line);
  content: "";
}

.cz-loyalty-referrals__avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: clamp(35px, 10cqi, 51px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #f7e3ee;
  color: #843451;
  font-size: clamp(12px, 3.3cqi, 16px);
  font-weight: 700;
}

.cz-loyalty-referrals__source strong {
  display: block;
  font-size: clamp(18px, 4.5cqi, 24px);
  line-height: 1.2;
}

.cz-loyalty-referrals__status {
  display: flex;
  align-items: center;
  gap: .32em;
  margin-top: .32em;
  color: #2d654c;
  font-size: clamp(12px, 3.5cqi, 15px);
  font-weight: 650;
}
.cz-loyalty-referrals__status svg { width: 1.08em; height: 1.08em; }

.cz-loyalty-referrals__contacts {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 2.5cqi;
  width: 100%;
  margin: calc(2 * var(--branch-height)) 0 0;
  padding: 0;
  list-style: none;
}
.cz-loyalty-referrals__contacts::before {
  position: absolute;
  top: calc(-1 * var(--branch-height));
  inset-inline: calc((100% - 5cqi) / 6);
  border-top: 1px solid var(--line);
  content: "";
}

.cz-loyalty-referrals__contacts li {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: .55em;
  min-width: 0;
  padding: .9em .45em;
  border: 1px solid #e9e4e7;
  border-radius: clamp(12px, 3.5cqi, 18px);
  background: #fff;
  box-shadow: 0 6px 14px #4830470d;
  text-align: center;
  font-size: clamp(12px, 3.35cqi, 15px);
  line-height: 1.25;
  text-wrap: balance;
}
.cz-loyalty-referrals__contacts li::before {
  position: absolute;
  bottom: 100%;
  left: 50%;
  height: var(--branch-height);
  border-left: 1px solid var(--line);
  content: "";
}

.cz-loyalty-referrals__contacts li:first-child .cz-loyalty-referrals__avatar { background: #e7f0ff; color: #33548d; }
.cz-loyalty-referrals__contacts li:nth-child(2) .cz-loyalty-referrals__avatar { background: #e6f3ec; color: #35694e; }
.cz-loyalty-referrals__contacts li:nth-child(3) .cz-loyalty-referrals__avatar { background: #f3eafa; color: #644481; }
