.commerce-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 88% 4%, rgba(201, 242, 123, 0.28), transparent 28rem),
    radial-gradient(circle at 1% 70%, rgba(219, 117, 85, 0.09), transparent 25rem),
    var(--canvas);
}

.commerce-shell {
  position: relative;
  min-height: 100vh;
}

.commerce-shell::before {
  position: absolute;
  z-index: -1;
  top: 150px;
  right: -175px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(23, 60, 48, 0.09);
  border-radius: 50%;
  content: "";
}

.commerce-step {
  display: grid;
  justify-items: center;
  gap: 3px;
}

.commerce-step span {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.commerce-step strong {
  color: var(--forest);
  font-size: 12px;
}

.commerce-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.commerce-back svg {
  width: 17px;
  height: 17px;
}

.commerce-main,
.status-main,
.commerce-footer {
  width: min(1240px, calc(100vw - 48px));
  margin-inline: auto;
}

.commerce-main {
  padding: 70px 0 90px;
}

.commerce-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.52fr);
  align-items: end;
  gap: clamp(40px, 7vw, 90px);
  margin-bottom: 45px;
}

.commerce-intro .kicker {
  grid-column: 1;
  margin-bottom: 18px;
}

.commerce-intro h1,
.account-heading h1 {
  grid-column: 1;
  margin: 0;
  font-family: Iowan Old Style, Palatino Linotype, Georgia, serif;
  font-size: clamp(48px, 5.3vw, 72px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.commerce-intro > p:last-child {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0 0 4px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(350px, 0.8fr) minmax(440px, 1.2fr);
  align-items: stretch;
  gap: 22px;
}

.checkout-plan-card,
.payment-card {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}

.checkout-plan-card {
  min-height: 630px;
  background:
    radial-gradient(circle at 92% 7%, rgba(201, 242, 123, 0.17), transparent 17rem),
    var(--forest-deep);
  color: #fff;
  padding: clamp(27px, 4vw, 40px);
}

.checkout-card-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 22px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.checkout-card-label a {
  color: var(--lime);
  text-underline-offset: 3px;
}

.checkout-plan-loading,
.account-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 420px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.checkout-plan-loading span,
.account-loading span {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, 0.17);
  border-top-color: var(--lime);
  border-radius: 50%;
  animation: orbit 0.9s linear infinite;
}

.checkout-plan-loading.error {
  color: #ffb9aa;
}

.checkout-pack-number {
  color: rgba(255, 255, 255, 0.15);
  font-family: Iowan Old Style, Palatino Linotype, Georgia, serif;
  font-size: 62px;
  font-weight: 600;
  line-height: 1;
}

.checkout-pack-context {
  margin: 20px 0 4px;
  color: var(--lime);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.checkout-plan-card h2 {
  margin: 0;
  font-family: Iowan Old Style, Palatino Linotype, Georgia, serif;
  font-size: 43px;
  font-weight: 600;
  letter-spacing: -0.045em;
}

.checkout-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  border-top: 1px solid var(--line-light);
  margin-top: 26px;
  padding-top: 25px;
}

.checkout-price strong {
  font-family: Iowan Old Style, Palatino Linotype, Georgia, serif;
  font-size: 48px;
  letter-spacing: -0.045em;
}

.checkout-price span {
  color: rgba(255, 255, 255, 0.45);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.checkout-unit {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
}

.checkout-plan-card ul {
  display: grid;
  gap: 17px;
  border-top: 1px solid var(--line-light);
  margin: 27px 0 0;
  padding: 25px 0 0;
  list-style: none;
}

.checkout-plan-card li {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: start;
  gap: 10px;
}

.checkout-plan-card li > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: rgba(201, 242, 123, 0.14);
  color: var(--lime);
  font-size: 10px;
  font-weight: 900;
}

.checkout-plan-card li p {
  display: grid;
  gap: 3px;
  margin: 1px 0 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  line-height: 1.4;
}

.checkout-plan-card li strong {
  color: #fff;
  font-size: 11px;
}

.payment-card {
  min-height: 630px;
  border: 1px solid rgba(21, 37, 31, 0.1);
  background: rgba(255, 253, 248, 0.95);
  padding: clamp(27px, 4vw, 43px);
}

.payment-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.panel-eyebrow {
  margin: 0 0 7px;
  color: var(--forest);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.payment-card h2,
.account-section-head h2,
.account-error h2 {
  margin: 0;
  font-family: Iowan Old Style, Palatino Linotype, Georgia, serif;
  font-size: clamp(30px, 3vw, 41px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.payfast-wordmark {
  border-radius: 999px;
  background: #e8f4ea;
  color: #177b41;
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 900;
}

.order-lines {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 30px;
}

.order-lines > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 1px;
  color: var(--ink-soft);
  font-size: 12px;
}

.order-lines > div + div {
  border-top: 1px solid var(--line);
}

.order-lines strong {
  color: var(--ink);
}

.order-lines .order-total {
  color: var(--ink);
  font-weight: 850;
}

.order-total strong {
  color: var(--forest);
  font-family: Iowan Old Style, Palatino Linotype, Georgia, serif;
  font-size: 27px;
}

.existing-credit-note {
  display: grid;
  grid-template-columns: 29px 1fr;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  background: var(--sage);
  margin-top: 18px;
  padding: 11px 13px;
}

.existing-credit-note > span {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--lime);
  font-weight: 900;
}

.existing-credit-note p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.45;
}

.existing-credit-note strong {
  color: var(--ink);
}

.checkout-identity {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(223, 233, 213, 0.48);
  margin-top: 24px;
  padding: 11px 13px;
}

.checkout-identity > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--lime);
  font-size: 10px;
  font-weight: 900;
}

