.checkout-shell {
  min-height: 100vh;
  margin-inline: calc(var(--bs-gutter-x) * -.5);
  padding-bottom: 4rem;
  background: var(--cream);
  color: var(--charcoal);
}

.checkout-shell__header {
  position: sticky;
  top: 0;
  z-index: 1020;
  border-bottom: 4px solid var(--primary-yellow);
  background: var(--primary-blue);
}

.checkout-shell__header-inner,
.checkout-shell__intro,
.checkout-shell__status,
.checkout-shell__content {
  width: min(calc(100% - 2rem), 78rem);
  margin-inline: auto;
}

.checkout-shell__header-inner {
  min-height: 4.4rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
}

.checkout-shell__brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--cream);
  text-decoration: none;
}

.checkout-shell__brand:hover,
.checkout-shell__brand:focus {
  color: var(--cream);
}

.checkout-shell__brand img {
  width: 2.5rem !important;
  height: 2.5rem !important;
}

.checkout-shell__brand > span {
  display: grid;
  line-height: 1.05;
}

.checkout-shell__brand strong,
.checkout-shell__header-copy > strong {
  font-family: Raleway, sans-serif;
}

.checkout-shell__brand small {
  margin-top: .18rem;
  color: var(--primary-yellow);
  font-size: .74rem;
}

.checkout-shell__header-copy {
  justify-self: center;
  color: var(--cream);
  text-align: center;
}

.checkout-shell__header-copy > span {
  display: block;
  color: var(--accent-teal);
  font-family: Comfortaa, sans-serif;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.checkout-shell__header-copy > strong {
  display: block;
  margin-top: .15rem;
  font-size: .95rem;
}

.checkout-shell__header-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.checkout-shell__header-actions .btn {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  font-weight: 800;
}

.checkout-shell__save {
  border: 1px solid var(--accent-teal);
  color: var(--cream);
}

.checkout-shell__save:hover,
.checkout-shell__save:focus {
  background: var(--accent-teal);
  color: var(--charcoal);
}

.checkout-shell__back {
  background: var(--primary-yellow);
  color: var(--charcoal);
}

.checkout-shell__back:hover,
.checkout-shell__back:focus {
  background: var(--cream);
  color: var(--charcoal);
}

.checkout-shell__intro {
  padding: clamp(1.75rem, 4vw, 3rem) 0 1.25rem;
}

.checkout-shell__intro > p {
  margin: 0 0 .45rem;
  color: var(--timberwolf-variant);
  font-family: Comfortaa, sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.checkout-shell__intro h1 {
  margin: 0 0 .45rem;
  color: var(--primary-blue);
  font-family: Raleway, sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -.02em;
}

.checkout-shell__intro > span {
  color: var(--charcoal-light);
  font-size: 1rem;
}

.checkout-shell__status:empty {
  display: none;
}

.checkout-shell__content {
  padding-inline: 0 !important;
}

.checkout-shell #v-pills-tab {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .55rem;
  padding: .75rem;
  border: 1px solid var(--primary-blue-extra-light);
  border-radius: 1rem;
  background: var(--white);
  box-shadow: var(--bs-box-shadow-sm);
}

.checkout-shell #v-pills-tab.checkout-progress--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkout-shell #v-pills-tab .nav-link {
  min-height: 3rem;
  border: 1px solid var(--accent-teal);
  border-radius: .7rem;
  background: var(--cream);
  color: var(--charcoal);
  font-weight: 800;
}

.checkout-shell #v-pills-tab .nav-link.active {
  border-color: var(--primary-blue);
  background: var(--primary-blue);
  color: var(--cream);
}

.checkout-shell #v-pills-tab .nav-link:focus-visible,
.checkout-shell__header-actions .btn:focus-visible,
.checkout-shell button:focus-visible,
.checkout-shell a:focus-visible {
  outline: 3px solid var(--primary-yellow);
  outline-offset: 2px;
}

.checkout-shell #v-pills-tabContent {
  overflow: hidden;
  border: 1px solid var(--primary-blue-extra-light);
  border-radius: 1rem;
  background: var(--white);
  box-shadow: var(--bs-box-shadow-sm);
}

