/* =====================================================================
   Edufost Reports Portal — dashboard styles

   Written against the theme's design-system custom properties, with
   fallbacks so the portal still looks deliberate under any other theme.
   ===================================================================== */

.edufost-portal {
  --p-ink: var(--ink, #0f1f16);
  --p-muted: var(--muted, #5a6a61);
  --p-line: var(--line, #dfe7e1);
  --p-green: var(--g700, #15803d);
  --p-deep: var(--g900, #14532d);
  --p-tint: var(--g50, #f0fdf4);
  --p-radius: var(--r, 18px);
  color: var(--p-ink);
  display: grid;
  gap: clamp(24px, 4vw, 40px);
}

.portal-head {
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: flex-start; justify-content: space-between;
}
.portal-head h2 { margin: 4px 0 0; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.02em; }
.portal-head__meta { margin: 8px 0 0; font-size: 14px; color: var(--p-muted); }
.portal-head__meta strong { color: var(--p-ink); margin-left: 6px; }

.portal-section { display: grid; gap: 16px; }
.portal-section > h3 { font-size: 20px; margin: 0; letter-spacing: -.02em; }
.portal-subhead { font-size: 16px; margin: 24px 0 10px; }

.portal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }

.portal-card {
  background: #fff; border: 1px solid var(--p-line);
  border-radius: var(--p-radius); padding: 24px;
}
.portal-card h3, .portal-card h4 { margin: 0 0 14px; font-size: 17px; }
.portal-card--center { text-align: center; max-width: 560px; margin-inline: auto; }
.portal-card--empty { color: var(--p-muted); }

.portal-note {
  margin: 0; padding: 12px 16px; border-radius: 12px;
  font-size: 14px; background: var(--p-tint); border: 1px solid rgba(22, 163, 74, .25);
}
.portal-note--warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.portal-note--ok { background: var(--p-tint); border-color: rgba(22, 163, 74, .3); color: var(--p-deep); }

.portal-reports { display: grid; gap: 16px; }

.portal-report {
  background: #fff; border: 1px solid var(--p-line);
  border-radius: var(--p-radius); padding: 22px 24px;
}
.portal-report__head {
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: flex-start; justify-content: space-between;
}
.portal-report h4 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.portal-report__meta {
  margin: 6px 0 0; font-size: 13px; color: var(--p-muted);
  display: flex; flex-wrap: wrap; gap: 14px;
}
.portal-report__pending { margin: 14px 0 0; font-size: 14px; color: var(--p-muted); }

.portal-status {
  font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px;
  background: var(--p-tint); color: var(--p-green); white-space: nowrap;
}
.portal-status--processing, .portal-status--analysis { background: #fffbeb; color: #b45309; }
.portal-status--counseled { background: #eff6ff; color: #1d4ed8; }

.portal-files { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.portal-files li {
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: space-between;
  padding: 12px 14px; border: 1px solid var(--p-line); border-radius: 12px;
}
.portal-files__info { display: grid; gap: 2px; min-width: 0; }
.portal-files__info strong { font-size: 14.5px; word-break: break-word; }
.portal-files__info small { font-size: 12.5px; color: var(--p-muted); }
.portal-files__info em { font-style: normal; color: var(--p-green); font-weight: 700; margin-left: 6px; }
.portal-files__note { color: var(--p-muted); }

.portal-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--p-line); border-radius: var(--p-radius); overflow: hidden; }
.portal-table th, .portal-table td { padding: 12px 16px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--p-line); }
.portal-table th { background: var(--p-tint); font-weight: 700; }
.portal-table tr:last-child td { border-bottom: 0; }

.portal-form { display: grid; gap: 14px; }
.portal-form p { margin: 0; display: grid; gap: 6px; }
.portal-form label { font-size: 13px; font-weight: 600; }
.portal-form small { font-size: 12px; color: var(--p-muted); }
.portal-form input[type="text"],
.portal-form input[type="email"],
.portal-form input[type="password"],
.portal-form input[type="file"],
.portal-form select {
  width: 100%; padding: 11px 14px; font: inherit; font-size: 15px;
  border: 1px solid var(--p-line); border-radius: 12px;
  background: var(--paper-2, #f4f8f5); color: inherit; outline: none;
}
.portal-form input:focus, .portal-form select:focus {
  border-color: var(--g600, #16a34a); box-shadow: 0 0 0 3px rgba(22, 163, 74, .15);
}

.portal-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 18px; }
.portal-link { font-weight: 700; color: var(--p-green); }

/* Fallback button styling for themes without the design system. */
.edufost-portal .btn:not([class*="btn--"]) {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--p-green);
  background: var(--p-green); color: #fff; font-weight: 700; cursor: pointer;
}

@media (max-width: 640px) {
  .portal-files li { flex-direction: column; align-items: stretch; }
  .portal-table { display: block; overflow-x: auto; }
}

/* =====================================================================
   Portal modules — kit journey, meetings, passes, partner, operations

   Everything below inherits the --p-* tokens defined on .edufost-portal
   above, except the pass, which also renders on its own standalone page
   with no portal wrapper around it and therefore repeats them.
   ===================================================================== */

/* --- Jump navigation ------------------------------------------------- */

.portal-nav {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 10px; margin: 0;
  background: #fff; border: 1px solid var(--p-line); border-radius: 999px;
  position: sticky; top: 12px; z-index: 5;
  overflow-x: auto; scrollbar-width: none;
}
.portal-nav::-webkit-scrollbar { display: none; }
.portal-nav a {
  flex: 0 0 auto;
  padding: 8px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  color: var(--p-muted); white-space: nowrap;
}
.portal-nav a:hover, .portal-nav a:focus-visible { background: var(--p-tint); color: var(--p-deep); }

/* Anchors would otherwise land under the sticky bar. */
.portal-section { scroll-margin-top: 84px; }

/* --- Kit journey ----------------------------------------------------- */

.kit {
  background: #fff; border: 1px solid var(--p-line);
  border-radius: var(--p-radius); padding: clamp(18px, 3vw, 26px);
}
.kit + .kit { margin-top: 16px; }

.kit__head {
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: center; justify-content: space-between;
  padding-bottom: 18px; border-bottom: 1px solid var(--p-line);
}
.kit__title { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.kit__meta { margin: 4px 0 0; font-size: 13.5px; color: var(--p-muted); display: flex; flex-wrap: wrap; gap: 8px; }
.kit__ref {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; background: var(--p-tint); color: var(--p-deep);
  padding: 2px 8px; border-radius: 6px;
}

.kit__progress { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.kit__bar { flex: 1; height: 8px; border-radius: 999px; background: var(--p-line); overflow: hidden; }
.kit__bar > span { display: block; height: 100%; background: var(--p-green); border-radius: 999px; }
.kit__pct { font-size: 13px; font-weight: 700; color: var(--p-deep); }

.kit__steps { list-style: none; margin: 0; padding: 22px 0 0; display: grid; gap: 0; }
.kit__step { display: grid; grid-template-columns: 26px 1fr; gap: 14px; position: relative; padding-bottom: 22px; }
.kit__step:last-child { padding-bottom: 0; }

/* The connecting line, drawn from each dot down to the next. */
.kit__step:not(:last-child)::before {
  content: ""; position: absolute; left: 12px; top: 20px; bottom: 2px;
  width: 2px; background: var(--p-line);
}
.kit__step--done:not(:last-child)::before { background: var(--p-green); }

.kit__dot {
  width: 20px; height: 20px; border-radius: 50%; margin-top: 1px;
  border: 2px solid var(--p-line); background: #fff; position: relative; z-index: 1;
}
.kit__step--done .kit__dot { border-color: var(--p-green); background: var(--p-green); }
.kit__step--done .kit__dot::after {
  content: ""; position: absolute; inset: 0;
  background: no-repeat center/10px 8px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l2.5 2.5L9 1' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.kit__step--now .kit__dot { border-color: var(--p-green); box-shadow: 0 0 0 4px rgba(21, 128, 61, .15); }

.kit__label { margin: 0; font-weight: 700; font-size: 15px; }
.kit__step--todo .kit__label { color: var(--p-muted); font-weight: 600; }
.kit__internal {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--p-muted); background: var(--p-line); padding: 2px 6px; border-radius: 4px; margin-left: 6px;
}
.kit__when { margin: 2px 0 0; font-size: 13px; color: var(--p-muted); }
.kit__hint { margin: 4px 0 0; font-size: 14px; color: var(--p-muted); max-width: 56ch; }
.kit__waiting { margin: 4px 0 0; font-size: 13.5px; color: var(--p-muted); font-style: italic; }

.kit__fields { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.kit__fields > div { display: grid; gap: 1px; }
.kit__fields dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--p-muted); }
.kit__fields dd { margin: 0; font-size: 14px; font-weight: 600; }

.kit__form {
  margin: 12px 0 0; padding: 14px; background: var(--p-tint);
  border: 1px solid var(--p-line); border-radius: 12px;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end;
}
.kit__form .form__row { margin: 0; display: grid; gap: 5px; flex: 1 1 170px; min-width: 0; }
.kit__form label { font-size: 12px; font-weight: 700; color: var(--p-deep); }
.kit__form input, .kit__form select {
  width: 100%; padding: 9px 12px; font-size: 14px;
  border: 1px solid var(--p-line); border-radius: 9px; background: #fff; color: inherit;
}
.kit__form .form__actions { margin: 0; flex: 0 0 auto; }

/* --- Meetings -------------------------------------------------------- */

.portal-sub { margin: 20px 0 10px; font-size: 15px; letter-spacing: -.01em; }
.portal-sub:first-child { margin-top: 0; }

.appt-list { display: grid; gap: 10px; }
.appt {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  background: #fff; border: 1px solid var(--p-line); border-radius: 14px; padding: 14px 16px;
}
.appt__date {
  flex: 0 0 auto; width: 54px; text-align: center;
  background: var(--p-tint); border-radius: 10px; padding: 8px 0;
}
.appt__day { display: block; font-size: 20px; font-weight: 800; line-height: 1; color: var(--p-deep); }
.appt__mon { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--p-green); }
.appt__body { flex: 1 1 180px; min-width: 0; }
.appt__kind { margin: 0; font-weight: 700; font-size: 15px; }
.appt__meta { margin: 2px 0 0; font-size: 13.5px; color: var(--p-muted); }
.appt__actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.appt__actions form { margin: 0; }

.slot-group + .slot-group { margin-top: 18px; }
.slot-group__title { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--p-deep); }
.slot-row { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { margin: 0; }
.slot__btn {
  display: grid; gap: 1px; text-align: left; cursor: pointer;
  padding: 10px 14px; background: #fff; color: inherit;
  border: 1px solid var(--p-line); border-radius: 12px;
  font: inherit; transition: border-color .15s, background .15s;
}
.slot__btn:hover, .slot__btn:focus-visible { border-color: var(--p-green); background: var(--p-tint); }
.slot__date { font-size: 12px; color: var(--p-muted); }
.slot__time { font-size: 15px; font-weight: 700; }
.slot__who { font-size: 12px; color: var(--p-muted); }

.pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; background: var(--p-line); color: var(--p-muted);
}
.pill--booked { background: var(--p-tint); color: var(--p-deep); }

/* --- Event passes ---------------------------------------------------- */

.pass-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }

.pass {
  --p-ink: var(--ink, #0f1f16);
  --p-muted: var(--muted, #5a6a61);
  --p-line: var(--line, #dfe7e1);
  --p-green: var(--g700, #15803d);
  --p-deep: var(--g900, #14532d);
  --p-tint: var(--g50, #f0fdf4);
  background: #fff; border: 1px solid var(--p-line); border-radius: 18px;
  padding: clamp(18px, 4vw, 28px); color: var(--p-ink);
  max-width: 460px; margin-inline: auto;
}
.pass--pending { border-style: dashed; }
.pass--cancelled { opacity: .65; }
.pass__head { text-align: center; padding-bottom: 16px; border-bottom: 1px dashed var(--p-line); }
.pass__title { margin: 4px 0 0; font-size: clamp(19px, 3vw, 24px); letter-spacing: -.02em; }
.pass__when { margin: 6px 0 0; font-size: 14px; color: var(--p-muted); }

.pass__meta { margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: center; }
.pass__meta > div { text-align: center; }
.pass__meta dt { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--p-muted); }
.pass__meta dd { margin: 2px 0 0; font-size: 15px; font-weight: 700; }

.pass__qr { margin: 20px 0 0; text-align: center; }
.pass__qr svg { border: 1px solid var(--p-line); border-radius: 12px; padding: 8px; background: #fff; }
.pass__hint, .pass__venue, .pass__code { margin: 10px 0 0; font-size: 13.5px; color: var(--p-muted); text-align: center; }
.pass__join { margin: 20px 0 0; text-align: center; }
.pass__checked {
  margin: 16px 0 0; text-align: center; font-size: 13.5px; font-weight: 700;
  color: var(--p-deep); background: var(--p-tint); border-radius: 10px; padding: 8px 12px;
}
.pass__checkin { margin: 16px 0 0; text-align: center; }

.pass--compact { padding: 18px; max-width: none; }
.pass--compact .pass__title { font-size: 17px; }
.pass--compact .pass__meta { gap: 8px 16px; }

/* --- Partner --------------------------------------------------------- */

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat {
  background: #fff; border: 1px solid var(--p-line); border-radius: 14px;
  padding: 16px 18px; display: grid; gap: 2px;
}
.stat__num { font-size: clamp(24px, 3vw, 30px); font-weight: 800; line-height: 1.1; color: var(--p-deep); }
.stat__label { font-size: 13px; font-weight: 600; color: var(--p-muted); }
.stat__note { font-size: 11.5px; color: var(--p-muted); }

.partner-card__row { display: flex; flex-wrap: wrap; gap: 14px 32px; }
.partner-card__label { margin: 0; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--p-muted); }
.partner-card__value { margin: 3px 0 0; font-size: 16px; font-weight: 700; }
.partner-card__code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; }
.partner-card__link { margin: 18px 0 0; display: grid; gap: 6px; }
.partner-card__link label { font-size: 13px; color: var(--p-muted); }
.partner-card__link input {
  width: 100%; padding: 10px 14px; font-size: 14px;
  border: 1px solid var(--p-line); border-radius: 10px; background: var(--p-tint); color: inherit;
}
.portal-table td.num, .portal-table th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* --- Operations queue and activity feed ------------------------------ */

.queue-group + .queue-group { margin-top: 22px; }
.queue-count {
  display: inline-block; margin-left: 8px; padding: 1px 9px; border-radius: 999px;
  font-size: 12px; background: var(--p-green); color: #fff; vertical-align: middle;
}
.queue-item {
  background: #fff; border: 1px solid var(--p-line); border-radius: 14px;
  padding: 14px 16px; display: grid; gap: 10px;
}
.queue-item + .queue-item { margin-top: 10px; }
.queue-item__who { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; font-size: 13.5px; color: var(--p-muted); }
.queue-item__who strong { font-size: 15px; color: var(--p-ink); }
.queue-item .kit__form { margin: 0; }

.feed {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 1px;
  background: var(--p-line); border: 1px solid var(--p-line);
  border-radius: 14px; overflow: hidden;
}
.feed__item { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 11px 16px; background: #fff; font-size: 14px; }
.feed__type {
  flex: 0 0 auto; min-width: 78px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--p-green);
}
.feed__what { flex: 1 1 240px; min-width: 0; }
.feed__what a { color: inherit; }
.feed__when { flex: 0 0 auto; font-size: 12.5px; color: var(--p-muted); }

/* --- Registration and partner application forms ---------------------- */

.event-register { margin: 32px 0 0; }
/*
 * Three cards of equal height, with the button on the same line across all
 * three. Before this each card shrank to its own content: Co-Brand has no
 * reward-points block so its price sat higher than the other two, the cards
 * ended at three different depths, and the apply buttons stepped down the
 * page like a staircase. Comparing prices meant comparing things that were
 * not level with each other.
 */
.tier-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px; margin: 0 0 32px; align-items: stretch;
}
.tier {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 28px 24px; background: #fff;
  border: 1px solid var(--p-line); border-radius: var(--p-radius);
}
/* The button sits at the bottom whatever the card above it holds. */
.tier__pick { margin-top: auto; padding-top: 4px; }
/* The margin variant: words, not a figure, so it is sized to read as text. */
.tier__points--margin .tier__points-num {
  font-size: 15px; line-height: 1.35; letter-spacing: -.01em; flex: 0 0 auto;
}
.tier--featured {
  border-color: var(--p-green); border-width: 2px;
  box-shadow: 0 18px 40px -26px rgba(21, 128, 61, .55);
}
.tier__flag {
  position: absolute; top: -11px; left: 24px; margin: 0;
  padding: 3px 12px; border-radius: 999px;
  background: var(--p-deep); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.tier__head { display: grid; gap: 6px; }
.tier__name {
  margin: 0; font-family: var(--font-display, inherit);
  font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--p-deep);
}
.tier__summary { margin: 0; font-size: 14px; line-height: 1.6; color: var(--p-muted); }

.tier__fee {
  margin: 0; padding: 16px 0; display: grid; gap: 3px;
  border-top: 1px solid var(--p-line); border-bottom: 1px solid var(--p-line);
}
.tier__amount {
  font-family: var(--font-display, inherit); font-size: 34px; font-weight: 800;
  line-height: 1.05; letter-spacing: -.03em; color: var(--p-deep);
}
.tier__term { font-size: 12.5px; font-weight: 600; color: var(--p-muted); }

.tier__points {
  margin: 0; display: flex; align-items: baseline; gap: 9px;
  padding: 12px 14px; border-radius: 12px; background: var(--p-tint);
}
.tier__points-num {
  font-family: var(--font-display, inherit); font-size: 22px; font-weight: 800;
  line-height: 1; color: var(--p-green); flex: 0 0 auto;
}
.tier__points-label { font-size: 12.5px; line-height: 1.5; color: var(--p-deep); }

.tier__terms { margin: 0; display: grid; gap: 10px; }
.tier__term-row { display: grid; gap: 2px; }
.tier__term-row dt {
  font-size: 11px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--p-green);
}
.tier__term-row dd { margin: 0; font-size: 13px; line-height: 1.55; color: var(--p-ink); }

.tier__included {
  margin: 4px 0 -6px; font-size: 11px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; color: var(--p-green);
}
.tier__benefits { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.tier__benefits li {
  position: relative; padding-left: 22px;
  font-size: 13px; line-height: 1.55; color: var(--p-ink);
}
.tier__benefits li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--p-green); font-weight: 700; font-size: 13px;
}
.tier__pick .btn { width: 100%; justify-content: center; }
/*
 * Fallbacks on every colour here. This rule sets white text, so if the
 * variable is ever missing the background falls away and the result is white
 * on white — a button that is there, is clickable, and cannot be seen. A
 * failure that silent is worth two extra words.
 */
.tier--featured .tier__pick .btn {
  background: var(--p-deep, #14532d);
  border-color: var(--p-deep, #14532d);
  color: #fff;
}
.tier--featured .tier__pick .btn:hover {
  background: var(--p-green, #15803d); border-color: var(--p-green, #15803d);
}

@media (max-width: 520px) {
  .tier { padding: 22px 18px; }
  .tier__amount { font-size: 30px; }
}

.form--partner .form__grid,
.form--register .form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.form--partner .form__row,
.form--register .form__row { margin: 0; display: grid; gap: 6px; }
.form--partner label, .form--register label { font-size: 13px; font-weight: 600; }
.form--partner input, .form--partner select, .form--partner textarea,
.form--register input, .form--register select {
  width: 100%; padding: 11px 14px; font-size: 15px; font-family: inherit;
  border: 1px solid var(--line, #dfe7e1); border-radius: 10px; background: #fff; color: inherit;
}
.form--partner .form__row--full { margin-top: 14px; }
.form--register .form__row--narrow { max-width: 130px; }
/* Consent rows are defined once, further down. */
.form__consent { margin: 16px 0 0; font-size: 14px; }
.form--partner .form__actions, .form--register .form__actions { margin: 18px 0 0; }

/* The honeypot has to be reachable by a bot and invisible to everybody
   else, so it is moved out of view rather than display:none — some bots
   skip hidden fields, which would defeat the point. */
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.pass-page { padding: clamp(40px, 8vw, 90px) 0; }

@media (max-width: 640px) {
  .portal-nav { top: 6px; padding: 8px; }
  .kit__form { padding: 12px; }
  .kit__form .form__row { flex-basis: 100%; }
  .appt { padding: 12px; }
  .portal-table { display: block; overflow-x: auto; }
}

@media print {
  .portal-nav, .pass__checkin, .appt__actions { display: none !important; }
  .pass { border: 0; box-shadow: none; }
}

/* --- Availability and booking contact ------------------------------- */

.avail-form {
  background: #fff; border: 1px solid var(--p-line); border-radius: var(--p-radius);
  padding: clamp(16px, 3vw, 22px); margin-top: 4px;
}
.avail-form__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px;
}
.avail-form .form__row { margin: 0; display: grid; gap: 5px; }
.avail-form label { font-size: 12.5px; font-weight: 700; color: var(--p-deep); }
.avail-form small { font-size: 11.5px; color: var(--p-muted); }
.avail-form input, .avail-form select {
  width: 100%; padding: 9px 12px; font-size: 14px; font-family: inherit;
  border: 1px solid var(--p-line); border-radius: 9px; background: #fff; color: inherit;
}
.avail-form__days { margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.avail-form__label { font-size: 12.5px; font-weight: 700; color: var(--p-deep); }
.avail-day {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; color: var(--p-ink); cursor: pointer;
}
.avail-form .form__actions { margin: 18px 0 0; }

.slot-contact {
  background: var(--p-tint); border: 1px solid var(--p-line);
  border-radius: 14px; padding: 16px 18px; margin-bottom: 16px;
}
.slot-contact .login-card__hint { margin-bottom: 12px; }
.slot-contact__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px;
}
.slot-contact .form__row { margin: 0; display: grid; gap: 4px; }
.slot-contact .form__row--wide { grid-column: 1 / -1; }
.slot-contact label { font-size: 12px; font-weight: 700; color: var(--p-deep); }
.slot-contact input {
  width: 100%; padding: 9px 12px; font-size: 14px; font-family: inherit;
  border: 1px solid var(--p-line); border-radius: 9px; background: #fff; color: inherit;
}

@media (max-width: 640px) {
  .avail-form__grid, .slot-contact__grid { grid-template-columns: 1fr; }
}

/* --- Sharing and reward prompts ------------------------------------- */

.share-prompt {
  border: 1px solid var(--p-line); border-left: 4px solid var(--p-green);
  background: var(--p-tint); border-radius: 14px;
  padding: 16px 18px; margin-bottom: 18px;
}
.share-prompt__text { margin: 0 0 6px; font-weight: 700; color: var(--p-deep); font-size: 15px; }
.share-prompt__earn { margin: 0 0 12px; font-size: 13.5px; color: var(--p-muted); }
.share-prompt__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }

.share-card { display: grid; gap: 14px; }
.share-card__label { margin: 0; }
.share-card__label label { font-size: 12.5px; font-weight: 700; color: var(--p-deep); }
.share-card__link {
  width: 100%; padding: 10px 13px; font-size: 13.5px; font-family: inherit;
  border: 1px solid var(--p-line); border-radius: 10px;
  background: #fff; color: var(--p-ink);
}
.share-card__buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.share-card__more { font-size: 13.5px; }
.share-card__more summary { cursor: pointer; font-weight: 700; color: var(--p-deep); }
.share-card__message {
  margin: 10px 0 0; padding: 12px 14px; border-radius: 10px;
  background: var(--p-tint); color: var(--p-ink); font-size: 13.5px; line-height: 1.6;
}
.share-card__terms { margin: 0; font-size: 12.5px; color: var(--p-muted); line-height: 1.6; }

/* The public booking page: the portal shell without a dashboard around it. */
.edufost-portal--public { gap: clamp(20px, 3vw, 28px); }
.edufost-portal--public .slot-contact { margin-bottom: 0; }

/* Passes on the Events page, outside the dashboard shell. */
.events-passes { display: block; margin-top: 8px; }
.events-passes__title {
  font-family: var(--font-display, inherit); font-size: clamp(20px, 3vw, 26px);
  color: var(--p-deep); margin: 0 0 16px;
}
.events-passes__signin, .events-passes__none {
  margin: 0; padding: 16px 18px; border: 1px dashed var(--p-line);
  border-radius: 14px; background: var(--p-tint);
  color: var(--p-muted); font-size: 14.5px;
}
.events-passes__signin a { color: var(--p-green); font-weight: 700; }

/* --- The portal menu and the hub ------------------------------------ */

.portal-menu {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 6px; border: 1px solid var(--p-line); border-radius: 999px;
  background: #fff; margin: 0;
}
.portal-menu__item {
  display: inline-flex; align-items: center; padding: 8px 15px;
  border-radius: 999px; font-size: 13.5px; font-weight: 600;
  color: var(--p-ink); text-decoration: none; white-space: nowrap;
  transition: background .18s, color .18s;
}
.portal-menu__item:hover { background: var(--p-tint); color: var(--p-deep); }
.portal-menu__item.is-current { background: var(--p-deep); color: #fff; }

.portal-section__head {
  font-family: var(--font-display, inherit);
  font-size: clamp(22px, 3.4vw, 30px); line-height: 1.2;
  color: var(--p-deep); margin: 0;
}

.portal-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px;
}
.portal-card-link {
  display: grid; gap: 6px; align-content: start;
  padding: 18px 20px; border: 1px solid var(--p-line); border-radius: var(--p-radius);
  background: #fff; text-decoration: none; color: inherit;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.portal-card-link:hover {
  border-color: var(--p-green); transform: translateY(-2px);
  box-shadow: 0 10px 24px -16px rgba(20, 83, 45, .55);
}
.portal-card-link__label {
  font-family: var(--font-display, inherit); font-weight: 700;
  font-size: 16px; color: var(--p-deep);
}
.portal-card-link__blurb { font-size: 13.5px; line-height: 1.55; color: var(--p-muted); }

@media (max-width: 640px) {
  .portal-menu { border-radius: 16px; }
  .portal-menu__item { flex: 1 1 auto; justify-content: center; }
}

/* A slot arrived at from the hero. */
.slot--chosen .slot__btn {
  border-color: var(--p-green); background: var(--p-tint);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .16);
}

/* Overview stats that lead somewhere, and the suggested starting card. */
.stat--link { text-decoration: none; color: inherit; transition: border-color .18s, transform .18s; }
.stat--link:hover { border-color: var(--p-green); transform: translateY(-2px); }

.portal-card-link--start { border-color: var(--p-green); }
.portal-card-link__flag {
  align-self: start; padding: 2px 9px; border-radius: 999px;
  background: var(--p-deep); color: #fff;
  font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}

.book-signin {
  margin: 0 0 4px; padding: 12px 16px; border-radius: 12px;
  background: var(--p-tint); border: 1px solid var(--p-line);
  font-size: 14px; color: var(--p-ink);
}
.book-signin a { color: var(--p-green); font-weight: 700; }

/* --- Registration, under the sign-in --------------------------------- */

.register-card { margin-top: 18px; }

.form--register small { font-size: 12px; color: var(--p-muted); line-height: 1.5; }
.form--register .form__actions { margin: 18px 0 0; }

/* Register-before-booking, step one of two. */
.book-first { display: grid; gap: 8px; }
.book-first__label {
  margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--p-green);
}
.book-first__title {
  margin: 0; font-family: var(--font-display, inherit);
  font-size: clamp(19px, 2.6vw, 23px); color: var(--p-deep);
}
.book-first__text { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--p-ink); }
.book-first__text--muted { font-size: 13.5px; color: var(--p-muted); }
.book-first__text a { color: var(--p-green); font-weight: 700; }

/* The six benefits every tier shares, said once. */
.tier-shared {
  margin: 0 0 32px; padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--p-line); border-radius: var(--p-radius);
  background: var(--p-tint);
}
.tier-shared__title {
  margin: 0 0 14px; font-family: var(--font-display, inherit);
  font-size: 17px; font-weight: 700; color: var(--p-deep);
}
.tier-shared__list {
  margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 10px 24px;
}
.tier-shared__list li {
  position: relative; padding-left: 23px;
  font-size: 13.5px; line-height: 1.6; color: var(--p-ink);
}
.tier-shared__list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--p-green); font-weight: 700;
}

