/* ===== Shared Funnel Sidebar ===== */
/* Used on manager-assignment, register, and payment pages */

/* Step label (e.g. "Step 1 of 3") */
.funnel-step-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  margin-bottom: 12px;
}

.funnel-sidebar {
  align-self: start;
  position: sticky;
  top: calc(var(--header-height, 64px) + 32px);
}

.funnel-sidebar-inner {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

/* Price Header */
.funnel-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
}

.funnel-sidebar-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.02em;
}

.funnel-sidebar-plan {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #6b7280;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 2px 8px;
}

/* What's Included */
.funnel-sidebar-section {
  padding: 20px 24px;
}

.funnel-sidebar-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #374151;
  margin-bottom: 14px;
}

.funnel-sidebar-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.funnel-sidebar-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.4;
}

.funnel-sidebar-features svg {
  flex-shrink: 0;
  color: #16a34a;
  margin-top: 1px;
}

/* Testimonial */
.funnel-sidebar-testimonial {
  padding: 20px 24px 8px;
  border-top: 1px solid #e5e7eb;
  background: #ededee;
}

.funnel-sidebar-stars {
  display: flex;
  gap: 3px;
  color: #D69E2E;
  margin-bottom: 14px;
}

.funnel-sidebar-stars svg {
  width: 18px;
  height: 18px;
}

.funnel-sidebar-testimonial-body {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.funnel-sidebar-testimonial-text {
  flex: 1;
  min-width: 0;
}

.funnel-sidebar-testimonial-text blockquote {
  font-size: 0.9rem;
  font-style: italic;
  color: #374151;
  line-height: 1.3;
  margin: 0 0 8px 0;
}

.funnel-sidebar-testimonial-text cite {
  font-size: 0.9rem;
  font-style: normal;
  color: #374151;
  font-weight: 400;
}

.funnel-sidebar-testimonial-book {
  flex-shrink: 0;
  width: 140px;
  align-self: center;
}

.funnel-sidebar-testimonial-book img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Order Details (payment page only) */
.funnel-sidebar-order-details {
  padding: 16px 24px;
  border-bottom: 1px solid #e5e7eb;
}

.funnel-sidebar-line-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.875rem;
  color: #374151;
  padding: 4px 0;
}

.funnel-sidebar-line-item--muted {
  color: #6b7280;
}

.funnel-sidebar-line-item--discount span:last-child {
  color: #16a34a;
  font-weight: 600;
}

.funnel-sidebar-line-total {
  font-weight: 700;
  font-size: 0.95rem;
  color: #111827;
  border-top: 1px solid #e5e7eb;
  margin-top: 8px;
  padding-top: 10px;
}

#sidebarTotal {
  color: #616c79;
}

/* Coupon Code (payment page only) */
.funnel-sidebar-coupon {
  padding: 16px 24px;
  border-bottom: 1px solid #e5e7eb;
}

.funnel-sidebar-coupon-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.funnel-sidebar-coupon-input-group {
  display: flex;
  gap: 8px;
}

.funnel-sidebar-coupon-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.85rem;
  font-family: inherit;
  background: #fff;
}

.funnel-sidebar-coupon-input:focus {
  outline: none;
  border-color: var(--color-navy, #113362);
  box-shadow: 0 0 0 2px rgba(17, 51, 98, 0.15);
}

.funnel-sidebar-coupon-input.error {
  border-color: #C53030;
}

.funnel-sidebar-coupon-apply {
  padding: 8px 16px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}

.funnel-sidebar-coupon-apply:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.funnel-sidebar-coupon-applied {
  display: flex;
  align-items: center;
  gap: 8px;
}

.funnel-sidebar-coupon-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.funnel-sidebar-coupon-remove {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.funnel-sidebar-coupon-remove:hover {
  color: #C53030;
}

.funnel-sidebar-coupon-error {
  font-size: 0.8rem;
  color: #C53030;
  margin-top: 6px;
}

/* ===== Responsive: hide sidebar on mobile, show in-page content instead ===== */
@media (max-width: 834px) {
  .funnel-sidebar {
    position: static;
    order: -1;
    margin-bottom: 8px;
  }
}
