/* === My account =============================================================
   One number first — what the member has — then everything else.
   ========================================================================== */

.icrt-account { padding: 2rem 0 3.5rem; }
.icrt-account__head { margin-bottom: 1.75rem; }

.icrt-account__eyebrow {
  margin: 0 0 .5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--icrt-accent);
}

.icrt-account__title { margin: 0; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.1; letter-spacing: -.02em; }

.icrt-account__cols { display: grid; gap: 2rem; align-items: start; max-width: 74rem; }

@media (min-width: 64rem) {
  .icrt-account__cols { grid-template-columns: minmax(0, 1fr) 21rem; }
}

/* Past the point where two columns stop growing usefully, the events list gets
   its own column rather than letting the ledger card stretch to 1300px to hold
   four short rows. */
@media (min-width: 90rem) {
  .icrt-account__cols {
    max-width: none;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr) 21rem;
  }
}

.icrt-account__events {
  min-width: 0;
  padding: 1.15rem 1.25rem 1.35rem;
  border-radius: .9rem;
  background: var(--icrt-paper);
  border: 1px solid var(--icrt-line);
}

.icrt-elist { list-style: none; margin: 0; padding: 0; }

.icrt-elist__item {
  display: grid;
  gap: .2rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--icrt-line);
}

.icrt-elist__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--icrt-accent);
}

/* The venue is context, not the headline the time is. */
.icrt-elist__venue {
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: none;
  color: var(--icrt-muted);
}

.icrt-elist__item:last-child { border-bottom: 0; }

.icrt-elist__link {
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.35;
  color: var(--icrt-ink);
  text-decoration: none;
}

.icrt-elist__link:hover { color: var(--icrt-accent); }

.icrt-elist__when {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--icrt-muted);
}

.icrt-elist__note {
  margin: 1rem 0 0;
  display: grid;
  gap: .5rem;
  justify-items: start;
  padding-top: .9rem;
  border-top: 1px solid var(--icrt-line);
  font-size: .82rem;
  line-height: 1.55;
  color: var(--icrt-ink-soft);
}

.icrt-account__main { min-width: 0; }
.icrt-account__side { display: grid; gap: 1.25rem; min-width: 0; align-content: start; }

/* --- the balance ----------------------------------------------------------
   The one thing a member came to see, so it is given the weight of a headline
   rather than a line of body copy. */

.icrt-account .cw-account__balance {
  display: block;
  font-size: clamp(2.6rem, 6vw, 4rem) !important;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--icrt-accent);
  font-variant-numeric: tabular-nums;
}

.icrt-account .cw-account {
  /* The plugin caps itself at 30rem, which is right for a sidebar widget and
     wrong for the main column of the page it is the whole point of. */
  max-width: none;
  padding: clamp(1.3rem, 3vw, 1.9rem);
  border-radius: 1rem;
  background: var(--icrt-paper);
  border: 1px solid var(--icrt-line);
}

.icrt-account .cw-account__history { list-style: none; margin: 1.5rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid var(--icrt-line); }

.icrt-account .cw-account__entry {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--icrt-line);
  font-size: .92rem;
}

.icrt-account .cw-account__entry:last-child { border-bottom: 0; }

.icrt-account .cw-account__delta {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--icrt-accent);
}

.icrt-account .cw-account__reason { color: var(--icrt-ink-soft); }

/* An unverified account cannot earn, and the page should say so plainly. */
.icrt-account .cw-account__unverified {
  display: block;
  margin-top: 1rem;
  border-radius: .5rem;
}

.icrt-account .cw-account__login-required {
  padding: 1.4rem 1.2rem;
  background: var(--icrt-mist);
  border-radius: .8rem;
  color: var(--icrt-ink-soft);
}

/* --- side panels ----------------------------------------------------------- */

.icrt-apanel {
  padding: 1.15rem 1.25rem 1.35rem;
  border-radius: .9rem;
  background: var(--icrt-mist);
  border: 1px solid var(--icrt-line);
}

.icrt-apanel__head {
  margin: 0 0 .8rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--icrt-muted);
  padding-bottom: .5rem;
  border-bottom: 0;
}

.icrt-apanel__list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .45rem; }
.icrt-apanel__list li { font-size: .9rem; color: var(--icrt-ink-soft); padding-left: 1rem; position: relative; }
.icrt-apanel__list li::before { content: "+"; position: absolute; left: 0; color: var(--icrt-accent); font-weight: 700; }

.icrt-apanel__body { margin: 0 0 .9rem; font-size: .9rem; line-height: 1.6; color: var(--icrt-ink-soft); }
.icrt-apanel__link { font-size: .85rem; font-weight: 700; color: var(--icrt-accent); text-decoration: none; }
.icrt-apanel__link:hover { text-decoration: underline; }

/* --- WooCommerce's own account area ---------------------------------------
   Woo floats the nav into a 30% gutter and the content into a 68% one. Inside
   our main column that left the nav pills stacked two-abreast in a 214px strip
   with the content riding up beside them. Both floats are dropped and the nav
   becomes a full-width row of pills above its content. */

.icrt-account .woocommerce { margin-top: 2rem; }

.icrt-account .woocommerce-MyAccount-navigation,
.icrt-account .woocommerce-MyAccount-content {
  float: none;
  width: 100%;
  margin: 0;
}

.icrt-account .woocommerce-MyAccount-content {
  margin-top: 1rem;
  padding: clamp(1.2rem, 3vw, 1.6rem);
  border-radius: 1rem;
  background: var(--icrt-mist);
  border: 1px solid var(--icrt-line);
  line-height: 1.65;
}

.icrt-account .woocommerce-MyAccount-content > :first-child { margin-top: 0; }
.icrt-account .woocommerce-MyAccount-content > :last-child { margin-bottom: 0; }

.icrt-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }

.icrt-account .woocommerce-MyAccount-navigation a {
  display: inline-block;
  padding: .4rem .85rem;
  border-radius: 999px;
  background: var(--icrt-mist);
  font-size: .86rem;
  font-weight: 600;
  color: var(--icrt-ink-soft);
  text-decoration: none;
}

.icrt-account .woocommerce-MyAccount-navigation a:hover { background: var(--icrt-accent); color: #fff; }

.icrt-account .woocommerce-MyAccount-navigation .is-active a { background: var(--icrt-accent); color: #fff; }
