/* Customer Pulse — My Account referrals. Same tokens as the Peptide Crafters account design,
   self-contained so it looks right whether or not the new account design is switched on. */
.cpr { --cpr-ink:#111111; --cpr-muted:#555555; --cpr-line:#ECECE8; --cpr-line-2:#D6D6D2; --cpr-ground:#F3F3F1; --cpr-accent:#F8C822; --cpr-accent-soft:#FFF6D6; --cpr-plus:#1B6B3A; --cpr-error:#B42318;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; color: var(--cpr-ink); font-size: 15px; line-height: 1.5; display: flex; flex-direction: column; gap: 20px; }
.cpr *, .cpr *::before, .cpr *::after { box-sizing: border-box; }
.cpr a { color: var(--cpr-ink); }
.cpr :focus-visible { outline: 2px solid #1F4FD1; outline-offset: 2px; }
.cpr-title { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; text-transform: none; }
.cpr-h3 { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 700; text-transform: none; letter-spacing: normal; }
.cpr-muted { color: var(--cpr-muted); }
.cpr-small { font-size: 13px; }
.cpr-plus { color: var(--cpr-plus) !important; }

.cpr-hero { background: #111111; color: #FFFFFF; border-radius: 20px; padding: 28px 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.cpr-hero-figs { display: flex; flex-direction: column; gap: 4px; flex: 1 1 240px; }
.cpr-hero-label { font-size: 14px; color: #BDBDBD; font-weight: 500; }
.cpr-hero-num { font-size: 56px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.cpr-hero-worth { font-size: 17px; font-weight: 600; color: var(--cpr-accent); }
.cpr-hero-text { margin: 8px 0 0; font-size: 14px; color: #D0D0D0; max-width: 360px; }
.cpr-share { display: flex; flex-direction: column; gap: 10px; flex: 1 1 340px; min-width: 0; }
.cpr-share-label { font-size: 13px; color: #BDBDBD; font-weight: 500; }
.cpr-share-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cpr-input { flex: 1 1 200px; min-width: 0; min-height: 48px; border-radius: 12px; border: 1px solid #4A4A4A; background: #1C1C1C; color: #FFFFFF; padding: 0 14px; font-family: inherit; font-size: 14px; margin: 0; }
.cpr-input-light { background: #FFFFFF; color: var(--cpr-ink); border-color: var(--cpr-line-2); min-height: 44px; font-size: 13px; }
.cpr-code { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 999px; background: #2A2A2A; color: #FFFFFF; font-weight: 700; letter-spacing: 0.06em; font-size: 14px; }
.cpr-agree { margin: 2px 0 0; font-size: 12px; color: #BDBDBD; }
.cpr-agree a { color: #FFFFFF !important; }

.cpr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px; margin: 0; border-radius: 12px; border: 1px solid transparent; font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1.2; text-decoration: none; text-transform: none; letter-spacing: normal; cursor: pointer; white-space: nowrap; box-shadow: none; }
.cpr-btn-accent { background: var(--cpr-accent); color: #111111 !important; min-height: 48px; padding: 0 22px; font-size: 15px; }
.cpr-btn-accent:hover { background: #FFD84D; }
.cpr-btn-ghost { background: transparent; color: #FFFFFF !important; border-color: #4A4A4A; font-weight: 600; }
.cpr-btn-ghost:hover { border-color: #FFFFFF; }
.cpr-btn-dark { background: #111111; color: #FFFFFF !important; }
.cpr-btn-dark:hover { background: #333333; }
.cpr-btn.is-done { background: var(--cpr-plus); color: #FFFFFF !important; }

.cpr-banner { background: var(--cpr-accent-soft); color: #5A4600; border-radius: 14px; padding: 12px 16px; font-size: 14px; }

.cpr-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cpr-stat { background: #FFFFFF; border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--cpr-ink) !important; }
a.cpr-stat:hover { box-shadow: inset 0 0 0 1px var(--cpr-line-2); }
.cpr-stat-k { font-size: 13px; color: var(--cpr-muted); }
.cpr-stat-v { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.cpr-stat-sub { font-size: 13px; font-weight: 600; color: #5A4600; }
a.cpr-stat .cpr-stat-sub { color: var(--cpr-ink); text-decoration: underline; text-underline-offset: 3px; }

.cpr-card { background: #FFFFFF; border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.cpr-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; }
.cpr-bar { height: 10px; border-radius: 999px; background: #ECECE9; overflow: hidden; }
.cpr-bar > div { height: 10px; border-radius: 999px; background: #111111; }

.cpr-list { list-style: none; margin: 0; padding: 0; }
.cpr-row { display: grid; grid-template-columns: minmax(0, 1fr) 220px 96px; align-items: center; gap: 8px 16px; padding: 14px 0; margin: 0; border-top: 1px solid var(--cpr-line); list-style: none; }
.cpr-row:first-child { border-top: 0; padding-top: 0; }
.cpr-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cpr-row-name { font-weight: 700; }
.cpr-row-meta { font-size: 13px; color: var(--cpr-muted); }
.cpr-row-amt { text-align: right; font-weight: 700; color: var(--cpr-muted); font-variant-numeric: tabular-nums; }
.cpr-pill { display: inline-flex; align-items: center; justify-self: start; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.cpr-pill-ok { background: #E8F3EA; color: #1D5B2C; }
.cpr-pill-info { background: #E6F0FB; color: #0C447C; }
.cpr-pill-warn { background: var(--cpr-accent-soft); color: #5A4600; }
.cpr-pill-bad { background: #FDECEA; color: var(--cpr-error); }
.cpr-pill-mute { background: #ECECE9; color: #444444; }

.cpr-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cpr-step { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; border-top: 3px solid #111111; font-size: 14px; }
.cpr-step strong { font-size: 15px; }
.cpr-step-accent { border-top-color: var(--cpr-accent); }
.cpr-terms p { margin: 0 0 10px; font-size: 14px; color: var(--cpr-muted); }
.cpr-terms p strong { color: var(--cpr-ink); }

/* Dashboard card */
.cpr-dash { background: #FFFFFF; border-radius: 18px; padding: 22px 24px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 18px; box-shadow: inset 0 0 0 2px var(--cpr-accent); margin: 0 0 20px; }
.cpr-dash-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--cpr-accent-soft); display: grid; place-items: center; flex: none; color: #111111; }
.cpr-dash-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 260px; min-width: 0; font-size: 14px; }
.cpr-dash-title { font-size: 18px; font-weight: 800; }
.cpr-dash-line { font-size: 13px; font-weight: 600; margin-top: 4px; }
.cpr-dash-share { display: flex; flex-direction: column; gap: 8px; flex: 0 1 320px; min-width: 0; }
.cpr-link { font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 760px) {
  .cpr-hero { padding: 22px 20px; }
  .cpr-hero-num { font-size: 44px; }
  .cpr-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cpr-card { padding: 20px; }
  .cpr-row { grid-template-columns: minmax(0, 1fr) auto; }
  .cpr-row .cpr-pill { grid-column: 1; grid-row: 2; }
  .cpr-row-amt { grid-column: 2; grid-row: 1; }
  .cpr-steps { grid-template-columns: minmax(0, 1fr); }
  .cpr-share-row .cpr-btn-accent { flex: 1 1 100%; }
}

/* Account sidebar: a proper "invite a colleague" icon for Referrals (the account design's
   icon list has none for it, so it would show a plain circle). Follows the link colour. */
.pca-nav .woocommerce-MyAccount-navigation-link--referrals .pca-ico { background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20a6.5 6.5 0 0 1 13 0'/%3E%3Cpath d='M19 8v6M16 11h6'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20a6.5 6.5 0 0 1 13 0'/%3E%3Cpath d='M19 8v6M16 11h6'/%3E%3C/svg%3E") center / 20px 20px no-repeat; }
.pca-nav .woocommerce-MyAccount-navigation-link--referrals .pca-ico > * { display: none; }

/* Bonus steps: one circle per friend, the gift at the end */
.cpr-goal-line { margin: 0; font-size: 16px; }
.cpr-ms-track { list-style: none; margin: 6px 0 2px; padding: 0; display: flex; align-items: flex-start; }
.cpr-ms { flex: 1 1 0; position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0; min-width: 0; }
.cpr-ms + .cpr-ms::before { content: ""; position: absolute; top: 19px; right: 50%; width: 100%; height: 3px; background: var(--cpr-line-2); z-index: 0; }
.cpr-ms.is-done + .cpr-ms::before, .cpr-ms.is-done::before { background: var(--cpr-ink); }
.cpr-ms-dot { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #FFFFFF; border: 2px solid var(--cpr-line-2); color: var(--cpr-muted); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.cpr-ms.is-done .cpr-ms-dot { background: var(--cpr-ink); border-color: var(--cpr-ink); color: #FFFFFF; }
.cpr-ms.is-next .cpr-ms-dot { border-color: var(--cpr-accent); color: var(--cpr-ink); box-shadow: 0 0 0 4px var(--cpr-accent-soft); }
.cpr-ms.is-goal .cpr-ms-dot { width: 46px; height: 46px; margin-top: -3px; background: var(--cpr-accent); border-color: var(--cpr-accent); color: var(--cpr-ink); }
.cpr-ms.is-goal.is-done .cpr-ms-dot { background: var(--cpr-ink); border-color: var(--cpr-ink); color: var(--cpr-accent); }
.cpr-ms-label { font-size: 12px; color: var(--cpr-muted); text-align: center; white-space: nowrap; }
.cpr-ms.is-goal .cpr-ms-label { color: var(--cpr-ink); font-weight: 800; font-size: 13px; }
.cpr-ms.is-next .cpr-ms-label { color: var(--cpr-ink); font-weight: 600; }
.cpr-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .cpr-ms.is-next .cpr-ms-dot { animation: cpr-pulse 2.4s ease-in-out infinite; }
  @keyframes cpr-pulse { 0%, 100% { box-shadow: 0 0 0 4px var(--cpr-accent-soft); } 50% { box-shadow: 0 0 0 8px var(--cpr-accent-soft); } }
}
@media (max-width: 600px) {
  .cpr-ms-dot { width: 32px; height: 32px; font-size: 13px; }
  .cpr-ms + .cpr-ms::before { top: 15px; }
  .cpr-ms.is-goal .cpr-ms-dot { width: 38px; height: 38px; }
  .cpr-ms:not(.is-goal):not(.is-next) .cpr-ms-label { visibility: hidden; }
}