/* --- Events you can still join -------------------------------------- */

.claim-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px;
}
.claim {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 20px; background: #fff;
  border: 1px solid var(--p-line); border-radius: var(--p-radius);
}
.claim__when {
  margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--p-green);
}
.claim__title {
  margin: 0; font-family: var(--font-display, inherit); font-weight: 700;
  font-size: 15.5px; line-height: 1.35; color: var(--p-deep);
}
.claim__where {
  margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline;
  justify-content: space-between; font-size: 13px; color: var(--p-muted);
}
.claim__price { font-weight: 700; color: var(--p-deep); }
.claim__actions {
  margin: auto 0 0; padding-top: 10px;
  display: flex; align-items: center; gap: 10px;
}
.claim__seats {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--p-muted);
}
.claim__seats input {
  width: 58px; padding: 7px 9px; font-size: 13.5px; font-family: inherit;
  border: 1px solid var(--p-line); border-radius: 9px; background: #fff;
}
.claim__actions .btn { flex: 1 1 auto; justify-content: center; }

/* --- Starting and joining a meeting ---------------------------------- */

.appt__actions { flex-wrap: wrap; align-items: center; gap: 8px; }
.appt__start { margin: 0; }
.appt__hint {
  flex: 1 1 100%; font-size: 11.5px; line-height: 1.4; color: var(--p-muted);
}
/* A Join that is not open yet: visibly present, visibly not ready. */
.btn.is-waiting {
  opacity: .5; cursor: not-allowed; pointer-events: none;
  border-style: dashed;
}