.checkout-shell .tab-pane {
  padding: clamp(.35rem, 2vw, 1rem);
}

.checkout-shell .form-label {
  margin-bottom: .15rem;
  color: var(--primary-blue);
  font-weight: 800;
}

.checkout-shell .form-control,
.checkout-shell .form-select {
  min-height: 2.85rem;
  border-color: var(--accent-teal-dark);
  background: var(--white);
}

.checkout-shell .btn-success,
.checkout-shell .btn-primary,
.checkout-shell #proceed_to_payment_button {
  min-height: 2.75rem;
}

.checkout-shell #checkout_flow_error[hidden],
.checkout-shell #checkout_terms_error[hidden],
.checkout-shell #error-message[hidden] {
  display: none;
}

.checkout-review {
  padding: clamp(.65rem, 2vw, 1.25rem);
}

.checkout-review__intro {
  max-width: 44rem;
  margin-bottom: 1.25rem;
}

.checkout-review__intro p,
.checkout-review__section-heading p,
.checkout-summary__header p,
.checkout-summary__payment-label,
.checkout-enrolment__student,
.checkout-enrolment__payment-options > span {
  margin: 0 0 .35rem;
  color: var(--primary-blue-light);
  font-family: Comfortaa, sans-serif;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.checkout-review__intro h2,
.checkout-review__section-heading h2,
.checkout-summary__header h2 {
  margin: 0;
  color: var(--primary-blue);
  font-family: Raleway, sans-serif;
  font-weight: 800;
  letter-spacing: -.015em;
}

.checkout-review__intro h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.checkout-review__intro > span {
  display: block;
  margin-top: .4rem;
  color: var(--charcoal-light);
}

.checkout-review__payment-error,
.checkout-review__guarantee {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  border-radius: .8rem;
}

.checkout-review__payment-error i,
.checkout-review__guarantee i {
  flex: 0 0 auto;
  font-size: 1.35rem;
  line-height: 1.2;
}

.checkout-review__payment-error div,
.checkout-review__guarantee div {
  display: grid;
  gap: .1rem;
}

.checkout-review__guarantee {
  margin-bottom: 1.5rem;
  padding: .9rem 1rem;
  border: 1px solid var(--accent-teal);
  background: var(--accent-teal-extra-light);
  color: var(--charcoal);
}

.checkout-review__guarantee i {
  color: var(--primary-blue);
}

.checkout-review__layout {
  --bs-gutter-x: clamp(1rem, 3vw, 2rem);
  --bs-gutter-y: 1.5rem;
}

.checkout-review__section-heading {
  margin: .25rem 0 .85rem;
}

.checkout-review__section-heading h2 {
  font-size: 1.2rem;
}

.checkout-enrolment + .checkout-enrolment,
.checkout-enrolment:first-of-type {
  margin-top: .85rem;
}

.checkout-enrolment .enrollment-card {
  overflow: hidden;
  border: 1px solid var(--primary-blue-extra-light);
  border-radius: .9rem;
  background: var(--white);
  box-shadow: var(--bs-box-shadow-sm);
}

.checkout-enrolment .card-body {
  padding: clamp(1rem, 3vw, 1.4rem);
}

.checkout-enrolment h3 {
  color: var(--primary-blue) !important;
  font-family: Raleway, sans-serif;
  font-weight: 800;
}

.checkout-enrolment .meta {
  row-gap: .45rem !important;
  color: var(--charcoal-light);
  font-size: .88rem;
}

.checkout-enrolment .meta-item i {
  color: var(--primary-blue-light);
}

.checkout-enrolment__divider {
  margin: 1rem 0;
  color: var(--primary-blue-extra-light);
  opacity: 1;
}

.checkout-enrolment__payment-options {
  display: grid;
  gap: .5rem;
}

.checkout-enrolment__payment-options .brand-toggle {
  margin: 0;
  padding: 0;
}

.checkout-enrolment__payment-options .nav-link {
  min-height: 2.55rem;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--accent-teal-dark);
  background: var(--cream);
  color: var(--charcoal);
  font-weight: 800;
}

