.bd-payment-plan {
  --bd-pp-accent: #1f8f7a;
  --bd-pp-accent-soft: rgba(31, 143, 122, 0.12);
  --bd-pp-accent-strong: #157a68;
  --bd-pp-warn: #c98712;
  --bd-pp-warn-soft: #fff8eb;
  --bd-pp-border: rgba(191, 205, 230, 0.84);
  --bd-pp-text: #1f2937;
  --bd-pp-muted: #64748b;
  display: grid;
  gap: 12px;
  color: var(--bd-pp-text);
}

.bd-payment-plan__header {
  display: grid;
  gap: 4px;
}

.bd-payment-plan__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bd-pp-accent-strong);
}

.bd-payment-plan__lead {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--bd-pp-muted);
}

.bd-payment-plan__options {
  display: grid;
  gap: 10px;
}

.bd-payment-plan__option {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  border: 1.5px solid var(--bd-pp-border);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.bd-payment-plan__option:hover {
  border-color: rgba(31, 143, 122, 0.45);
  box-shadow: 0 10px 24px rgba(31, 143, 122, 0.08);
  transform: translateY(-1px);
}

.bd-payment-plan__option.is-selected {
  border-color: rgba(31, 143, 122, 0.72);
  background: linear-gradient(180deg, #f4fbf8 0%, #ffffff 100%);
  box-shadow: 0 12px 28px rgba(31, 143, 122, 0.12);
}

.bd-payment-plan__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bd-payment-plan__option-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(244, 248, 255, 0.95);
  color: #4b5d78;
  flex-shrink: 0;
}

.bd-payment-plan__option-icon.is-accent {
  background: var(--bd-pp-accent-soft);
  color: var(--bd-pp-accent-strong);
}

.bd-payment-plan__option-body {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.bd-payment-plan__option-title {
  font-size: 0.88rem;
  line-height: 1.35;
}

.bd-payment-plan__option-desc {
  font-size: 0.74rem;
  line-height: 1.55;
  color: var(--bd-pp-muted);
}

.bd-payment-plan__option-price {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--bd-pp-accent-strong);
  white-space: nowrap;
  font-feature-settings: "tnum";
}

.bd-payment-plan__timeline {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(244, 251, 248, 0.92);
  border: 1px solid rgba(31, 143, 122, 0.16);
}

.bd-payment-plan__timeline-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
}

.bd-payment-plan__timeline-step strong {
  display: block;
  font-size: 0.78rem;
  margin-bottom: 2px;
}

.bd-payment-plan__timeline-step span {
  font-size: 0.76rem;
  color: var(--bd-pp-muted);
  font-feature-settings: "tnum";
}

.bd-payment-plan__timeline-dot {
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border-radius: 999px;
  background: #cbd5e1;
  box-shadow: 0 0 0 4px rgba(203, 213, 225, 0.35);
}

.bd-payment-plan__timeline-step.is-current .bd-payment-plan__timeline-dot {
  background: var(--bd-pp-accent);
  box-shadow: 0 0 0 4px rgba(31, 143, 122, 0.18);
}

.bd-payment-plan__timeline-note {
  margin: 2px 0 0;
  padding-top: 8px;
  border-top: 1px dashed rgba(31, 143, 122, 0.18);
  font-size: 0.74rem;
  line-height: 1.65;
  color: var(--bd-pp-muted);
}

.bd-payment-plan__form {
  display: grid;
  gap: 10px;
  margin: 0;
}

/* The panel toggles the installment timeline and the "جمع کل اقساط" row with
   the `hidden` attribute, but an author `display: grid/flex` on the class beats
   the UA sheet's [hidden] rule — both blocks stayed on screen even when
   "پرداخت کامل" was selected. Author-level [hidden] wins it back. */
.bd-payment-plan [hidden] {
  display: none !important;
}

/* Panel → checkout hand-off card (after a logged-out buyer signs in). */
.bd-purchase-intent {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 18px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1.5px solid rgba(31, 143, 122, 0.28);
  background: linear-gradient(135deg, rgba(31, 143, 122, 0.09), rgba(31, 143, 122, 0.02));
}

.bd-purchase-intent__body {
  flex: 1 1 260px;
  display: grid;
  gap: 6px;
}

