.cs-compare-header {
  max-width: 1200px;
  margin: 48px auto 48px;
  padding: 0 16px;
  text-align: center;
}

.cs-compare-title {
  font-size: 42px;
  font-weight: 500;
  color: #111827;
  margin-bottom: 14px;
}

.cs-compare-subtitle {
  font-size: 16px;
  color: #6b7280;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

.cs-pricing-container {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 16px;
}

.cs-pricing-section {
  width: 100%;
}

/* Scroll container MUST be the parent */
.cs-pricing-wrapper {
  position: relative;
  overflow-x: auto;
  overflow-y: visible;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

/* Table settings for sticky to work */
.cs-pricing-table {
  width: 100%;
  min-width: 900px;
  border-collapse: separate; /* IMPORTANT */
  border-spacing: 0;
  background: #fff;
}

/* Sticky must be on TH, not TR */
.cs-pricing-table thead th {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  font-weight: 500;
  border-bottom: 1px solid #e5e7eb;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Cells */
.cs-pricing-table th,
.cs-pricing-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

/* First column – fast & stable */
.cs-pricing-table thead th:first-child {
  width: 320px;          /* adjust: 320–380px */
  color: #111827;
  font-size: 16px;
  font-weight: 400;
}

@media (max-width: 580px) {
  .cs-pricing-table thead th:first-child {
  width: 250px;
  color: #111827;
}
}

/* Section rows */
.cs-section-row td {
  background: #f8fafc;
  font-weight: 800;
  color: #111827;
  border-bottom: 2px solid #7338e8;
  padding: 18px;
}

/* Sticky header clone */
#cs-sticky-header-clone {
  position: fixed;
  top: var(--cs-nav-height);
  left: 0;
  z-index: 998;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}

/* add will-change ONLY when active */
#cs-sticky-header-clone.is-active {
  will-change: transform;
}

  

@media (max-width: 580px) {
  #cs-sticky-header-clone {
    display: none !important;
    pointer-events: none;
    visibility: hidden;
  }
  .cs-pricing-table th:nth-child(2),
  .cs-pricing-table td:nth-child(2),
  .cs-pricing-table th:nth-child(3),
  .cs-pricing-table td:nth-child(3),
  .cs-pricing-table th:nth-child(4),
  .cs-pricing-table td:nth-child(4),
  .cs-pricing-table th:nth-child(5),
  .cs-pricing-table td:nth-child(5) {
    border-right: 1px solid #e5e7eb;
    width: 250px;
  }
}

/* cloned table */
#cs-sticky-header-clone table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

/* cloned th */
#cs-sticky-header-clone th {
  padding: 16px 18px;
  text-align: left;
  /*font-weight: 500;*/
  white-space: normal;
  overflow-wrap: anywhere;
  background: #ffffff;
}

.cs-sticky-header .cs-highlight-link {
  color: #6c4cff;              /* your purple */
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
  text-decoration-color: #6c4cff;
  transition: opacity 0.2s ease;
}

.cs-sticky-header .cs-highlight-link:visited {
  color: #6c4cff;              /* prevent purple/visited change */
}

.cs-sticky-header .cs-highlight-link:hover {
  opacity: 0.8;
}

.cs-sticky-header .cs-highlight-link:active {
  color: #6c4cff;
}

/* match column widths */
.cs-pricing-table {
  table-layout: fixed;
}

/* Left divider before Free */
.cs-pricing-table th:nth-child(2),
.cs-pricing-table td:nth-child(2) {
  border-left: 1px solid #e5e7eb;
}

/* Right dividers after Free, Personal, Pro */
.cs-pricing-table th:nth-child(2),
.cs-pricing-table td:nth-child(2),
.cs-pricing-table th:nth-child(3),
.cs-pricing-table td:nth-child(3),
.cs-pricing-table th:nth-child(4),
.cs-pricing-table td:nth-child(4),
.cs-pricing-table th:nth-child(5),
.cs-pricing-table td:nth-child(5) {
  border-right: 1px solid #e5e7eb;
}

/* Allow text to wrap inside table body */
.cs-pricing-table tbody td {
  white-space: normal;       /* key fix */
  word-break: break-word;    /* safety */
  line-height: 1.5;
}