/* --- Delivery: tracking links and the return pickup ------------------- */

.kit__track {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--p-deep); font-weight: 700; text-decoration: none;
}
.kit__track-go {
  padding: 2px 8px; border-radius: 999px;
  background: var(--p-tint); border: 1px solid var(--p-line);
  font-size: 11px; font-weight: 700; letter-spacing: .03em;
  text-transform: uppercase; color: var(--p-green);
}
.kit__track:hover .kit__track-go { background: var(--p-green); color: #fff; border-color: var(--p-green); }

.kit-return {
  margin: 18px 0 0; padding: 18px 20px;
  border: 1px solid var(--p-line); border-radius: 14px; background: var(--p-tint);
}
.kit-return__title {
  margin: 0 0 8px; font-family: var(--font-display, inherit);
  font-size: 15px; font-weight: 700; color: var(--p-deep);
}
.kit-return__lead, .kit-return__hint, .kit-return__done {
  margin: 0 0 10px; font-size: 13.5px; line-height: 1.6; color: var(--p-muted);
}
.kit-return__address {
  margin: 0 0 14px; padding: 12px 14px; border-radius: 10px;
  background: #fff; border: 1px solid var(--p-line);
  font-style: normal; font-size: 13.5px; line-height: 1.6; color: var(--p-ink);
}
.kit-return__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px;
}
.kit-return__grid .form__row { margin: 0; display: grid; gap: 5px; }
.kit-return__grid .form__row--wide { grid-column: 1 / -1; }
.kit-return__grid label { font-size: 12px; font-weight: 700; color: var(--p-deep); }
.kit-return__grid input, .kit-return__grid textarea {
  width: 100%; padding: 9px 12px; font-size: 14px; font-family: inherit;
  border: 1px solid var(--p-line); border-radius: 9px; background: #fff; color: inherit;
}
.kit-return__form .form__actions { margin: 14px 0 0; }
.kit-return__done { margin: 0; color: var(--p-deep); font-weight: 600; }