.checkout-identity p {
  display: grid;
  gap: 2px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 9px;
}

.checkout-identity strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 10px;
  text-overflow: ellipsis;
}

.checkout-identity a {
  color: var(--forest);
  font-size: 9px;
  font-weight: 850;
  text-underline-offset: 3px;
}

.payfast-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 64px;
  border-radius: 16px;
  background: var(--forest);
  color: #fff;
  margin-top: 24px;
  padding: 8px 10px 8px 19px;
  cursor: pointer;
  box-shadow: 0 15px 30px rgba(23, 60, 48, 0.22);
}

.payfast-button > span {
  display: grid;
  justify-items: start;
  gap: 2px;
}

.payfast-button small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.payfast-button strong {
  font-size: 13px;
}

.payfast-button svg {
  width: 43px;
  height: 43px;
  border-radius: 12px;
  background: var(--lime);
  color: var(--forest);
  padding: 10px;
}

.payfast-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.checkout-message {
  min-height: 17px;
  margin: 10px 2px 0;
  color: #9b362e;
  font-size: 10px;
  line-height: 1.45;
}

.payment-assurances {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 19px;
}

.payment-assurances > div {
  display: grid;
  grid-template-columns: 21px 1fr;
  gap: 9px;
}

.payment-assurances > div > span {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  background: var(--sage);
  color: var(--forest);
  font-size: 9px;
  font-weight: 900;
}

.payment-assurances p {
  display: grid;
  gap: 2px;
  margin: 1px 0 0;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.4;
}

.payment-assurances strong {
  color: var(--ink);
  font-size: 10px;
}

.other-packs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
  color: var(--ink-soft);
  font-size: 10px;
}

.other-packs > span {
  font-weight: 850;
  text-transform: uppercase;
}

.other-packs a {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.64);
  padding: 8px 11px;
  color: var(--forest);
  font-weight: 800;
  text-decoration: none;
}

.status-main {
  display: grid;
  min-height: calc(100vh - 220px);
  place-items: center;
  padding: 70px 0 90px;
}

.payment-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(720px, 100%);
  min-height: 570px;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 253, 248, 0.93);
  padding: clamp(35px, 6vw, 70px);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.payment-state h1 {
  margin: 0;
  font-family: Iowan Old Style, Palatino Linotype, Georgia, serif;
  font-size: clamp(42px, 5vw, 63px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.payment-state > p:not(.panel-eyebrow) {
  max-width: 530px;
  margin: 17px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
}

.status-spinner {
  width: 66px;
  height: 66px;
  border: 3px solid rgba(23, 60, 48, 0.12);
  border-top-color: var(--forest);
  border-radius: 50%;
  margin-bottom: 28px;
  animation: orbit 1s linear infinite;
}

.status-safety {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: start;
  gap: 10px;
  max-width: 510px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(223, 233, 213, 0.48);
  margin-top: 30px;
  padding: 14px;
  text-align: left;
}

.status-safety span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--lime);
  font-family: Georgia, serif;
}

.status-safety p {
  margin: 2px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.5;
}

.status-icon {
  display: grid;
  width: 80px;
  height: 80px;
  place-items: center;
  border-radius: 25px;
  margin-bottom: 27px;
  background: var(--forest);
  color: var(--lime);
  box-shadow: 0 16px 32px rgba(23, 60, 48, 0.2);
  font-size: 35px;
  font-weight: 900;
  transform: rotate(-3deg);
}

.status-icon.cancelled,
.status-icon.error {
  background: #9b362e;
  color: #fff;
}