.bd-purchase-intent__badge {
  justify-self: start;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bd-pp-accent, #1f8f7a);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
}

.bd-purchase-intent__title {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--bd-pp-accent-strong, #14614f);
}

.bd-purchase-intent__desc {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.9;
  color: var(--bd-pp-muted);
}

.bd-purchase-intent__amount {
  margin-inline-start: 6px;
  font-weight: 800;
  color: var(--bd-pp-accent-strong, #14614f);
  font-feature-settings: "tnum";
}

.bd-purchase-intent__actions {
  display: grid;
  flex: 0 1 220px;
}

.bd-purchase-intent__go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--bd-pp-accent, #1f8f7a), var(--bd-pp-accent-strong, #14614f));
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none !important;
}

/* Logged-out checkout: the payment form is replaced by a login CTA. */
.bd-payment-plan__gate-note {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.9;
  color: var(--bd-pp-muted);
}

.bd-payment-plan__summary {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(248, 250, 255, 0.95);
  border: 1px solid rgba(225, 234, 248, 0.95);
}

.bd-payment-plan__summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
}

.bd-payment-plan__summary-row strong {
  font-size: 0.92rem;
  color: var(--bd-pp-accent-strong);
  font-feature-settings: "tnum";
  white-space: nowrap;
}

.bd-payment-plan__summary-row.is-muted {
  color: var(--bd-pp-muted);
}

.bd-payment-plan__summary-row.is-muted strong {
  font-size: 0.8rem;
  color: var(--bd-pp-muted);
}

.bd-payment-plan__coupon {
  display: grid;
  gap: 6px;
}

.bd-payment-plan__coupon-label {
  font-size: 0.74rem;
  color: var(--bd-pp-muted);
}

.bd-payment-plan__coupon-input {
  border: 1px solid var(--bd-pp-border);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.8rem;
  background: #ffffff;
  font-family: inherit;
}

.bd-payment-plan__coupon-input:focus {
  outline: none;
  border-color: rgba(31, 143, 122, 0.7);
  box-shadow: 0 0 0 3px rgba(31, 143, 122, 0.16);
}

.bd-payment-plan__discount {
  min-height: 18px;
  font-size: 0.74rem;
  color: var(--bd-pp-muted);
}

.bd-payment-plan__discount.is-success {
  color: #1b6b58;
}

.bd-payment-plan__discount.is-error {
  color: #a22b2b;
}

.bd-payment-plan__submit {
  width: 100%;
}