/* --- Requests waiting on an answer ----------------------------------- */

.portal-sub--urgent { color: var(--p-deep); }
.appt-requests { display: grid; gap: 12px; margin-bottom: 22px; }
.appt-request {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  padding: 16px 18px; background: #fff;
  border: 1px solid #fde68a; border-left: 4px solid #f59e0b; border-radius: 14px;
}
.appt-request__when {
  display: grid; gap: 2px; min-width: 76px;
  font-size: 13px; color: var(--p-muted);
}
.appt-request__when strong { font-size: 14.5px; color: var(--p-deep); }
.appt-request__body { flex: 1 1 200px; min-width: 0; display: grid; gap: 3px; }
.appt-request__kind {
  margin: 0; font-family: var(--font-display, inherit); font-weight: 700;
  font-size: 15px; color: var(--p-deep);
}
.appt-request__with { font-weight: 400; font-size: 13px; color: var(--p-muted); }
.appt-request__who { margin: 0; font-size: 13.5px; color: var(--p-ink); }
.appt-request__who a { color: var(--p-green); }
.appt-request__note {
  margin: 4px 0 0; font-size: 13px; line-height: 1.55; color: var(--p-muted);
  font-style: italic;
}
.appt-request__actions { flex: 0 0 auto; }
.appt-decide { display: flex; gap: 8px; margin: 0; }

