/* 課程方案購物車抽屜 */
.light-plan-cart {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.25s ease;
}

.light-plan-cart.is-open {
  pointer-events: auto;
  visibility: visible;
}

.light-plan-cart__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 29, 56, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.light-plan-cart.is-open .light-plan-cart__backdrop {
  opacity: 1;
}

.light-plan-cart__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 420px);
  max-height: 100%;
  margin-left: auto;
  padding: 24px 22px 28px;
  background: var(--rgf-white, #fff);
  box-shadow: -12px 0 40px rgba(38, 66, 79, 0.18);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-sizing: border-box;
  overflow-y: auto;
}

.light-plan-cart.is-open .light-plan-cart__panel {
  transform: translateX(0);
}

.light-plan-cart__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.light-plan-cart__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--rgf-navy, #345e76);
}

.light-plan-cart__close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(38, 66, 79, 0.08);
  color: var(--rgf-navy, #345e76);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.light-plan-cart__close:hover,
.light-plan-cart__close:focus-visible {
  background: rgba(38, 66, 79, 0.14);
}

.light-plan-cart__item {
  padding: 18px 16px;
  margin-bottom: 20px;
  border: 1px solid rgba(38, 66, 79, 0.12);
  border-radius: 12px;
  background: var(--rgf-cream, #fffbf0);
}

.light-plan-cart__item-name {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--rgf-primary, #467c9a);
}

.light-plan-cart__item-was {
  margin: 0;
  font-size: 0.85rem;
  color: var(--rgf-navy-muted, #5c5470);
  text-decoration: line-through;
}

.light-plan-cart__item-now {
  margin: 4px 0 0;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--rgf-gold-deep, #a8431f);
}

.light-plan-cart__hint {
  margin: 0 0 20px;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--rgf-navy-muted, #5c5470);
}

.light-plan-cart__checkout {
  display: block;
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 10px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, var(--rgf-gold, #ce592f) 0%, var(--rgf-gold-deep, #a8431f) 100%);
  color: var(--rgf-white, #fff);
  box-shadow: 0 6px 18px rgba(206, 89, 47, 0.35);
}

.light-plan-cart__checkout:hover,
.light-plan-cart__checkout:focus-visible {
  filter: brightness(1.05);
}

.light-plan-cart__checkout[aria-busy="true"] {
  opacity: 0.85;
  cursor: wait;
}

.light-plan-cart__continue {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(38, 66, 79, 0.2);
  border-radius: 10px;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--rgf-navy, #345e76);
  cursor: pointer;
}

.light-plan-cart__line {
  display: block;
  margin-top: 16px;
  text-align: center;
  font-size: 0.85rem;
  color: #06c755;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.light-plan-cart__line:hover,
.light-plan-cart__line:focus-visible {
  color: #05a846;
}

.light-paid-pricing__card.is-in-cart {
  outline: 2px solid var(--rgf-gold, #ce592f);
  outline-offset: 2px;
}

.light-paid-pricing__card {
  cursor: default;
}

.light-paid-pricing__card[data-plan-select] {
  cursor: pointer;
}

@media (max-width: 480px) {
  .light-plan-cart__panel {
    width: 100%;
  }
}
