.cart-link,
.cart-button {
  position: relative;
}

.site-nav > .cart-button.is-active {
  background: #8a6048;
  border-color: #8a6048;
  color: #fff;
}

.site-nav > .cart-button.is-active svg {
  stroke: currentColor;
}

.site-nav > .cart-button.is-active .cart-count {
  background: #fdfcfb;
  border-color: #8a6048;
  color: #8a6048;
}

.cart-button__label {
  margin-left: 8px;
}

.cart-count {
  align-items: center;
  background: #8a6048;
  border: 2px solid #fdfcfb;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 800;
  height: 23px;
  justify-content: center;
  min-width: 23px;
  padding: 0 5px;
  position: absolute;
  right: -8px;
  top: -8px;
}

.cart-count[hidden] {
  display: none;
}

.cart-modal[hidden] {
  display: none;
}

.cart-modal {
  inset: 0;
  position: fixed;
  z-index: 3000;
}

.cart-modal__backdrop {
  background: rgba(29, 26, 24, 0.66);
  inset: 0;
  position: absolute;
}

.cart-modal__dialog {
  background: #fdfcfb;
  border: 1px solid rgba(125, 55, 29, 0.14);
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(29, 26, 24, 0.26);
  left: 50%;
  max-width: min(92vw, 560px);
  padding: 34px 38px 30px;
  position: absolute;
  text-align: center;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}

.cart-modal__close {
  background: transparent;
  border: 0;
  color: #7a371d;
  font-size: 2rem;
  line-height: 1;
  position: absolute;
  right: 24px;
  top: 22px;
}

.cart-modal__check {
  align-items: center;
  background: #f1e8df;
  border-radius: 999px;
  color: #8a6048;
  display: inline-flex;
  font-size: 2.2rem;
  height: 88px;
  justify-content: center;
  margin-bottom: 16px;
  width: 88px;
}

.cart-modal h2 {
  color: #7a371d;
  font-family: "Baloo 2", "Montserrat", sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.25rem);
  line-height: 1.1;
  margin: 0;
}

.cart-modal__item {
  align-items: center;
  border-block: 1px solid rgba(125, 55, 29, 0.16);
  display: grid;
  gap: 18px;
  grid-template-columns: 96px minmax(0, 1fr);
  margin: 26px 0;
  padding: 22px 0;
  text-align: left;
}

.cart-modal__item img {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
  width: 96px;
}

.cart-modal__item strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.3;
}

.cart-modal__item p {
  color: #6a625c;
  font-size: 0.82rem;
  margin: 4px 0 8px;
}

.cart-modal__item b {
  color: #7a371d;
  font-size: 1.25rem;
}

.cart-modal__actions {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}

.cart-modal__secondary,
.cart-modal__primary,
.cart-action {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
}

.cart-modal__secondary {
  background: transparent;
  border: 1.5px solid #8a6048;
  color: #8a6048;
}

.cart-modal__primary,
.cart-action {
  background: #8a6048;
  border: 1.5px solid #8a6048;
  color: #fff;
}

.cart-page {
  margin: 0 auto;
  max-width: 1180px;
  padding: 44px 34px 54px;
}

.cart-page h1 {
  font-family: "Baloo 2", "Montserrat", sans-serif;
  font-size: clamp(2.8rem, 7vw, 4.2rem);
  line-height: 1;
  margin: 0 0 10px;
}

.cart-page__lead {
  color: #4d4742;
  margin: 0 0 30px;
}

.cart-layout,
.checkout-layout {
  align-items: start;
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
}

.cart-list {
  display: grid;
  gap: 14px;
}

.cart-item {
  align-items: center;
  background: rgba(255, 250, 245, 0.68);
  border: 1px solid rgba(125, 55, 29, 0.14);
  border-radius: 10px;
  display: grid;
  gap: 20px;
  grid-template-columns: 138px minmax(0, 1fr) auto 42px;
  padding: 14px;
}

.cart-item__image img {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  height: 138px;
  object-fit: cover;
  width: 138px;
}