.bd-payment-plan__submit,
.bd-payment-plan__form .bd-payment-plan__submit.bd-auth-btn,
.bd-payment-plan__form .bd-payment-plan__submit.bd-home-wizard__button,
.bd-plan-cta .bd-auth-btn[type="submit"],
.bd-plan-card .bd-payment-plan__submit {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 52px;
  padding: 0.9rem 1.15rem !important;
  border: 0 !important;
  border-radius: 14px !important;
  font-family: inherit;
  font-size: 0.98rem !important;
  font-weight: 800 !important;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  cursor: pointer;
  color: #ffffff !important;
  background: linear-gradient(
    135deg,
    var(--bd-pp-accent, #1f8f7a),
    var(--bd-pp-accent-strong, #157a68)
  ) !important;
  box-shadow: 0 14px 28px rgba(31, 143, 122, 0.32) !important;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.bd-payment-plan__submit:hover,
.bd-payment-plan__form .bd-payment-plan__submit.bd-auth-btn:hover,
.bd-payment-plan__form .bd-payment-plan__submit.bd-home-wizard__button:hover,
.bd-plan-cta .bd-auth-btn[type="submit"]:hover,
.bd-plan-card .bd-payment-plan__submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 18px 34px rgba(31, 143, 122, 0.36) !important;
}

.bd-payment-plan__submit:focus-visible,
.bd-payment-plan__form .bd-payment-plan__submit.bd-auth-btn:focus-visible,
.bd-plan-cta .bd-auth-btn[type="submit"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(31, 143, 122, 0.22), 0 14px 28px rgba(31, 143, 122, 0.28) !important;
}

.bd-payment-plan__submit::after {
  display: none !important;
}

.bd-payment-plan--wizard .bd-payment-plan__option {
  padding: 12px;
}

.bd-payment-plan--panel {
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid rgba(191, 205, 230, 0.72);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.bd-payment-plan__wizard-shell {
  display: grid;
  gap: 10px;
  width: 100%;
}

.bd-payment-plan__wizard-trigger {
  width: 100%;
  justify-content: center;
  gap: 8px;
}

.bd-payment-plan__wizard-trigger-copy {
  display: grid;
  gap: 2px;
  text-align: center;
}

.bd-payment-plan__wizard-trigger-title {
  display: block;
  line-height: 1.35;
}

.bd-payment-plan__wizard-trigger-note {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
}

.bd-payment-plan__wizard-trigger svg {
  transition: transform 0.2s ease;
}

.bd-payment-plan__wizard-shell.is-open .bd-payment-plan__wizard-trigger svg {
  transform: rotate(90deg);
}

.bd-payment-plan__wizard-panel {
  animation: bdPaymentPlanReveal 0.28s ease;
}

@keyframes bdPaymentPlanReveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bd-payment-plan__pending {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  margin-bottom: 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fffdf7 0%, #fff8eb 100%);
  border: 1px solid #f0dcc0;
  box-shadow: 0 10px 28px rgba(120, 84, 18, 0.08);
}

.bd-payment-plan__pending.is-urgent {
  border-color: #e8b44d;
  box-shadow: 0 12px 32px rgba(201, 135, 18, 0.14);
}

.bd-payment-plan__pending-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #fff3d6;
  color: #9a6700;
  flex-shrink: 0;
}

.bd-payment-plan__pending-body {
  min-width: 0;
}

.bd-payment-plan__pending-badge {
  display: inline-block;
  margin-bottom: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(201, 135, 18, 0.14);
  color: #9a6700;
  font-size: 0.68rem;
  font-weight: 700;
}

.bd-payment-plan__pending-body h5 {
  margin: 0 0 4px;
  font-size: 0.92rem;
}

.bd-payment-plan__pending-course {
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #5c4a1f;
}

.bd-payment-plan__pending-desc,
.bd-payment-plan__pending-alert {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.6;
  color: #6b5a34;
}

.bd-payment-plan__pending-alert {
  margin-top: 6px;
  color: #9a6700;
  font-weight: 600;
}

.bd-payment-plan__pending-form {
  display: grid;
  gap: 8px;
  margin: 0;
  flex-shrink: 0;
}

.bd-payment-plan__pending-amount {
  display: grid;
  gap: 2px;
  text-align: center;
  font-size: 0.72rem;
  color: #6b5a34;
}

.bd-payment-plan__pending-amount strong {
  font-size: 0.88rem;
  color: #5c4a1f;
  font-feature-settings: "tnum";
}

.bd-payment-plan__pending-btn {
  border: 0;
  border-radius: 12px;
  padding: 0.72rem 1rem;
  background: #c98712;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.bd-payment-plan__pending-btn:hover {
  background: #a56f0d;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(159, 97, 10, 0.22);
}

.bd-payment-plan__pending-btn:focus-visible {
  outline: 2px solid #c98712;
  outline-offset: 2px;
}

.bd-payment-plan__pending-form--compact {
  width: 100%;
}

.bd-payment-plan__pending-form--compact .bd-payment-plan__pending-btn {
  width: 100%;
}

.bd-payment-plan.is-compact .bd-payment-plan__lead,
.bd-payment-plan.is-compact .bd-payment-plan__timeline-note {
  display: none;
}

.bd-plan-card .bd-payment-plan {
  margin-top: 4px;
}

.bd-plan-card .bd-payment-plan__submit {
  margin-top: 2px;
}

.bd-home-wizard__course-card .bd-payment-plan__wizard-shell,
.bd-home-wizard__course-card .bd-payment-plan__wizard-inline {
  margin-top: 2px;
  width: 100%;
}

.bd-payment-plan__wizard-inline {
  width: 100%;
}

.bd-payment-plan__wizard-inline .bd-payment-plan--panel {
  margin-top: 0;
}

.bd-payment-plan__teaser {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(31, 143, 122, 0.1);
  border: 1px solid rgba(31, 143, 122, 0.22);
  color: #157a68;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
}

.bd-payment-plan__teaser svg {
  flex-shrink: 0;
}

.bd-payment-plan__teaser small {
  font-size: 0.68rem;
  font-weight: 500;
  color: #64748b;
}

.bd-payment-plan__membership-banner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  margin-bottom: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f4fbf8 0%, #ffffff 100%);
  border: 1px solid rgba(31, 143, 122, 0.22);
  box-shadow: 0 10px 28px rgba(31, 143, 122, 0.08);
}

.bd-payment-plan__membership-banner-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(31, 143, 122, 0.12);
  color: #157a68;
  flex-shrink: 0;
}