.checkout-enrolment__payment-options .nav-link.active {
  border-color: var(--primary-blue);
  background: var(--primary-blue);
  color: var(--cream);
}

.checkout-enrolment__payment-options.is-updating .nav-link {
  pointer-events: none;
  opacity: .68;
}

.checkout-review .price-summary > .tab-pane {
  padding: .1rem 0 0;
}

.checkout-enrolment .price-callout {
  width: 100%;
  margin-bottom: .4rem !important;
  padding: .75rem .85rem;
  border-radius: .45rem;
}

.checkout-enrolment .price-callout--today,
.checkout-enrolment .price-callout--next {
  padding: .45rem .1rem;
  border-radius: 0;
}

.checkout-enrolment .price-callout--today {
  border: 0;
  background: transparent;
}

.checkout-enrolment .price-callout--next {
  border: 0;
  border-top: 1px solid var(--primary-blue-extra-light);
  background: transparent;
}

.checkout-enrolment__discount-note {
  display: flex;
  align-items: flex-start;
  gap: .4rem;
  margin-top: .65rem;
  color: var(--primary-blue);
  font-size: .82rem;
  font-weight: 800;
}

.checkout-enrolment__discount-note i {
  color: var(--accent-teal-dark);
}

.checkout-review__summary {
  position: static;
}

.checkout-summary {
  overflow: hidden;
  border: 1px solid var(--primary-blue-extra-light);
  border-radius: 1rem;
  background: var(--white);
  box-shadow: var(--bs-box-shadow);
}

.checkout-summary__header {
  padding: 1.15rem 1.25rem .85rem;
  border-top: 5px solid var(--primary-yellow);
}

.checkout-summary__header h2 {
  font-size: 1.45rem;
}

.checkout-summary__today {
  margin: 0 1.25rem;
  padding: 1rem;
  border-radius: .7rem;
  background: var(--primary-blue);
  color: var(--cream);
}

.checkout-summary__today-label {
  font-size: .92rem;
  font-weight: 800;
}

.checkout-summary__today-amount {
  color: var(--primary-yellow);
  font-family: Raleway, sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1;
}

.checkout-summary__section {
  margin: 0 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--primary-blue-extra-light);
  color: var(--charcoal);
}

.checkout-summary__section h3,
.checkout-summary__payment-label {
  margin: 0 0 .65rem;
  color: var(--primary-blue-light);
  font-family: Comfortaa, sans-serif;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.checkout-summary__adjustments {
  margin-top: .35rem;
}

.checkout-summary__remove-code {
  margin-left: .25rem;
  padding: .1rem;
  border: 0;
  background: transparent;
  color: var(--charcoal-light);
  line-height: 1;
}

.checkout-summary__remove-code:hover,
.checkout-summary__remove-code:focus {
  color: var(--primary-blue);
}

.checkout-summary__upcoming {
  margin-top: .9rem;
  padding-top: .8rem;
  border-top: 1px solid var(--accent-teal);
}

.checkout-summary__upcoming h3 {
  margin: 0 0 .45rem;
  color: var(--accent-teal);
  font-family: Comfortaa, sans-serif;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.checkout-summary__upcoming > p {
  margin: 0 0 .65rem;
  color: var(--accent-teal-extra-light);
  font-size: .82rem;
}

.checkout-summary__schedule-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: .4rem 0;
  font-size: .9rem;
}

.checkout-summary__schedule-value {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.checkout-summary__schedule-value strong {
  color: var(--cream);
  font-size: 1rem;
  white-space: nowrap;
}

.checkout-summary__schedule-value small {
  color: var(--accent-teal-extra-light);
}

.checkout-summary__upcoming .checkout-summary__schedule-end {
  margin: .45rem 0 0;
  padding-top: .55rem;
  border-top: 1px solid var(--accent-teal);
}

.checkout-summary__flexibility {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  margin: 1rem 1.25rem 0;
  padding: .75rem;
  border-radius: .55rem;
  background: var(--accent-teal-extra-light);
  color: var(--charcoal-light);
  font-size: .82rem;
}

.checkout-summary__flexibility i {
  color: var(--primary-blue);
}

.checkout-summary__complete {
  margin-top: 1rem;
  padding: 1.15rem 1.25rem 1.25rem;
  border-top: 1px solid var(--primary-blue-extra-light);
  background: var(--cream);
}

.checkout-summary__complete > h3 {
  margin: 1.1rem 0 .75rem;
  color: var(--primary-blue);
  font-family: Raleway, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
}

.checkout-summary__code-panel {
  border-bottom: 1px solid var(--primary-blue-extra-light);
}

.checkout-summary__code-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 0 0 .85rem;
  border: 0;
  background: transparent;
  color: var(--primary-blue);
  text-align: left;
  font-size: .88rem;
  font-weight: 800;
}

.checkout-summary__code-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.checkout-summary__code-toggle i {
  transition: transform .2s ease;
}

.checkout-summary__code-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .5rem;
  padding: .15rem 0 .75rem;
}