.cart-item h2,
.checkout-summary h3 {
  font-family: "Baloo 2", "Montserrat", sans-serif;
  line-height: 1.15;
  margin: 0;
}

.cart-item p,
.checkout-summary p {
  margin: 6px 0 12px;
}

.cart-item span,
.checkout-summary article span {
  background: #efe4d9;
  border-radius: 7px;
  color: #7a371d;
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 11px;
}

.cart-item strong {
  color: #7a371d;
  font-size: 1.65rem;
}

.cart-item button {
  background: transparent;
  border: 0;
  color: #8a6048;
  padding: 8px;
}

.cart-item button svg {
  height: 25px;
  width: 25px;
}

.cart-summary,
.checkout-card {
  background: rgba(255, 250, 245, 0.68);
  border: 1px solid rgba(125, 55, 29, 0.14);
  border-radius: 12px;
  padding: 26px;
}

.cart-summary {
  position: sticky;
  top: 104px;
}

.cart-summary h2,
.checkout-card h2 {
  color: #7a371d;
  font-family: "Baloo 2", "Montserrat", sans-serif;
  font-size: 1.65rem;
  margin: 0 0 22px;
}

.cart-summary__rows div,
.cart-summary__total,
.checkout-summary__total {
  align-items: center;
  border-top: 1px solid rgba(125, 55, 29, 0.14);
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
}

.cart-summary__rows div:first-child {
  border-top: 0;
}

.cart-summary__total,
.checkout-summary__total {
  color: #7a371d;
  font-size: 1.35rem;
  font-weight: 800;
}

.cart-summary__total strong,
.checkout-summary__total strong {
  text-align: right;
}

.cart-summary__total strong:not(:only-child),
.checkout-summary__total strong:not(:only-child) {
  line-height: 1.2;
}

.checkout-summary__total--stacked {
  color: #4d4742;
  font-size: 1rem;
  font-weight: 700;
}

.cart-summary__rows p,
.checkout-summary > p {
  background: #efe4d9;
  border-radius: 8px;
  margin: 14px 0 22px;
  padding: 13px 14px;
}

.cart-summary__rows .cart-discount-note {
  background: transparent;
  border-top: 0;
  color: #6a625c;
  font-size: 0.84rem;
  line-height: 1.45;
  margin: -6px 0 10px;
  padding: 0;
}

.cart-discount-row strong {
  color: #7a371d;
}

.license-switch {
  border: 0;
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
}

.license-switch legend {
  font-weight: 800;
  margin-bottom: 8px;
}

.license-switch legend span {
  color: #6a625c;
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 2px;
}

.license-switch label {
  align-items: start;
  background: #fff;
  border: 1px solid rgba(125, 55, 29, 0.14);
  border-radius: 8px;
  display: grid;
  gap: 2px 10px;
  grid-template-columns: auto 1fr;
  padding: 12px;
}

.license-switch small {
  color: #6a625c;
  grid-column: 2;
  line-height: 1.45;
}

.discount-form {
  border-top: 1px solid rgba(125, 55, 29, 0.14);
  display: grid;
  gap: 9px;
  margin: 2px 0 18px;
  padding-top: 18px;
}

.discount-form label {
  color: #7a371d;
  font-weight: 800;
}

.discount-form__row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.discount-form__field {
  display: block;
  position: relative;
}

.discount-form__field input {
  background: #fff;
  border: 1px solid rgba(125, 55, 29, 0.18);
  border-radius: 8px;
  inline-size: 100%;
  min-height: 44px;
  padding: 0 42px 0 12px;
  text-transform: uppercase;
}

.discount-form__row > button[type="submit"] {
  background: #8a6048;
  border: 1px solid #8a6048;
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
  min-height: 44px;
  padding: 0 15px;
}

.discount-form__clear {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #8a6048;
  cursor: pointer;
  display: inline-flex;
  font-size: 1.35rem;
  font-weight: 800;
  height: 30px;
  justify-content: center;
  line-height: 1;
  min-height: 0;
  padding: 0;
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
}

.discount-form__clear:hover {
  background: rgba(138, 96, 72, 0.1);
}

.discount-form__clear[hidden] {
  display: none;
}

