/* ====================================
   CHECKOUT PAGE STYLES
   ==================================== */

/* ===== Product Cards ===== */
.product-card {
  transition: box-shadow var(--transition-base);
}

.product-card:hover {
  box-shadow: var(--shadow-md);
}

/* ===== Plan Selection Options ===== */
.plan-option {
  transition: all var(--transition-base);
  position: relative;
}

.plan-option:hover {
  background-color: var(--color-bg-alt);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.plan-option.selected {
  background-color: var(--color-primary-50);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-100);
  transform: translateY(-2px);
}

.plan-option.selected::before {
  content: '\2713';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
  font-weight: bold;
}

.plan-option.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.plan-option.disabled:hover {
  background-color: transparent;
  transform: none;
}

.plan-option.current-plan {
  background-color: var(--color-primary-50);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary-200);
}

.plan-option.current-plan::after {
  content: 'Current Plan';
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: var(--color-primary);
  color: white;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
}

.plan-option.canceled-plan {
  background-color: var(--color-danger-50);
  border-color: var(--color-danger);
  box-shadow: 0 0 0 2px var(--color-danger-100);
}

.plan-option.canceled-plan::after {
  content: 'Canceled (Click to Reactivate)';
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: var(--color-danger);
  color: white;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
}

/* Plan cards (new UI) */
.plan-card.current-plan {
  background-color: var(--color-primary-50);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-200);
}

.plan-card.canceled-plan {
  background-color: var(--color-danger-50);
  border-color: var(--color-danger);
  box-shadow: 0 0 0 3px var(--color-danger-100);
}

/* ===== Loading States ===== */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.spinner {
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: var(--radius-full);
  width: 1rem;
  height: 1rem;
  animation: spin 1s linear infinite;
  display: inline-block;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== Price Breakdown ===== */
.price-breakdown {
  transition: all var(--transition-slow);
}

/* ===== Sticky Footer ===== */
.sticky-footer {
  position: sticky;
  bottom: 0;
  z-index: 10;
}

/* ===== Stripe Payment Element ===== */
.stripe-payment-element {
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
  padding: var(--space-4);
  border: 1px solid var(--color-border);
}

/* ===== Step Indicator ===== */
.step-indicator {
  position: relative;
}

.step-indicator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-border);
  z-index: 1;
}

.step-indicator .step {
  position: relative;
  z-index: 2;
  background: white;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.step-indicator .step.active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: white;
}

.step-indicator .step.completed {
  border-color: var(--color-success);
  background: var(--color-success);
  color: white;
}
