/**
 * Pricing Module Stylesheet
 * Custom styles for pricing cards, toggles, and comparison table
 */

#pricing-plans .card-hover {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#pricing-plans .card-hover:hover {
  transform: translateY(-4px);
}

/* Modal Body Vertical Scroll */
.pricing-modal-body {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.pricing-modal-body::-webkit-scrollbar {
  width: 6px;
}

.pricing-modal-body::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 9999px;
}

/* Dedicated Comparison Table Horizontal Scroll (Mobile & Tablet) */
.pricing-table-horizontal-scroll {
  overflow-x: auto !important;
  overflow-y: visible !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-x pan-y !important;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: auto;
  scrollbar-color: #6366f1 #e2e8f0;
}

/* Explicit prominent horizontal scrollbar visible on mobile and desktop */
.pricing-table-horizontal-scroll::-webkit-scrollbar {
  height: 8px !important;
  display: block !important;
}

.pricing-table-horizontal-scroll::-webkit-scrollbar-track {
  background: #f1f5f9 !important;
  border-radius: 9999px;
  margin: 0 4px;
}

.pricing-table-horizontal-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #6366f1, #9333ea) !important;
  border-radius: 9999px;
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.15);
}

.pricing-table-horizontal-scroll::-webkit-scrollbar-thumb:hover {
  background: #4f46e5 !important;
}

/* Sticky First Column Styling (Feature Name) */
.sticky-feature-col {
  position: sticky !important;
  left: 0 !important;
  z-index: 20 !important;
  border-right: 2px solid #e2e8f0 !important;
  box-shadow: 4px 0 10px -2px rgba(15, 23, 42, 0.08) !important;
}

th.sticky-feature-col {
  background-color: #f8fafc !important;
  z-index: 30 !important;
}

td.sticky-feature-col {
  background-color: #ffffff !important;
}

tr:hover td.sticky-feature-col {
  background-color: #f8fafc !important;
}

/* Mobile responsive column sizing and scroll snap */
@media (max-width: 639px) {
  .sticky-feature-col {
    width: 135px !important;
    min-width: 135px !important;
    max-width: 135px !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  
  .pricing-plan-col {
    width: 190px !important;
    min-width: 190px !important;
    max-width: 190px !important;
    scroll-snap-align: start;
    scroll-margin-left: 135px;
  }
}

/* Hide scrollbar utility for mobile jump tabs */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