.unlocked-credit {
  display: flex;
  align-items: baseline;
  gap: 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 29px;
  padding: 18px 12px;
}

.unlocked-credit strong {
  color: var(--forest);
  font-family: Iowan Old Style, Palatino Linotype, Georgia, serif;
  font-size: 45px;
}

.unlocked-credit span {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.status-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.status-primary,
.status-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 999px;
  padding: 0 21px;
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
}

.status-primary {
  background: var(--forest);
  color: #fff;
}

.status-secondary {
  border: 1px solid var(--line);
  color: var(--forest);
}

.account-main {
  padding-top: 70px;
}

.account-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.48fr);
  align-items: end;
  gap: clamp(40px, 7vw, 90px);
  margin-bottom: 45px;
}

.account-heading .kicker {
  margin-bottom: 18px;
}

.account-heading > p {
  margin: 0 0 4px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
}

.account-loading {
  min-height: 460px;
  color: var(--ink-soft);
}

.account-loading span {
  border-color: rgba(23, 60, 48, 0.14);
  border-top-color: var(--forest);
}

.account-identity {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 253, 248, 0.78);
  margin-bottom: 16px;
  padding: 12px 14px;
}

.account-avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 13px;
  background: var(--forest);
  color: var(--lime);
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 800;
}

.account-identity div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.account-identity p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-identity strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
}

.account-identity button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--forest);
  padding: 10px 14px;
  cursor: pointer;
  font-size: 9px;
  font-weight: 850;
}

.account-identity button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.account-action-message {
  min-height: 16px;
  margin: -5px 0 16px;
  color: #9b362e;
  font-size: 10px;
  line-height: 1.5;
}

.account-action-message:empty {
  min-height: 0;
  margin: 0;
}

.balance-card {
  position: relative;
  display: grid;
  grid-template-columns: 0.75fr 1.25fr auto;
  align-items: center;
  gap: clamp(25px, 5vw, 65px);
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 20%, rgba(201, 242, 123, 0.16), transparent 18rem),
    var(--forest-deep);
  color: #fff;
  padding: clamp(30px, 5vw, 52px);
  box-shadow: var(--shadow-lg);
}

.balance-main p {
  margin: 0;
  color: var(--lime);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.balance-main strong {
  display: block;
  margin: 4px 0 -3px;
  font-family: Iowan Old Style, Palatino Linotype, Georgia, serif;
  font-size: 76px;
  line-height: 1;
}

.balance-main > span {
  color: rgba(255, 255, 255, 0.54);
  font-size: 11px;
}

.balance-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--line-light);
  border-right: 1px solid var(--line-light);
}

.balance-stats div {
  display: grid;
  gap: 5px;
  padding: 8px clamp(15px, 3vw, 32px);
  text-align: center;
}

.balance-stats strong {
  font-family: Iowan Old Style, Palatino Linotype, Georgia, serif;
  font-size: 30px;
}

.balance-stats span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.balance-actions {
  display: grid;
  gap: 8px;
}

.balance-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 17px;
  font-size: 10px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.balance-primary {
  background: var(--lime);
  color: var(--forest-deep);
}

.balance-secondary {
  border: 1px solid var(--line-light);
  color: #fff;
}

.account-section {
  border: 1px solid var(--line);
  border-radius: 25px;
  background: rgba(255, 253, 248, 0.75);
  margin-top: 22px;
  padding: clamp(24px, 4vw, 38px);
}

.account-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}

.account-section-head > span {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.account-list,
.purchase-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.video-library-item {
  display: grid;
  grid-template-columns: 145px 1fr auto;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--paper);
  padding: 10px 14px 10px 10px;
}

.video-library-item img,
.video-placeholder {
  display: grid;
  width: 145px;
  aspect-ratio: 16 / 9;
  place-items: center;
  border-radius: 11px;
  background: var(--forest-deep);
  color: var(--lime);
  object-fit: cover;
}

.video-library-item h3,
.purchase-list h3,
.account-empty h3 {
  margin: 5px 0 3px;
  font-family: Iowan Old Style, Palatino Linotype, Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.video-library-item p,
.purchase-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
}

.video-library-item .library-revision {
  margin-top: 5px;
  color: var(--forest);
  font-size: 9px;
  font-weight: 800;
}

