@font-face {
  font-family: "main";
  src: url("../Assets/Generalsans-fonts/GeneralSans-Variable.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}

body.payment-page {
  margin: 0;
  min-height: 100vh;
  background: #fff;
  color: #111;
  font-family: "main", Arial, sans-serif;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  appearance: none;
}

.payment-shell,
.portal-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.payment-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.payment-panel,
.portal-card {
  border: 1px solid #ded9cb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(16, 16, 16, 0.06);
}

.payment-panel {
  width: 100%;
  padding: clamp(22px, 4vw, 42px);
}

.payment-panel--center {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.payment-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 42px;
  color: #111;
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
}

.payment-brand img,
.standalone-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.standalone-logo {
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #8a6815;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: #101010;
  font-weight: 680;
  letter-spacing: 0;
  line-height: 1;
}

h1 {
  max-width: 720px;
  font-size: clamp(42px, 7vw, 78px);
}

h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.payment-panel--center h1,
.payment-panel--center h2,
.payment-panel--center .lead {
  margin-left: auto;
  margin-right: auto;
}

.lead {
  max-width: 620px;
  margin: 18px 0 0;
  color: #4b4b46;
  font-size: 18px;
  line-height: 1.55;
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.payment-summary {
  border: 1px solid #e2ddcf;
  border-radius: 8px;
  background: #fbfaf5;
  padding: 20px;
}

dl {
  margin: 0;
}

.payment-summary div,
.detail-list div {
  display: grid;
  grid-template-columns: minmax(120px, 0.72fr) minmax(0, 1fr);
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid #e8e2d4;
}

.payment-summary div:first-child,
.detail-list div:first-child {
  padding-top: 0;
}

.payment-summary div:last-child,
.detail-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

dt {
  color: #67655f;
  font-size: 13px;
  font-weight: 750;
}

dd {
  margin: 0;
  color: #111;
  font-size: 15px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.summary-total dt,
.summary-total dd {
  color: #111;
  font-size: 18px;
}

.summary-total dd {
  font-size: 28px;
}

.payment-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.payment-panel--center .button-row {
  justify-content: center;
}

.primary-action,
.secondary-action,
.action-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid #111;
  border-radius: 7px;
  padding: 0 20px;
  color: #fff;
  background: #111;
  font-size: 14px;
  font-weight: 780;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.primary-action:hover,
.secondary-action:hover,
.action-link:hover {
  transform: translateY(-1px);
}

.secondary-action {
  background: #fff;
  color: #111;
  border-color: #c9b46a;
}

.secondary-action:hover {
  background: #f3ecd2;
}

.action-link {
  margin-top: 18px;
}

.state-block {
  margin-top: 24px;
  border-radius: 8px;
  padding: 22px;
  text-align: left;
}

.state-block h1,
.state-block h2,
.state-block p {
  margin-left: 0;
}

.state-block p {
  color: #4b4b46;
  font-size: 16px;
  line-height: 1.5;
}

.state-block--success {
  background: #eef8f0;
  border: 1px solid #b8d6c2;
}

.state-block--error,
.portal-error {
  background: #fff1ee;
  border: 1px solid #e6beb8;
  color: #8a2f20;
}

.reference-pill {
  display: inline-flex;
  margin: 24px 0 0;
  border-radius: 999px;
  background: #f2ecd8;
  color: #6f5311;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 780;
  overflow-wrap: anywhere;
}

.portal-header {
  padding: 0 0 32px;
}

.portal-header .payment-brand {
  margin-bottom: 0;
}

.portal-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.portal-card {
  min-height: 150px;
  padding: 20px;
}

.portal-card span {
  display: block;
  margin-bottom: 14px;
  color: #5c5b55;
  font-size: 13px;
  font-weight: 750;
}

.portal-card strong {
  display: block;
  color: #111;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.portal-card p {
  margin: 12px 0 0;
  color: #4b4b46;
  font-size: 15px;
  line-height: 1.45;
}

.portal-card--highlight {
  background: #101010;
  color: #fff;
}

.portal-card--highlight span,
.portal-card--highlight strong,
.portal-card--highlight p {
  color: #fff;
}

.portal-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.portal-details h2 {
  margin-bottom: 24px;
}

.portal-workspace {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 18px;
}

.portal-sidebar {
  position: sticky;
  top: 18px;
}

.portal-content {
  min-width: 0;
}

.portal-tabs {
  display: grid;
  gap: 7px;
  border: 1px solid #ded9cb;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 14px 34px rgba(16, 16, 16, 0.05);
}

.portal-tab {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: flex-start;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 6px;
  padding: 0 12px;
  background: transparent;
  color: #55524b;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.portal-tab:hover,
.portal-tab.is-active {
  color: #111;
  border-left-color: #a88622;
  background: #fbfaf5;
}

.portal-quick-actions {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 18px;
}

.portal-tab-panel[hidden] {
  display: none;
}

.portal-section {
  margin: 18px 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.section-heading h2 {
  margin: 0;
}

.section-heading .reference-pill {
  flex: 0 0 auto;
  margin: 0;
}

.invoice-group-note {
  margin: -4px 0 6px;
  color: #4b4b46;
  font-size: 14px;
  font-weight: 650;
}

.invoice-groups,
.invoice-register {
  display: grid;
}

.invoice-groups {
  gap: 22px;
}

.invoice-period-group {
  display: grid;
  gap: 10px;
}

.invoice-period-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  border-top: 2px solid #111;
  padding-top: 14px;
}

.invoice-period-header h3 {
  margin: 0;
  color: #111;
  font-size: 28px;
  font-weight: 720;
  line-height: 1.1;
}

.invoice-period-total {
  display: grid;
  justify-items: end;
}

.invoice-period-total span {
  color: #67655f;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.invoice-period-total strong {
  margin-top: 5px;
  color: #111;
  font-size: 26px;
  line-height: 1;
}

.invoice-register {
  gap: 8px;
}

.invoice-register__head,
.invoice-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.85fr) minmax(0, 1.6fr) minmax(130px, 0.6fr) minmax(92px, auto);
  gap: 14px;
  align-items: center;
}

.invoice-register__head {
  padding: 0 16px 6px;
  color: #67655f;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.invoice-row {
  min-height: 74px;
  border: 1px solid #ded9cb;
  border-radius: 8px;
  background: #fff;
  padding: 14px 16px;
  box-shadow: 0 12px 26px rgba(16, 16, 16, 0.04);
}

.invoice-row strong {
  display: block;
  color: #111;
  font-size: 15px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.invoice-row p {
  margin: 0;
  color: #4b4b46;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
}

.invoice-row .secondary-action {
  min-height: 40px;
  padding: 0 14px;
}

.mobile-field-label {
  display: none;
}

.invoice-card,
.cause-card,
.impact-card {
  border: 1px solid #ded9cb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(16, 16, 16, 0.06);
}

.invoice-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 20px;
}

.invoice-download-source {
  display: none;
}

.invoice-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.invoice-header h3,
.cause-card h3 {
  margin: 0;
  color: #111;
  font-size: 22px;
  font-weight: 720;
  line-height: 1.12;
  letter-spacing: 0;
}

.invoice-header img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.invoice-card .secondary-action {
  width: 100%;
  margin-top: auto;
}

.invoice-total-row dt,
.invoice-total-row dd {
  color: #111;
  font-size: 18px;
}

.invoice-total-row dd {
  font-size: 24px;
}

.paid-donations {
  margin-bottom: 28px;
}

.paid-donation-list {
  display: grid;
  gap: 10px;
}

.paid-donation-card {
  border: 1px solid #ded9cb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(16, 16, 16, 0.04);
}

.paid-donation-card summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 28px;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  padding: 16px;
  cursor: pointer;
  list-style: none;
}

.paid-donation-card summary::after {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #ded9cb;
  border-radius: 999px;
  color: #111;
  content: "+";
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.paid-donation-card[open] summary::after {
  content: "-";
}

.paid-donation-card summary::-webkit-details-marker {
  display: none;
}

.paid-donation-card summary span,
.paid-donation-card summary strong,
.paid-donation-card summary b {
  display: block;
}

.paid-donation-card summary small {
  display: block;
  margin-bottom: 5px;
  color: #67655f;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.paid-donation-card summary strong {
  color: #111;
  font-size: 18px;
  font-weight: 780;
  line-height: 1.2;
}

.paid-donation-card summary b {
  color: #111;
  font-size: 20px;
  font-weight: 850;
  white-space: nowrap;
}

.paid-donation-card[open] summary {
  border-bottom: 1px solid #e8e2d4;
}

.paid-donation-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.paid-donation-body .secondary-action,
.report-unavailable {
  justify-self: start;
}

.empty-state,
.report-unavailable {
  border: 1px solid #ded9cb;
  border-radius: 8px;
  background: #fbfaf5;
  padding: 14px 16px;
  color: #4b4b46;
  font-size: 14px;
  font-weight: 700;
}

.cause-grid,
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.impact-grid {
  grid-template-columns: 1fr;
}

.impact-grid--wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cause-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}

.cause-card-details {
  display: grid;
  gap: 8px;
  margin: 2px 0;
  border: 1px solid #e1e5dc;
  border-radius: 8px;
  background: #f7f9f5;
  padding: 12px;
}

.cause-card-details div {
  display: grid;
  grid-template-columns: minmax(70px, 0.35fr) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.cause-entails {
  display: grid;
  gap: 5px;
  border-left: 3px solid #2f6f5e;
  padding-left: 12px;
}

.cause-entails span {
  color: #67655f;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.cause-card .secondary-action {
  width: 100%;
}

.cause-card p:not(.eyebrow),
.impact-card p:not(.eyebrow) {
  margin: 0;
  color: #4b4b46;
  font-size: 15px;
  line-height: 1.5;
}

.impact-card {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.impact-card h3 {
  margin: 0;
  color: #111;
  font-size: 22px;
  font-weight: 720;
  line-height: 1.12;
}

.impact-card .secondary-action {
  width: 100%;
}

.impact-details div {
  display: grid;
  gap: 5px;
  padding: 11px 0;
  border-bottom: 1px solid #e8e2d4;
}

.impact-details div:first-child {
  padding-top: 0;
}

.impact-details div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.cause-page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.cause-detail-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  min-height: min(560px, calc(100vh - 122px));
}

.cause-detail-hero img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  border: 1px solid #ded9cb;
  border-radius: 8px;
  object-fit: cover;
}

.cause-detail-hero h1 {
  max-width: 740px;
}

.cause-detail-hero .lead {
  max-width: 680px;
}

.cause-progress-panel,
.cause-detail-panel {
  border: 1px solid #ded9cb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(16, 16, 16, 0.06);
}

.cause-progress-panel {
  display: grid;
  gap: 18px;
  margin-top: 24px;
  padding: clamp(20px, 4vw, 32px);
}

.cause-progress-panel h2,
.cause-detail-panel h2,
.cause-timeline h2 {
  font-size: clamp(25px, 3vw, 38px);
}

.cause-progress-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.cause-progress-stats div {
  border: 1px solid #e1e5dc;
  border-radius: 8px;
  background: #f7f9f5;
  padding: 14px;
}

.cause-progress-stats dd {
  margin-top: 6px;
  color: #23483a;
  font-size: 22px;
}

.cause-progress-meter {
  height: 16px;
  overflow: hidden;
  border: 1px solid #d9dfd6;
  border-radius: 999px;
  background: #ece8dc;
}

.cause-progress-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #23483a;
}

.cause-progress-value {
  margin: -6px 0 0;
  color: #4b4b46;
  font-size: 14px;
  font-weight: 800;
}

.cause-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.cause-detail-panel {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: clamp(20px, 3vw, 28px);
}

.cause-list {
  display: grid;
  gap: 11px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.cause-list li {
  position: relative;
  padding-left: 20px;
  color: #4b4b46;
  font-size: 15px;
  line-height: 1.52;
}

.cause-list li::before {
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2f6f5e;
  content: "";
}

.cause-timeline {
  margin-top: 30px;
  padding: 10px 0 4px;
}

.timeline-shell {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.timeline-track {
  position: relative;
  width: 6px;
  min-height: 100%;
  overflow: hidden;
  justify-self: center;
  border-radius: 999px;
  background: #ded9cb;
}

.timeline-track span {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 0;
  border-radius: inherit;
  background: #23483a;
}

.timeline-items {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(100px, 0.2fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  border: 1px solid #ded9cb;
  border-left-width: 4px;
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 12px 26px rgba(16, 16, 16, 0.04);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.timeline-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item > span {
  color: #67655f;
  font-size: 13px;
  font-weight: 850;
}

.timeline-item p {
  margin: 0 0 6px;
  color: #67655f;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.timeline-item h3 {
  margin: 0;
  color: #111;
  font-size: 20px;
  font-weight: 740;
  line-height: 1.18;
}

.timeline-item small {
  display: block;
  margin-top: 8px;
  color: #4b4b46;
  font-size: 14px;
  font-weight: 560;
  line-height: 1.45;
}

.timeline-item--complete {
  border-left-color: #2f6f5e;
}

.timeline-item--current {
  border-left-color: #a88622;
  background: #fffdf6;
}

.timeline-item--upcoming {
  border-left-color: #aeb9c1;
}

.cause-report-panel .secondary-action {
  justify-self: start;
}

.cause-donate-panel {
  border-color: #111;
  background: #111;
  color: #fff;
}

.cause-donate-panel h2,
.cause-donate-panel dt,
.cause-donate-panel dd,
.cause-donate-panel label {
  color: #fff;
}

.cause-donate-panel .eyebrow {
  color: #d7bd64;
}

.cause-donate-panel .primary-action {
  border-color: #d7bd64;
  background: #d7bd64;
  color: #111;
}

.cause-donation-form {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.cause-donation-form label {
  display: grid;
  gap: 7px;
  color: #393934;
  font-size: 13px;
  font-weight: 760;
}

.cause-donation-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cdc7b8;
  border-radius: 7px;
  padding: 0 12px;
  color: #111;
  outline: none;
}

.cause-donation-form input:focus {
  border-color: #a88622;
  box-shadow: 0 0 0 3px rgba(168, 134, 34, 0.18);
}

.cause-donation-form .primary-action {
  width: 100%;
}

.portal-access-form {
  display: grid;
  gap: 14px;
  margin: 30px auto 0;
  max-width: 480px;
  text-align: left;
}

.portal-access-form label {
  display: grid;
  gap: 7px;
  color: #393934;
  font-size: 13px;
  font-weight: 760;
}

.portal-access-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cdc7b8;
  border-radius: 7px;
  padding: 0 12px;
  color: #111;
  outline: none;
}

.portal-access-form input:focus {
  border-color: #a88622;
  box-shadow: 0 0 0 3px rgba(168, 134, 34, 0.18);
}

.student-profile-page .student-progress-meter {
  margin-bottom: 24px;
}

.student-process {
  margin-top: 22px;
}

.student-document-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.student-document-card {
  border: 1px solid #ded9cb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(16, 16, 16, 0.06);
  padding: 20px;
}

.student-document-card h3 {
  margin: 0;
  color: #111;
  font-size: 22px;
  font-weight: 720;
  line-height: 1.12;
}

.student-document-card p:not(.eyebrow) {
  margin: 12px 0 0;
  color: #4b4b46;
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.student-home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.student-home-card {
  min-height: 160px;
  border: 1px solid #ded9cb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(16, 16, 16, 0.06);
  padding: 20px;
}

.student-home-card h3 {
  margin: 0;
  color: #111;
  font-size: 24px;
  font-weight: 720;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.student-home-card p:not(.eyebrow) {
  margin: 12px 0 0;
  color: #4b4b46;
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.student-home-actions,
.student-update-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.student-update-panel .section-heading {
  margin-bottom: 22px;
}

.student-update-form {
  display: grid;
  gap: 28px;
}

.student-update-form fieldset {
  display: grid;
  gap: 18px;
  min-width: 0;
  border: 0;
  border-top: 1px solid #e4dece;
  margin: 0;
  padding: 22px 0 0;
}

.student-update-form fieldset:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.student-update-form legend {
  margin-bottom: 12px;
  color: #111;
  font-size: 18px;
  font-weight: 780;
}

.student-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.student-update-form label,
.student-option-group > span {
  display: grid;
  gap: 7px;
  color: #393934;
  font-size: 13px;
  font-weight: 760;
}

.student-update-form input,
.student-update-form textarea {
  width: 100%;
  border: 1px solid #cdc7b8;
  border-radius: 7px;
  color: #111;
  background: #fff;
  font: inherit;
  outline: none;
}

.student-update-form input {
  min-height: 46px;
  padding: 0 12px;
}

.student-update-form textarea {
  min-height: 112px;
  resize: vertical;
  padding: 12px;
  line-height: 1.45;
}

.student-update-form input:focus,
.student-update-form textarea:focus {
  border-color: #a88622;
  box-shadow: 0 0 0 3px rgba(168, 134, 34, 0.18);
}

.student-field-wide {
  grid-column: 1 / -1;
}

.student-option-group {
  display: grid;
  gap: 10px;
}

.student-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.student-option-grid label {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  border: 1px solid #ded9cb;
  border-radius: 7px;
  background: #fbfaf5;
  padding: 10px 12px;
  cursor: pointer;
}

.student-option-grid input {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  accent-color: #a88622;
}

.student-option-grid span {
  min-width: 0;
  color: #111;
  font-size: 14px;
  font-weight: 720;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.student-profile-alert {
  margin: 0 0 18px;
  border-radius: 8px;
  padding: 13px 15px;
  font-size: 14px;
  font-weight: 680;
  line-height: 1.45;
}

.student-profile-alert--success {
  border: 1px solid #b8d6c2;
  background: #eef8f0;
  color: #245f35;
}

.student-profile-alert--error {
  border: 1px solid #e6beb8;
  background: #fff1ee;
  color: #8a2f20;
}

.student-profile-alert ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.student-profile-alert li + li {
  margin-top: 4px;
}

.portal-error {
  margin: 20px auto 0;
  max-width: 520px;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}

@media (max-width: 860px) {
  .checkout-grid,
  .portal-details,
  .portal-grid,
  .portal-workspace,
  .student-home-grid,
  .student-form-grid,
  .student-document-grid,
  .cause-grid,
  .impact-grid--wide,
  .cause-detail-hero,
  .cause-detail-grid,
  .cause-progress-stats {
    grid-template-columns: 1fr;
  }

  .portal-sidebar {
    position: static;
  }

  .portal-hero,
  .section-heading,
  .invoice-period-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .invoice-period-total {
    justify-items: start;
  }

  .cause-detail-hero {
    min-height: 0;
  }

  .cause-detail-hero img {
    min-height: 300px;
  }
}

@media (max-width: 620px) {
  .payment-shell,
  .portal-shell,
  .cause-page {
    width: min(100% - 24px, 1120px);
    padding-top: 18px;
  }

  .payment-brand {
    margin-bottom: 30px;
  }

  h1 {
    font-size: 40px;
  }

  .lead {
    font-size: 16px;
  }

  .payment-summary div,
  .detail-list div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .payment-actions,
  .button-row,
  .portal-quick-actions,
  .portal-quick-actions .primary-action,
  .primary-action,
  .secondary-action,
  .action-link {
    width: 100%;
  }

  .portal-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .portal-tab {
    padding: 0 12px;
  }

  .student-option-grid {
    grid-template-columns: 1fr;
  }

  .student-home-actions,
  .student-update-actions {
    flex-direction: column;
  }

  .invoice-register__head {
    display: none;
  }

  .invoice-row {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
  }

  .paid-donation-card summary {
    grid-template-columns: minmax(0, 1fr) 28px;
  }

  .paid-donation-card summary b {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .timeline-shell {
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 12px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px;
  }

  .cause-detail-hero img {
    min-height: 240px;
  }

  .invoice-row .secondary-action {
    width: 100%;
  }

  .mobile-field-label {
    display: block;
    margin-bottom: 5px;
    color: #67655f;
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
  }
}