@media (max-width: 560px) {
  .appt-request__actions, .appt-decide { width: 100%; }
  .appt-decide .btn { flex: 1 1 0; justify-content: center; }
}

/* The clinician's own diary controls. */
.diary__do { white-space: nowrap; }
.diary__do .appt-decide,
.diary__do .diary__cancel,
.diary__do .appt__start { display: inline-flex; margin: 0 4px 0 0; }
.diary__do .btn { margin: 2px 0; }
.pill--requested { background: #fef3c7; color: #92400e; border-color: #fde68a; }

/* --- One consent row, everywhere ------------------------------------- */

/*
 * There were three competing definitions of this: a flex one for the partner
 * form, a block-with-absolute-checkbox one for registration, and the theme's
 * own. Between them the checkbox landed inside the word "terms" on one form
 * and a hand's width from its own sentence on another.
 *
 * One definition now, and a grid rather than flex: two columns, the box and
 * the sentence. Grid places each child in a cell, so the sentence wraps as
 * text inside its own column instead of being broken into pieces. It relies
 * on the label having exactly two children, which the markup now guarantees.
 */
.form__consent {
  margin: 16px 0 14px;
  padding: 13px 15px;
  border: 1px solid var(--p-line);
  border-radius: 12px;
  background: var(--p-tint);
}
.form__consent label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  margin: 0;
  font-weight: 400;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--p-ink);
  cursor: pointer;
}
.form__consent label > input[type="checkbox"] {
  width: 18px; height: 18px; margin: 1px 0 0;
  accent-color: var(--p-green); flex: none;
}
.form__consent label > span { min-width: 0; }
.form__consent a { color: var(--p-green); font-weight: 600; }