.library-status {
  color: var(--forest);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.library-status.failed {
  color: #9b362e;
}

.video-library-item > a {
  border-radius: 999px;
  background: var(--forest);
  color: #fff;
  padding: 11px 15px;
  font-size: 9px;
  font-weight: 850;
  text-decoration: none;
}

.purchase-list article {
  display: grid;
  grid-template-columns: 37px 1fr auto;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid var(--line);
  padding: 7px 2px 16px;
}

.purchase-list article:last-child {
  border-bottom: 0;
}

.purchase-mark {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border-radius: 12px;
  background: var(--sage);
  color: var(--forest);
  font-weight: 900;
}

.purchase-mark.pending {
  background: var(--canvas-deep);
}

.purchase-list article > div:last-child {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.purchase-list article > div:last-child strong {
  color: var(--forest);
  font-size: 12px;
}

.purchase-list article > div:last-child span {
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}

.account-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 260px;
  justify-content: center;
  text-align: center;
}

.account-empty > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  background: var(--sage);
  color: var(--forest);
}

.account-empty p {
  max-width: 450px;
  margin: 5px 0 17px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
}

.account-empty a {
  color: var(--forest);
  font-size: 10px;
  font-weight: 850;
}

.account-empty.compact {
  min-height: 150px;
}

.account-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 430px;
  justify-content: center;
  text-align: center;
}

.account-error > span {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border-radius: 19px;
  background: #9b362e;
  color: #fff;
  margin-bottom: 20px;
  font-size: 25px;
  font-weight: 900;
}

.account-error p {
  color: var(--ink-soft);
  font-size: 11px;
}

.account-error button {
  border-radius: 999px;
  background: var(--forest);
  color: #fff;
  padding: 12px 18px;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}

.commerce-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 31px 0 42px;
  color: var(--ink-soft);
  font-size: 10px;
}

.commerce-footer p {
  margin: 0;
}

.commerce-footer a {
  color: var(--forest);
  font-weight: 850;
  text-underline-offset: 3px;
}

.commerce-page button:focus-visible,
.commerce-page a:focus-visible {
  outline: 3px solid rgba(219, 117, 85, 0.45);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .commerce-intro,
  .account-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .commerce-intro > p:last-child {
    grid-column: 1;
    grid-row: auto;
    max-width: 650px;
  }

  .checkout-grid {
    grid-template-columns: 1fr;
    max-width: 760px;
    margin-inline: auto;
  }

  .balance-card {
    grid-template-columns: 1fr 1.5fr;
  }

  .balance-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .commerce-header,
  .commerce-main,
  .status-main,
  .commerce-footer {
    width: min(100% - 30px, 680px);
  }

  .commerce-step {
    display: none;
  }

  .commerce-main,
  .status-main {
    padding: 52px 0 72px;
  }

  .commerce-intro h1,
  .account-heading h1 {
    font-size: clamp(43px, 12vw, 62px);
  }

  .checkout-plan-card,
  .payment-card,
  .payment-state,
  .balance-card,
  .account-section {
    border-radius: 22px;
  }

  .checkout-plan-card,
  .payment-card {
    min-height: auto;
  }

  .payment-state {
    min-height: 520px;
  }

  .balance-card {
    grid-template-columns: 1fr;
  }

  .balance-stats {
    border-top: 1px solid var(--line-light);
    border-right: 0;
    border-bottom: 1px solid var(--line-light);
    border-left: 0;
    padding: 17px 0;
  }

  .balance-main {
    text-align: center;
  }

  .video-library-item {
    grid-template-columns: 110px 1fr;
  }

  .video-library-item img,
  .video-placeholder {
    width: 110px;
  }

  .video-library-item > a {
    grid-column: 1 / -1;
    text-align: center;
  }

  .commerce-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .commerce-back {
    width: 42px;
    height: 42px;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    white-space: nowrap;
    text-indent: 100px;
  }

  .commerce-back svg {
    flex: 0 0 auto;
    margin-left: -100px;
  }

  .commerce-intro h1,
  .account-heading h1 {
    font-size: 43px;
  }

  .checkout-plan-card,
  .payment-card,
  .payment-state,
  .balance-card,
  .account-section {
    padding: 25px 20px;
  }

  .payment-card-head {
    flex-direction: column-reverse;
  }

  .status-actions,
  .status-actions a {
    width: 100%;
  }

  .balance-stats div {
    padding-inline: 6px;
  }

  .balance-actions {
    grid-template-columns: 1fr;
  }

  .account-identity button,
  .balance-actions a,
  .video-library-item > a {
    min-height: 44px;
    font-size: 12px;
  }

  .balance-actions a,
  .video-library-item > a {
    display: grid;
    place-items: center;
  }

  .account-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .video-library-item {
    grid-template-columns: 1fr;
  }

  .video-library-item img,
  .video-placeholder {
    width: 100%;
  }

  .purchase-list article {
    grid-template-columns: 37px 1fr;
  }

  .purchase-list article > div:last-child {
    grid-column: 2;
    justify-items: start;
  }
}