.discount-form p {
  color: #6a625c;
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0;
}

.discount-form p strong {
  color: #4f6f28;
}

.discount-form__saved {
  align-items: center;
  background: #e8f0df;
  border: 1px solid rgba(79, 111, 40, 0.22);
  border-radius: 999px;
  color: #4f6f28;
  display: inline-flex;
  font-weight: 900;
  height: 20px;
  justify-content: center;
  margin-right: 6px;
  width: 20px;
}

.cart-note,
.cart-back {
  color: #5f5750;
  margin-top: 20px;
}

.cart-back {
  color: #7a371d;
  display: inline-flex;
  font-weight: 700;
  text-decoration: underline;
}

.cart-empty {
  background: #fff;
  border: 1px dashed rgba(125, 55, 29, 0.28);
  border-radius: 10px;
  padding: 28px;
}

.is-disabled {
  opacity: 0.48;
  pointer-events: none;
}

.checkout-steps {
  align-items: center;
  color: #7a371d;
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-bottom: 34px;
}

.checkout-steps span {
  align-items: center;
  border: 1px solid rgba(125, 55, 29, 0.24);
  border-radius: 999px;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.checkout-steps strong span {
  background: #8a6048;
  color: #fff;
}

.checkout-form {
  display: grid;
  gap: 22px;
}

.checkout-form__section {
  background: rgba(255, 250, 245, 0.5);
  border: 1px solid rgba(125, 55, 29, 0.14);
  border-radius: 10px;
  padding: 24px;
}

.checkout-form__section h2 {
  color: #7a371d;
  font-family: "Baloo 2", "Montserrat", sans-serif;
  margin: 0 0 22px;
}

.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
}

.form-grid label,
.form-grid .form-wide {
  display: grid;
  gap: 8px;
}

.form-grid small {
  color: #6a625c;
  font-size: 0.82rem;
  line-height: 1.45;
}

.form-grid .form-wide {
  grid-column: 1 / -1;
}

[data-school-only][hidden] {
  display: none;
}

.form-grid input {
  background: #fff;
  border: 1px solid rgba(43, 36, 31, 0.16);
  border-radius: 8px;
  min-height: 48px;
  padding: 0 14px;
}

.checkout-form__hint {
  color: #6a625c;
  font-size: 0.92rem;
  line-height: 1.5;
  margin: -10px 0 20px;
}

.invoice-request {
  background: rgba(239, 228, 217, 0.48);
  border: 1px solid rgba(125, 55, 29, 0.12);
  border-radius: 10px;
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding: 16px;
}

.invoice-request[hidden] {
  display: none;
}

.invoice-request p {
  color: #7a371d;
  font-weight: 800;
  margin: 0;
}

.invoice-request small {
  color: #6a625c;
  line-height: 1.45;
}