.bd-payment-plan__membership-banner-body strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.92rem;
  color: #157a68;
}

.bd-payment-plan__membership-banner-body p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.65;
  color: #64748b;
}

.bd-home-wizard__course-footer .bd-home-wizard__price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.bd-plan-card .bd-payment-plan__teaser {
  display: flex;
  margin-top: 8px;
  width: fit-content;
  max-width: 100%;
}

.bd-payment-plan__pending-stack {
  display: grid;
  gap: 0;
  margin-bottom: 16px;
}

.bd-payment-plan__pending-stack .bd-payment-plan__pending {
  margin-bottom: 10px;
}

.bd-payment-plan__pending-stack .bd-payment-plan__pending:last-child {
  margin-bottom: 0;
}

.bd-plan-status.is-installment {
  background: rgba(201, 135, 18, 0.12);
  color: #9a6700;
  border: 1px solid rgba(201, 135, 18, 0.28);
}

.bd-payment-plan--profile .bd-payment-plan__options {
  margin-top: 2px;
}

@media (max-width: 860px) {
  .bd-payment-plan__pending {
    grid-template-columns: 1fr;
  }

  .bd-payment-plan__pending-form {
    width: 100%;
  }

  .bd-payment-plan__pending-btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .bd-payment-plan__option {
    grid-template-columns: auto 1fr;
  }

  .bd-payment-plan__option-price {
    grid-column: 2;
    justify-self: start;
    margin-top: 2px;
  }

  .bd-payment-plan__membership-banner {
    grid-template-columns: 1fr;
  }
}