/*.cs-pricing-scroll {*/
/*  overflow-x: auto;*/
/*  overflow-y: visible;*/
/*  -webkit-overflow-scrolling: touch;*/
/*}*/

/* Tooltip trigger (dashed underline) */
.cs-tooltip {
  position: relative;
  cursor: help;

  /* multiline underline */
  background-image: linear-gradient(
    to right,
    #9ca3af 50%,
    rgba(0, 0, 0, 0) 0%
  );
  background-position: 0 100%;
  background-size: 6px 1.5px;
  background-repeat: repeat-x;

  padding-bottom: 2px;
}


/* Tooltip box */
.cs-tooltip::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 11px);
  left: 0;
  background: #111827;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.4;
  white-space: normal;
  min-width: 220px;
  max-width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: all 0.2s ease;
  z-index: 9999;
}

/* Tooltip arrow */
.cs-tooltip::after {
  content: "";
  position: absolute;
  bottom: calc(100% + 0px); /* moved down */
  left: 14px;
  border-width: 6px;
  border-style: solid;
  border-color: #111827 transparent transparent transparent;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

/* Show tooltip */
.cs-tooltip:hover::before,
.cs-tooltip:hover::after,
.cs-tooltip:focus::before,
.cs-tooltip:focus::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cs-check-cell {
 
}

.cs-check-cell svg {
  display: block;
}

/* Plan header wrapper */
.cs-plan-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Plan name */
.cs-plan-name {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
}

.cs-plan-title {
  display: flex;
  align-items: center;
}

.cs-plan-badge {
  margin-left: auto;   /* pushes badge to the right */
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  color: #6933d3;
  background: rgba(108, 58, 232, 0.06);
  border-radius: 6px;
  width: fit-content;
  text-transform: uppercase;
}


/* Old price */
.cs-plan-was {
  font-size: 13px;
  color: #ef4444;
  text-decoration: line-through;
}

/* Price row */
.cs-plan-price {
  display: flex;
  align-items: baseline;
  /*gap: 6px;*/
}

/* Main price */
.cs-price {
  font-size: 26px;
  font-weight: 400;
  color: #020617;
  line-height: 1;
}

/* /month */
.cs-period {
  font-size: 14px;
  font-weight: 400;
  color: #020617;
}

@media (max-width: 768px) {
  .cs-pricing-wrapper {
    position: relative;
    max-height: none;      /* ðŸ”‘ allow full height */
    overflow-y: visible;  /* ðŸ”‘ disable inner vertical scroll */
  }
}

@media (max-width: 768px) {
  .cs-compare-title { font-size: 30px; }
  .cs-compare-subtitle { font-size: 15px; }
  .cs-price { font-size: 20px; }
  .cs-plan-was { font-size: 12px; }
}


@media (min-width: 769px) {
  .cs-pricing-wrapper {
  position: relative;      
  overflow-x: auto;
  overflow-y: visible;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}
}

/* Small CTA under price */
.cs-plan-cta {
  cursor: pointer;    
  display: inline-block;
  margin-top: 5px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #7338e8;
  background: #fff;
  border: 1px solid #7338e8;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  align-items: center;
  text-align: center;
  transition: background .1s ease-in-out, transform .1s ease-in-out;
}

.cs-plan-cta:hover {
  /*background: var(--icon-stroke);*/
  /*border: 1px solid var(--btn-primary-hover);*/
  color: var(--text-inverse);
  background: linear-gradient(90deg, #7a5cff, #5b35f2);
  box-shadow: 0 6px 20px rgba(43, 54, 199, 0.25);
}

/* Optional highlight (for Plus / Best plan) */
.cs-plan-head.is-primary .cs-plan-cta {
  background: linear-gradient(90deg, #5b35f2, #7a5cff);
  color: #fff;
  border: none;
}

.cs-plan-head.is-primary:hover .cs-plan-cta:hover {
  background: linear-gradient(90deg, #7a5cff, #5b35f2);
  box-shadow: 0 6px 20px rgba(43, 54, 199, 0.25);
  color: #fff; /* Dark teal text */
}