.invoice-request__options {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.invoice-request__options label {
  align-items: center;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(125, 55, 29, 0.12);
  border-radius: 9px;
  display: flex;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
}

.invoice-request__options input {
  accent-color: #8a6048;
}

.invoice-request--locked {
  background: rgba(255, 250, 245, 0.7);
}

.checkout-summary__items {
  display: grid;
  gap: 18px;
}

.checkout-license {
  background: #efe4d9;
  border-radius: 8px;
  color: #4d4742;
  margin: 0 0 20px;
  padding: 13px 14px;
}

.checkout-discount {
  border: 1px solid rgba(125, 55, 29, 0.14);
  border-radius: 8px;
  color: #4d4742;
  margin: -8px 0 20px;
  padding: 12px 14px;
}

.checkout-discount strong {
  color: #7a371d;
}

.checkout-discount small {
  color: #6a625c;
}

.checkout-invoice-note {
  background: rgba(239, 228, 217, 0.54);
  border-radius: 8px;
  color: #5f5750;
  font-size: 0.9rem;
  line-height: 1.45;
  margin: -8px 0 20px;
  padding: 12px 14px;
}

.checkout-invoice-note strong {
  color: #7a371d;
}

.checkout-summary article {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 74px minmax(0, 1fr) auto;
}

.checkout-summary article img {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
}

.checkout-summary article strong {
  color: #7a371d;
}

.agreement-list {
  display: grid;
  gap: 14px;
}

.agreement-list label {
  display: grid;
  gap: 10px;
  grid-template-columns: auto 1fr;
  line-height: 1.55;
}

.agreement-list a {
  color: #7a371d;
  text-decoration: underline;
}

.checkout-help {
  margin-top: 18px;
}

.thank-page {
  margin: 0 auto;
  max-width: 1180px;
  padding: 44px 34px 52px;
}

.thank-hero {
  margin-bottom: 24px;
}

.thank-hero h1 {
  font-family: "Baloo 2", "Montserrat", sans-serif;
  font-size: clamp(2.8rem, 7vw, 4.2rem);
  line-height: 1;
  margin: 0 0 10px;
}

.thank-hero p {
  color: #4d4742;
  margin: 0;
}

.thank-layout {
  align-items: start;
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
}

.thank-card {
  background: rgba(255, 250, 245, 0.68);
  border: 1px solid rgba(125, 55, 29, 0.14);
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(64, 54, 46, 0.04);
  padding: 28px;
}

.thank-card--success {
  display: grid;
  gap: 28px;
  grid-template-columns: 150px minmax(0, 1fr);
}

.thank-check {
  align-items: center;
  align-self: start;
  background: #eef1df;
  border-radius: 999px;
  color: #64781d;
  display: inline-flex;
  height: 124px;
  justify-content: center;
  margin: 26px auto 0;
  width: 124px;
}

.thank-check svg {
  height: 72px;
  stroke-width: 1.7;
  width: 72px;
}

.thank-card h2,
.thank-summary h2 {
  color: #7a371d;
  font-family: "Baloo 2", "Montserrat", sans-serif;
  font-size: 1.75rem;
  line-height: 1.15;
  margin: 0 0 12px;
}

.thank-status {
  align-items: center;
  background: #eef1df;
  border: 1px solid rgba(100, 120, 29, 0.2);
  border-radius: 7px;
  color: #64781d;
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
  margin: 0 0 14px;
  padding: 5px 12px;
}

.thank-status span {
  align-items: center;
  background: #64781d;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  height: 19px;
  justify-content: center;
  width: 19px;
}

.thank-status svg {
  height: 13px;
  width: 13px;
}

.thank-card__content > p {
  color: #332c27;
  line-height: 1.65;
  margin: 0 0 14px;
}

.thank-email {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(125, 55, 29, 0.14);
  border-radius: 8px;
  color: #7a371d !important;
  display: inline-flex;
  font-size: 1.2rem;
  font-weight: 800;
  gap: 12px;
  padding: 10px 16px;
}

.thank-email span,
.thank-help a {
  overflow-wrap: anywhere;
}

.thank-email svg {
  flex: 0 0 auto;
  height: 25px;
  width: 25px;
}

.thank-muted {
  color: #5f5750 !important;
}

.thank-invoice-note,
.thank-summary__invoice {
  background: rgba(239, 228, 217, 0.54);
  border: 1px solid rgba(125, 55, 29, 0.12);
  border-radius: 8px;
  color: #5f5750 !important;
  font-size: 0.94rem;
  line-height: 1.45;
  margin: 0 0 16px !important;
  padding: 12px 14px;
}

.thank-invoice-note[hidden] {
  display: none;
}

.thank-summary__invoice {
  margin: 14px 0 0 !important;
}

.thank-info {
  align-items: center;
  border-top: 1px solid rgba(125, 55, 29, 0.22);
  display: grid;
  gap: 18px;
  grid-template-columns: 44px minmax(0, 1fr);
  margin-top: 22px;
  padding-top: 22px;
}

.thank-info span,
.thank-help span {
  align-items: center;
  border: 1.3px solid #8a6048;
  border-radius: 999px;
  color: #7a371d;
  display: inline-flex;
  font-family: Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.thank-info p {
  color: #4d4742;
  line-height: 1.6;
  margin: 0;
}

.thank-actions {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
  margin-top: 26px;
  max-width: 660px;
}

.thank-action {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  gap: 10px;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
}

.thank-action svg {
  height: 23px;
  width: 23px;
}

.thank-action--primary {
  background: #8a6048;
  border: 1px solid #8a6048;
  color: #fff;
}

.thank-action--secondary {
  background: transparent;
  border: 1.5px solid #8a6048;
  color: #8a6048;
}

.thank-summary h2 {
  align-items: center;
  display: flex;
  gap: 12px;
}

.thank-summary h2 svg {
  height: 30px;
  width: 30px;
}

.thank-summary__items {
  display: grid;
  gap: 0;
}

.thank-summary__items article {
  align-items: center;
  border-bottom: 1px solid rgba(125, 55, 29, 0.14);
  display: grid;
  gap: 14px;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  padding: 14px 0;
}

.thank-summary__items img {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
}

.thank-summary__items h3 {
  font-family: "Baloo 2", "Montserrat", sans-serif;
  font-size: 1rem;
  line-height: 1.2;
  margin: 0 0 4px;
}

.thank-summary__items p,
.thank-summary__license {
  color: #5f5750;
  font-size: 0.86rem;
  margin: 0;
}

.thank-summary__items strong,
.thank-summary__total strong {
  color: #7a371d;
}

.thank-summary__total,
.thank-summary__license {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.thank-summary__total {
  color: #7a371d;
  font-size: 1.45rem;
  font-weight: 800;
  margin-top: 18px;
}

.thank-summary__license {
  margin-top: 14px;
}

.thank-summary__empty {
  color: #5f5750;
  line-height: 1.6;
}

.thank-help {
  align-items: center;
  background: rgba(255, 250, 245, 0.68);
  border: 1px solid rgba(125, 55, 29, 0.14);
  border-radius: 10px;
  display: flex;
  gap: 18px;
  margin-top: 22px;
  padding: 20px 24px;
}

.thank-help span svg {
  height: 23px;
  width: 23px;
}

.thank-help p {
  min-width: 0;
  margin: 0;
}

.thank-help a {
  color: #7a371d;
  font-weight: 800;
}

.checkout-steps a,
.checkout-steps strong {
  align-items: center;
  color: inherit;
  display: inline-flex;
  gap: 8px;
  text-decoration: none;
}

@media (max-width: 900px) {
  .cart-layout,
  .checkout-layout,
  .thank-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }
}

@media (max-width: 680px) {
  .cart-button__label {
    display: none;
  }

  .cart-page {
    padding-inline: 18px;
  }

  .cart-modal__dialog {
    padding: 28px 22px 24px;
  }

  .cart-modal__actions {
    grid-template-columns: 1fr;
  }

  .cart-item {
    gap: 14px;
    grid-template-columns: 96px minmax(0, 1fr) 34px;
  }

  .cart-item__image img {
    height: 96px;
    width: 96px;
  }

  .cart-item strong {
    grid-column: 2;
    font-size: 1.25rem;
  }

  .cart-item button {
    grid-column: 3;
    grid-row: 1;
  }

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

  .invoice-request__options {
    grid-template-columns: 1fr;
  }

  .checkout-summary article {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .checkout-summary article strong {
    grid-column: 2;
  }

  .thank-page {
    display: flex;
    flex-direction: column;
    padding-inline: 18px;
  }

  .thank-hero {
    order: 1;
  }

  .thank-layout {
    display: contents;
  }

  .thank-card--success {
    order: 2;
  }

  .thank-help {
    order: 3;
  }

  .thank-summary {
    order: 4;
  }

  .thank-actions {
    order: 5;
  }

  .thank-card {
    padding: 22px 18px;
  }

  .thank-card--success {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .thank-check {
    height: 104px;
    margin-top: 0;
    width: 104px;
  }

  .thank-email,
  .thank-info,
  .thank-help {
    text-align: left;
  }

  .thank-actions {
    grid-template-columns: 1fr;
    max-width: none;
    width: 100%;
  }

  .thank-summary__items article {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .thank-summary__items article strong {
    grid-column: 2;
  }

  .thank-help {
    align-items: start;
  }
}