/* The link between sign-in and sign-up. */
.login-card__alt {
  margin: 0 0 16px; padding: 11px 14px;
  border: 1px dashed var(--p-line); border-radius: 11px;
  font-size: 13.5px; color: var(--p-muted);
}
.login-card__alt a { color: var(--p-green); font-weight: 700; }

/* Form buttons: never squashed, never stretched oddly. */
.form--partner .form__actions .btn,
.form--register .form__actions .btn {
  min-width: 200px; justify-content: center;
}
@media (max-width: 640px) {
  .form--partner .form__actions .btn,
  .form--register .form__actions .btn { width: 100%; min-width: 0; }
}

/* --- People and permissions ------------------------------------------ */

.people-new {
  margin: 0 0 22px; padding: 16px 18px;
  border: 1px solid var(--p-line); border-radius: var(--p-radius); background: #fff;
}
.people-new > summary {
  cursor: pointer; font-family: var(--font-display, inherit); font-weight: 700;
  font-size: 15px; color: var(--p-deep);
}
.people-new[open] > summary { margin-bottom: 16px; }
.form--people .form__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px;
}
.form--people .form__row { margin: 0; display: grid; gap: 5px; }
.form--people .form__row--wide { grid-column: 1 / -1; max-width: 420px; }
.form--people label { font-size: 12.5px; font-weight: 700; color: var(--p-deep); }
.form--people input, .form--people select {
  width: 100%; padding: 10px 13px; font-size: 14.5px; font-family: inherit;
  border: 1px solid var(--p-line); border-radius: 10px; background: #fff; color: inherit;
}
.form--people small { font-size: 12px; color: var(--p-muted); line-height: 1.5; }
.people-hint { margin: 10px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--p-muted); }

.people-table-wrap { overflow-x: auto; }
.people-table {
  width: 100%; border-collapse: separate; border-spacing: 0; min-width: 640px;
  background: #fff; border: 1px solid var(--p-line); border-radius: var(--p-radius);
  overflow: hidden; font-size: 13.5px;
}
.people-table th, .people-table td { padding: 12px 14px; text-align: left; vertical-align: top; }
.people-table thead th {
  background: var(--p-tint); color: var(--p-deep);
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.people-table tbody tr + tr td { border-top: 1px solid var(--p-line); }
.people-ref { font-size: 12px; color: var(--p-muted); }
.people-you {
  padding: 1px 7px; border-radius: 999px; background: var(--p-tint);
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; color: var(--p-green);
}
.people-back { margin: 0 0 14px; font-size: 13.5px; }
.people-back a { color: var(--p-green); font-weight: 700; }
.people-sub {
  margin: 22px 0 6px; font-family: var(--font-display, inherit);
  font-size: 15px; color: var(--p-deep);
}
.people-group {
  margin: 0 0 12px; padding: 14px 16px;
  border: 1px solid var(--p-line); border-radius: 12px; background: #fff;
}
.people-group legend {
  padding: 0 7px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: var(--p-green);
}
.people-cap {
  display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px;
  align-items: start; padding: 6px 0; font-size: 13.5px; line-height: 1.5;
}
.people-cap > input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--p-green); }
.people-cap em {
  display: block; font-size: 11.5px; font-style: normal; color: var(--p-muted);
}
.people-cap.is-locked { opacity: .55; }

/* --- Orders ----------------------------------------------------------- */