/* Public storefront */
.bd-shop { max-width: 1200px; margin: 32px auto 80px; padding: 0 20px; color: #173b3a; font: inherit; }
.bd-shop *, .bd-shop *::before, .bd-shop *::after { box-sizing: border-box; }
.bd-shop__hero { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 48px; padding: clamp(28px, 5vw, 64px); background: radial-gradient(ellipse at 0 0, #dcebc2, transparent 65%), #edf5ee; border: 1px solid #dce8dd; border-radius: 32px; }
.bd-shop__eyebrow { display: block; font-size: 12px; letter-spacing: .06em; color: #507264; margin-bottom: 12px; }
.bd-shop .bd-shop__hero h1 { font-size: clamp(32px, 4.5vw, 56px); line-height: 1.5; letter-spacing: -.04em; margin: 0 0 18px; color: #173b3a; }
.bd-shop__hero h1 em { font-style: normal; color: #26795d; }
.bd-shop p { line-height: 1.9; color: #5f716b; }
.bd-shop__button { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; padding: 13px 22px; border-radius: 12px; background: #205d48; color: #fff !important; text-decoration: none !important; font-weight: 700; }
.bd-shop__button:hover { background: #164632; }
.bd-shop__journey { padding: 28px; border-radius: 22px; background: #ffffffd9; border: 1px solid white; box-shadow: 0 16px 40px #214b3710; }
.bd-shop__journey ol { list-style: none; counter-reset: shop-step; margin: 0; padding: 0; }
.bd-shop__journey li { counter-increment: shop-step; position: relative; padding: 18px 48px 18px 0; border-bottom: 1px solid #e7eee9; }
.bd-shop__journey li:last-child { border: 0; }
.bd-shop__journey li::before { content: counter(shop-step, decimal-leading-zero); position: absolute; right: 0; top: 20px; font-size: 16px; color: #39835d; }
.bd-shop__journey b, .bd-shop__journey li span { display: block; }
.bd-shop__journey li span { margin-top: 5px; font-size: 13px; color: #69786e; }
.bd-shop__trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px 36px; padding: 24px 8px; border-bottom: 1px solid #e5ebe5; font-size: 13px; }
.bd-shop__trust span::before { content: '✓'; color: #37875c; margin-inline-end: 8px; }
.bd-shop__heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 48px; }
.bd-shop__heading h2 { margin: 0; color: #173b3a; font-size: 28px; }
.bd-shop__heading > span { font-size: 13px; color: #6a7b71; white-space: nowrap; }
.bd-shop__filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0; }
.bd-shop__filters a { padding: 9px 20px; border: 1px solid #dce5df; border-radius: 999px; color: #4a6559; text-decoration: none; }
.bd-shop__filters a[aria-current], .bd-shop__filters a:hover { background: #205d48; color: white; border-color: #205d48; }
.bd-shop__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.bd-shop__card { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 24px; background: #fff; border: 1px solid #dce5df; border-radius: 20px; min-width: 0; transition: box-shadow .2s, border-color .2s; }
.bd-shop__card:hover, .bd-shop__card.is-selected { border-color: #73a183; box-shadow: 0 12px 30px #234c3610; }
.bd-shop__card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: #5d7667; }
.bd-shop__card-top b { display: grid; place-items: center; min-width: 46px; min-height: 46px; border-radius: 12px; background: #eef4e9; padding: 8px; font-size: 17px; color: #296047; }
.bd-shop .bd-shop__card h3 { margin: 8px 0 0; line-height: 1.7; font-size: 19px; color: #173b3a; }
.bd-shop__card p { font-size: 13px; margin: 0 0 12px; flex: 1; }
.bd-shop__card-price { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; border-top: 1px solid #edf0ea; padding-top: 18px; }
.bd-shop__card small { color: #647a6d; font-size: 12px; }
.bd-shop__card .bd-shop__button { margin-top: 8px; background: #f0f5ef; color: #205d48 !important; }
.bd-shop__card .bd-shop__button:hover { background: #205d48; color: #fff !important; }
.bd-shop__checkout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; margin-top: 40px; padding: clamp(20px, 4vw, 40px); background: #f7faf6; border: 1px solid #dce5df; border-radius: 24px; scroll-margin-top: 100px; }
.bd-shop__checkout h2 { line-height: 1.7; }
.bd-payment-plan__guest-note { padding: 12px 16px; margin: 0; border-radius: 12px; background: #edf6ef; color: #315b44; font-size: 13px; line-height: 1.9; }
.bd-shop a:focus-visible, .bd-shop button:focus-visible { outline: 3px solid #a66b24; outline-offset: 4px; }
.bd-shop__empty { padding: 28px; background: #f5f8f3; border-radius: 18px; }
@media (max-width: 900px) { .bd-shop__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bd-shop__hero { gap: 24px; } }
@media (max-width: 640px) { .bd-shop { padding: 0 12px; margin-top: 16px; } .bd-shop__hero, .bd-shop__grid, .bd-shop__checkout { grid-template-columns: minmax(0, 1fr); } .bd-shop__hero { padding: 24px; border-radius: 24px; } .bd-shop__journey { padding: 20px; } .bd-shop__trust { justify-content: flex-start; gap: 10px; } .bd-shop__trust span { flex-basis: 100%; } .bd-shop__filters a { padding: 8px 16px; } .bd-shop__checkout { gap: 16px; } }
@media (prefers-reduced-motion: reduce) { .bd-shop__card { transition: none; } }

.bd-payment-plan__support { grid-template-columns: auto minmax(0, 1fr); line-height: 1.8; }
.bd-payment-plan__support input { position: static; opacity: 1; pointer-events: auto; width: 18px; height: 18px; accent-color: #205d48; }
.bd-payment-plan__support:has(input:checked) { border-color: #205d48; background: #edf6ef; }

/* Keep linked course cards visible below the site header. */
.bd-shop__card { scroll-margin-top: 120px; }
.bd-shop__card-image { display: block; width: calc(100% + 48px); max-width: none; height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin: -24px -24px 8px; border-radius: 19px 19px 0 0; background: #edf5ee; }
.bd-shop__card:target { border-color: #205d48; box-shadow: 0 0 0 3px #205d4833, 0 12px 30px #234c3610; }
.bd-shop__card:focus-visible { outline: 3px solid #a66b24; outline-offset: 4px; }