.checkout-summary__code-input {
  position: relative;
}

.checkout-summary__code-input #gift_card_status_icon {
  position: absolute;
  top: 50%;
  right: .7rem;
  transform: translateY(-50%);
}

.checkout-summary__code-status {
  min-height: 1.25rem;
  margin: -.35rem 0 .65rem;
  font-size: .8rem;
}

.checkout-summary__confirmation {
  margin: .75rem 0;
  padding: .8rem;
  border: 1px solid var(--accent-teal);
  border-radius: .6rem;
  background: var(--white);
  font-size: .88rem;
}

.checkout-summary__confirmation .form-check-input {
  margin-top: .2rem;
}

.checkout-summary__payment-label {
  margin-top: 1rem;
}

.checkout-payment-method {
  display: grid;
  gap: .7rem;
  padding: .85rem;
  border: 1px solid var(--accent-teal);
  border-radius: .65rem;
  background: var(--white);
}

.checkout-payment-method__details {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.checkout-payment-method__icon {
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-teal-extra-light);
  color: var(--primary-blue);
  font-size: 1.2rem;
}

.checkout-payment-method p {
  margin: 0;
}

.checkout-payment-method span {
  display: block;
  color: var(--charcoal-light);
  font-size: .8rem;
}

.checkout-payment-method__replace {
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary-blue-light);
  font-size: .82rem;
  font-weight: 800;
  text-decoration: underline;
}

.checkout-summary__stripe-note {
  display: flex;
  align-items: flex-start;
  gap: .45rem;
  margin: .65rem 0 0;
  color: var(--charcoal-light);
  font-size: .78rem;
}

.checkout-summary__stripe-note a,
.checkout-summary__support a {
  color: var(--primary-blue-light);
  font-weight: 800;
}

.checkout-summary__submit-wrap {
  margin-top: .85rem;
}

.checkout-summary__submit {
  min-height: 3.25rem !important;
  font-size: 1rem;
  font-weight: 800;
}

.checkout-summary__support {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .85rem 1rem;
  color: var(--charcoal-light);
  font-size: .82rem;
}

.checkout-review__footer {
  padding: 1rem clamp(.65rem, 2vw, 1.25rem) .25rem;
}

@media (max-width: 767.98px) {
  .checkout-shell__header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .checkout-shell #v-pills-tab {
    grid-template-columns: 1fr 1fr;
  }

  .checkout-shell #v-pills-tab .nav-link {
    min-height: 3.4rem;
    padding-inline: .55rem;
    font-size: .82rem;
  }

  .checkout-review__summary-column {
    order: 2;
  }
}

@media (min-width: 992px) and (min-height: 760px) {
  .checkout-shell #v-pills-tabContent {
    overflow: visible;
  }

  .checkout-review__summary--can-stick {
    position: sticky;
    top: 5.5rem;
  }
}

@media (max-width: 420px) {
  .checkout-shell__brand > span {
    display: none;
  }

  .checkout-review {
    padding-inline: .25rem;
  }

  .checkout-summary__code-entry {
    grid-template-columns: 1fr;
  }

  .checkout-summary__code-entry .btn {
    width: 100%;
  }
}