.orders-wrap { overflow-x: auto; }
.orders {
  width: 100%; border-collapse: separate; border-spacing: 0; min-width: 680px;
  background: #fff; border: 1px solid var(--p-line); border-radius: var(--p-radius);
  overflow: hidden; font-size: 13.5px;
}
.orders th, .orders td { padding: 12px 14px; text-align: left; vertical-align: top; }
.orders thead th {
  background: var(--p-tint); color: var(--p-deep);
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.orders tbody tr + tr td { border-top: 1px solid var(--p-line); }
.orders .num { text-align: right; white-space: nowrap; }
.orders__when { font-size: 12px; color: var(--p-muted); }
.orders__what { max-width: 320px; line-height: 1.5; }
.orders__do { white-space: nowrap; }
.orders__do .btn { margin: 2px 0 2px 4px; }

/* Order status pills, using WooCommerce's own status names. */
.pill--completed, .pill--processing { background: var(--p-tint); color: var(--p-deep); border-color: rgba(22,163,74,.3); }
.pill--pending, .pill--on-hold { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.pill--cancelled, .pill--failed, .pill--refunded { background: #fef2f2; color: #991b1b; border-color: #fecaca; }

/* ---------------------------------------------------------------------
   Open times, as a calendar

   The panels are hidden only once JavaScript has marked the calendar ready.
   Without scripts every day stays open and the page is a plain list of
   times under its date, which is what it was before.
   --------------------------------------------------------------------- */
.cal { display: grid; gap: 18px; }
.cal__months { display: flex; flex-wrap: wrap; gap: 24px; }
.cal__month { flex: 0 1 300px; min-width: 260px; }
.cal__title {
  margin: 0 0 10px; font-size: 14px; font-weight: 700;
  color: var(--p-deep); letter-spacing: .01em;
}
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__dow {
  text-align: center; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--p-muted); padding-bottom: 4px;
}
.cal__pad { aspect-ratio: 1; }
.cal__day {
  aspect-ratio: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1px;
  border: 1px solid transparent; border-radius: 10px;
  background: none; font: inherit; color: var(--p-muted); padding: 0;
}
.cal__num { font-size: 13px; line-height: 1; }
.cal__day--none { opacity: .45; }
.cal__day--today .cal__num { text-decoration: underline; text-underline-offset: 3px; }
.cal__day--free {
  cursor: pointer; color: var(--p-deep); font-weight: 700;
  background: var(--p-tint); border-color: rgba(22, 163, 74, .25);
  transition: background .15s, border-color .15s, transform .15s;
}
.cal__day--free:hover, .cal__day--free:focus-visible {
  border-color: var(--p-green); transform: translateY(-1px);
}
.cal__day--free.is-current {
  background: var(--p-deep); border-color: var(--p-deep); color: #fff;
}
.cal__count {
  font-size: 10px; font-weight: 700; line-height: 1;
  padding: 1px 4px; border-radius: 999px;
  background: rgba(22, 163, 74, .18); color: var(--p-deep);
}
.cal__day--free.is-current .cal__count { background: rgba(255, 255, 255, .22); color: #fff; }

.cal__panel-title {
  margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--p-deep);
}
.cal.is-ready .cal__panel { display: none; }
.cal.is-ready .cal__panel.is-open { display: block; }
.cal:not(.is-ready) .cal__panel + .cal__panel { margin-top: 18px; }

/* The time buttons no longer repeat the date — the calendar says it once. */
.cal .slot__btn { min-width: 96px; }

@media (max-width: 560px) {
  .cal__month { flex: 1 1 100%; min-width: 0; }
}

/* ---------------------------------------------------------------------
   An order that has not been paid for
   --------------------------------------------------------------------- */
.pay-due {
  border: 1px solid #fde68a; background: #fffbeb; color: #92400e;
  border-radius: var(--p-radius, 18px); padding: 20px 22px;
  display: grid; gap: 10px;
}
.pay-due__head {
  margin: 0; font-family: var(--font-display, inherit); font-weight: 800;
  font-size: 17px; color: #92400e;
}
.pay-due__body, .pay-due__clock, .pay-due__small { margin: 0; font-size: 14.5px; line-height: 1.6; }
.pay-due__clock { font-size: 15px; }
.pay-due__clock strong { font-variant-numeric: tabular-nums; font-size: 18px; }
.pay-due__small { font-size: 12.5px; opacity: .85; }
.pay-due__do { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pay-due--inline { padding: 14px 16px; }
.pay-due.is-overdue { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.pay-due.is-overdue .pay-due__head { color: #991b1b; }

.orders__row--unpaid td { background: #fffbeb; }
.orders__unpaid { font-size: 11.5px; font-weight: 700; color: #92400e; }

/* ---------------------------------------------------------------------
   One order, in full
   --------------------------------------------------------------------- */
.orders__back { margin: 0; font-size: 14px; }
.orders__back a { color: var(--p-green); font-weight: 600; }
.order-detail__head {
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: flex-start; justify-content: space-between; margin-bottom: 16px;
}
.order-detail__head h3 { margin: 0; font-size: 20px; }
.order-detail__when { margin: 4px 0 0; font-size: 13px; color: var(--p-muted); }
.orders--items tfoot th { font-weight: 700; text-align: right; }
.orders--items tfoot tr:last-child th, .orders--items tfoot tr:last-child td { font-size: 16px; }
.order-detail__do { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }

/* The way back from a WooCommerce account page. */
.account-home { margin: 0 0 18px; }
.account-home--order { margin: 18px 0 0; }

/* ---------------------------------------------------------------------
   Search, filters and pagination above and below a list
   --------------------------------------------------------------------- */
.list-bar {
  display: flex; flex-wrap: wrap; gap: 12px 16px;
  align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.list-bar__form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.list-bar__search {
  min-width: 0; width: clamp(180px, 32vw, 300px);
  background: #fff; border: 1px solid var(--p-line); border-radius: 999px;
  padding: 9px 16px; font: inherit; font-size: 14px; outline: none;
}
.list-bar__search:focus { border-color: var(--p-green); box-shadow: 0 0 0 3px rgba(22, 163, 74, .15); }
.list-bar__filter select {
  background: #fff; border: 1px solid var(--p-line); border-radius: 999px;
  padding: 9px 14px; font: inherit; font-size: 14px; max-width: 220px;
}
.list-bar__clear { font-size: 13px; color: var(--p-muted); text-decoration: underline; }
.list-bar__clear:hover { color: var(--p-green); }
.list-bar__count { margin: 0; font-size: 13.5px; color: var(--p-muted); white-space: nowrap; }

.pager {
  display: flex; flex-wrap: wrap; gap: 10px 14px;
  align-items: center; justify-content: center;
  margin-top: 16px;
}
.pager__where { font-size: 13.5px; color: var(--p-muted); font-variant-numeric: tabular-nums; }
.pager .is-disabled { opacity: .4; pointer-events: none; }

@media (max-width: 600px) {
  .list-bar { flex-direction: column; align-items: stretch; }
  .list-bar__form { width: 100%; }
  .list-bar__search { width: 100%; }
  .list-bar__count { text-align: right; }
}

/* ---------------------------------------------------------------------
   Calendar month navigation
   --------------------------------------------------------------------- */
.cal__nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 10px;
}
.cal__nav .cal__title { margin: 0; }
.cal__step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0; flex: none;
  border: 1px solid var(--p-line); border-radius: 50%;
  background: #fff; color: var(--p-deep); font: inherit; font-size: 15px; line-height: 1;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.cal__step:hover:not([disabled]) { border-color: var(--p-green); background: var(--p-tint); }
.cal__step[disabled] { opacity: .35; cursor: default; }
.cal__month { display: none; }
.cal__month.is-shown { display: block; }
.cal:not(.is-ready) .cal__month { display: block; }
.cal__count-note { margin: 6px 0 0; font-size: 12px; color: var(--p-muted); }

/* ---------------------------------------------------------------------
   Co-partner applications
   --------------------------------------------------------------------- */
.app__facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px 20px; margin: 18px 0 0;
}
.app__facts div { margin: 0; }
.app__facts dt {
  margin: 0 0 2px; font-size: 11.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--p-muted);
}
.app__facts dd { margin: 0; font-size: 15px; color: var(--p-ink); word-break: break-word; }

.app__said {
  margin: 18px 0 0; padding: 14px 18px; border-left: 3px solid var(--p-green);
  background: var(--p-tint); border-radius: 0 10px 10px 0;
  font-size: 14.5px; line-height: 1.6; color: var(--p-ink);
}

.app__contact { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.app__money { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--p-line); }
.app__money-line { margin: 0 0 8px; font-size: 15px; }
.app__money-note { margin: 8px 0 0; font-size: 12px; color: var(--p-muted); }
.app__bar {
  height: 8px; border-radius: 999px; background: var(--p-line); overflow: hidden;
}
.app__bar span {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--p-green), var(--p-deep));
}

.app__pay-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.app__pay-row p { margin: 0; }
.app__hint { font-size: 12.5px; color: var(--p-muted); line-height: 1.55; }
.app__rule { border: 0; border-top: 1px solid var(--p-line); margin: 18px 0; }
.app__emailed {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px;
  background: var(--p-tint); color: var(--p-deep); font-size: 11px; font-weight: 700;
}

/* Where an application has got to. */
.pill--app-new { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.pill--app-reviewing { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.pill--app-approved { background: var(--p-tint); color: var(--p-deep); border-color: rgba(22, 163, 74, .3); }
.pill--app-declined { background: #fef2f2; color: #991b1b; border-color: #fecaca; }

.feed__type--payment { background: var(--p-tint); color: var(--p-deep); }
.feed__type--status { background: #eff6ff; color: #1e40af; }

@media (max-width: 560px) {
  .app__pay-row { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------
   Turning points into a discount code
   --------------------------------------------------------------------- */
.redeem__rate { margin: 0 0 14px; font-size: 13.5px; color: var(--p-muted); }
.redeem__form { display: grid; gap: 10px; }
.redeem__form input[type="number"] {
  width: 160px; background: #fff; border: 1px solid var(--p-line); border-radius: 12px;
  padding: 10px 14px; font: inherit; font-size: 15px; font-weight: 700;
}
.redeem__worth { margin: 0; font-size: 14.5px; color: var(--p-muted); }
.redeem__worth strong { color: var(--p-deep); font-size: 18px; margin-left: 4px; }
.redeem__head {
  margin: 22px 0 10px; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--p-muted);
}
.redeem__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.redeem__item {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 10px 14px; border: 1px solid var(--p-line); border-radius: 12px; background: #fff;
}
.redeem__item code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px; font-weight: 700; letter-spacing: .04em; color: var(--p-deep);
}
.redeem__value { font-weight: 700; }
.redeem__state {
  margin-left: auto; font-size: 11.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; padding: 2px 9px; border-radius: 999px;
  background: var(--p-tint); color: var(--p-deep);
}
.redeem__item--used .redeem__state { background: var(--p-line); color: var(--p-muted); }
.redeem__item--used code { color: var(--p-muted); text-decoration: line-through; }
.redeem__item--expired .redeem__state { background: #fef2f2; color: #991b1b; }
.redeem__item--expired code { color: var(--p-muted); }

/* ---------------------------------------------------------------------
   Several kits bought together
   --------------------------------------------------------------------- */
.kit-pack {
  border: 1px solid var(--p-line); border-radius: var(--p-radius, 18px);
  background: #fff; overflow: hidden; margin-bottom: 18px;
}
.kit-pack__head {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  padding: 18px 22px; background: var(--p-tint); border-bottom: 1px solid var(--p-line);
}
.kit-pack__title { margin: 0; font-size: 17px; }
.kit-pack__meta { margin: 3px 0 0; font-size: 13px; color: var(--p-muted); }
.kit-pack__overall { text-align: right; }
.kit-pack__pct { display: block; font-family: var(--font-display, inherit); font-weight: 800; font-size: 22px; color: var(--p-deep); line-height: 1; }
.kit-pack__pct-label { font-size: 11.5px; color: var(--p-muted); }

.kit-pack__one { border-top: 1px solid var(--p-line); }
.kit-pack__one:first-of-type { border-top: 0; }
.kit-pack__summary {
  display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center;
  padding: 14px 22px; cursor: pointer; list-style: none;
}
.kit-pack__summary::-webkit-details-marker { display: none; }
.kit-pack__summary:hover { background: var(--p-tint); }
.kit-pack__who { font-weight: 700; font-size: 15px; min-width: 140px; }
.kit-pack__step { font-size: 13px; color: var(--p-muted); flex: 1 1 140px; }
.kit-pack__bar {
  flex: 0 0 110px; height: 6px; border-radius: 999px; background: var(--p-line); overflow: hidden;
}
.kit-pack__bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--p-green), var(--p-deep)); }
.kit-pack__num { font-size: 12.5px; font-weight: 700; color: var(--p-deep); min-width: 38px; text-align: right; }
.kit-pack__body { padding: 0 22px 18px; }
.kit-pack__body .kit { border: 0; padding: 0; margin: 0; background: none; }

@media (max-width: 560px) {
  .kit-pack__summary { padding: 14px 16px; }
  .kit-pack__step { flex-basis: 100%; }
  .kit-pack__body { padding: 0 16px 16px; }
}
