/* Buttons */
.btn-primary {
  background-color: var(--echelon-purple) !important;
  border-color: var(--echelon-purple) !important;
  color: var(--echelon-surface) !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--echelon-purple-dark) !important;
  border-color: var(--echelon-purple-dark) !important;
  color: var(--echelon-surface) !important;
}

/* Preserve existing FleetCart page spacing */
.page-gutter {
  padding-left: 25px;
  padding-right: 25px;
}

/* Features page heading */
.features-heading {
  max-width: 820px;
  margin: 0 auto;
  padding-top: 20px;
  text-align: center;
}

.features-heading h1 {
  margin: 0;
  color: var(--echelon-purple);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
}

.features-heading p {
  margin: 10px auto 18px;
  color: var(--echelon-muted);
  font-size: 16px;
  line-height: 1.65;
}

.features-heading::after {
  display: block;
  width: 52px;
  height: 3px;
  margin: 0 auto 18px;
  background: var(--echelon-gold);
  border-radius: 999px;
  content: "";
}

/* Preserve existing table container */
.table-wrapper {
  width: 100%;
  margin: 0 auto;
}

/* Comparison table */
.comparison-table {
  width: 100%;
  min-width: 1300px;
  border-collapse: separate;
  border-spacing: 0;
  text-align: center;
  table-layout: fixed;
}

/* Column widths */
.comparison-table colgroup col:first-child {
  width: 130px;
}

.comparison-table colgroup col:not(:first-child) {
  width: calc((100% - 130px) / 5);
}

/* General table cells */
.comparison-table th,
.comparison-table td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  white-space: nowrap;
}

.account-wrap,
.account-wrap > .container,
.account-wrap-inner,
.account-right,
.panel-wrap {
  overflow: visible !important;
}

.comparison-table thead {
  position: sticky;
  top: 68px;
  z-index: 1000;
  background: var(--echelon-surface);
}

.ltr .comparison-table thead {
  box-shadow: -25px 0 0 var(--echelon-surface), 25px 0 0 var(--echelon-surface);
}

.rtl .comparison-table thead {
  box-shadow: 25px 0 0 var(--echelon-surface), -25px 0 0 var(--echelon-surface);
}

.comparison-table thead tr {
  background: var(--echelon-surface);
}

.comparison-table thead th {
  background: var(--echelon-surface) !important;
  border-bottom: none;
}

.hosting-comparison-mobile-sticky {
  display: none;
}

/* Premium header cards */
.plan-card,
.features-card {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  background: var(--echelon-surface);
  border: 1px solid var(--echelon-border);
  border-radius: 10px;
}

.plan-card {
  padding: 12px 14px;
}

.features-card {
  align-items: center;
  padding: 12px 8px;
  color: var(--echelon-purple);
  font-size: 17px;
  font-weight: 700;
}

.plan-name {
  color: var(--echelon-purple-dark);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.plan-price {
  margin-top: 4px;
  color: var(--echelon-purple);
  font-size: 23px;
  font-weight: 800;
  line-height: 1.2;
}

.plan-period {
  font-size: 13px;
  font-weight: 600;
}

/* Keep FleetCart category menus above the comparison header */
.category-nav,
.category-dropdown,
.categories-wrap {
  position: relative;
  z-index: 1001;
}

/* Section backgrounds */
.package-row td,
.performance-row td,
.backups-row td,
.metrics-row td,
.databases-row td,
.apps-row td,
.domains-row td,
.misc-row td {
  background: var(--echelon-page-background) !important;
}

.email-row td,
.security-row td,
.dns-row td,
.files-row td,
.developer-row td,
.account-row td,
.software-row td {
  background: var(--echelon-surface) !important;
}

/* Improve first-column readability */
.comparison-table tbody td:first-child {
  color: var(--echelon-purple);
  font-weight: 700;
  text-transform: capitalize;
}

.ltr .comparison-table tbody td:first-child {
  text-align: left;
}

.rtl .comparison-table tbody td:first-child {
  text-align: right;
}

/* Select Plan button */
.table-button {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
  padding: 11px 0;
  background-color: var(--echelon-purple);
  color: var(--echelon-surface) !important;
  border: 1px solid var(--echelon-purple);
  border-radius: 7px;
  text-align: center;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.table-button:hover,
.table-button:focus {
  background-color: var(--echelon-purple-dark);
  border-color: var(--echelon-purple-dark);
  color: var(--echelon-surface) !important;
  text-decoration: none;
  transform: translateY(-1px);
}

.table-button:focus-visible {
  outline: 3px solid rgba(181, 148, 16, 0.38);
  outline-offset: 2px;
}

/* Purple icons */
.icon-yes {
  color: var(--echelon-purple);
  font-size: 22px;
  font-weight: bold;
}

.icon-no {
  color: #8B5FA9;
  font-size: 22px;
  font-weight: bold;
}

/* Fit all five plans inside the desktop customer panel. */
@media (min-width: 769px) {
  .account-wrap .comparison-table {
    min-width: 100%;
  }

  .account-wrap .comparison-table colgroup col:first-child {
    width: 110px;
  }

  .account-wrap .comparison-table colgroup col:not(:first-child) {
    width: calc((100% - 110px) / 5);
  }

  .account-wrap .comparison-table th,
  .account-wrap .comparison-table td {
    padding-right: 7px;
    padding-left: 7px;
    font-size: 14px;
  }
}
/* Phone */
@media (max-width: 768px) {
  .page-gutter {
    padding-left: 15px;
    padding-right: 15px;
  }

  .features-heading h1 {
    font-size: 27px;
  }

  .features-heading p {
    font-size: 15px;
  }

  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .comparison-table {
    min-width: 1300px;
  }

  .comparison-table thead {
    top: 0;
  }

  .hosting-comparison-mobile-sticky {
    position: fixed;
    top: 0;
    z-index: 11;
    overflow: hidden;
    background: var(--echelon-surface);
    box-shadow: 0 3px 8px rgba(45, 18, 51, 0.14);
    pointer-events: none;
  }

  .hosting-comparison-mobile-sticky.is-visible {
    display: block;
  }

  .hosting-comparison-mobile-sticky .comparison-table {
    margin: 0;
  }

  .hosting-comparison-mobile-sticky .comparison-table thead {
    position: static;
  }
}