/* Murvio referral screen. Direction follows Unslop by Damir Sokolovsky
   (@heydamir), CC BY 4.0, with Murvio's violet brand retained. */
#screen-referrals > .content-card {
  margin-bottom: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
}
#screen-referrals .referral-link-card h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
}
#screen-referrals #referral-eligibility {
  max-width: 38ch;
  margin: 8px 0 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
#screen-referrals .referral-link-card label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
#screen-referrals .referral-link-field {
  gap: 8px;
  margin: 0;
  padding: 4px 4px 4px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--raised);
}
#screen-referrals .referral-link-field input {
  padding: 8px 0;
  font-size: 14px;
  line-height: 1.4;
}
#screen-referrals .referral-link-field .icon-button {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}
#screen-referrals .referral-link-field .icon-button:focus-visible {
  outline-offset: 2px;
}
#screen-referrals #referral-first-start {
  margin: 8px 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
#screen-referrals #share-referral,
#screen-referrals #spend-balance {
  min-height: 48px;
  margin-top: 0;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
}
#screen-referrals #referral-result:empty {
  margin: 0;
}
#screen-referrals .wallet-card .section-heading {
  margin: 0 0 12px;
}
#screen-referrals .wallet-card h2,
#screen-referrals .referral-reward h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}
#screen-referrals .wallet-value {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.15;
}
#screen-referrals .wallet-card > p:not(.wallet-value) {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
#screen-referrals #spend-balance {
  margin-top: 16px;
}
#screen-referrals .referral-stats {
  gap: 16px;
  margin-top: 16px;
}
#screen-referrals .referral-stats > div + div {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}
#screen-referrals .referral-stats span {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}
#screen-referrals .referral-stats strong {
  color: var(--text);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
#screen-referrals .referral-history h2 {
  font-size: 18px;
  font-weight: 600;
}
#screen-referrals .referral-history-empty {
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  justify-items: start;
  gap: 12px;
  padding: 20px 0 4px;
  text-align: left;
}
#screen-referrals .referral-empty-icon {
  width: 32px;
  height: 32px;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
}
#screen-referrals .referral-empty-icon .icon {
  width: 24px;
  height: 24px;
}
#screen-referrals .referral-history-empty p {
  margin: 0;
  max-width: none;
  font-size: 14px;
  line-height: 1.5;
}
#screen-referrals .referral-how summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
}
#screen-referrals .referral-how summary::-webkit-details-marker {
  display: none;
}
#screen-referrals .referral-how summary h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}
#screen-referrals .referral-how[open] summary {
  margin-bottom: 20px;
}
#screen-referrals .referral-how[open] summary .chevron {
  transform: rotate(90deg);
}
#screen-referrals .referral-how .setup-list p,
#screen-referrals .referral-rules > p {
  font-size: 14px;
  line-height: 1.5;
}
#screen-referrals .referral-rules > summary {
  min-height: 44px;
  font-size: 14px;
  font-weight: 500;
}
