/* =============================================================
   NinjaMame — Comparison Table  v5
   File: comparison-table.css
   ============================================================= */

/* ---------- Wrap ---------- */
.nm-comparison-table-wrap {
  width: 100%;
  background: var(--light-bg);
  -webkit-overflow-scrolling: touch;
  --nm-ct-ft-col-image-max-width: 155px;
}

/* ---------- Inner — relative за pseudo-element pill ---------- */
.nm-comparison-table-inner {
  position: relative;
}

/*
   Лилавият pill зад featured колоната.
   label=34%, 3 колони по 22% всяка
*/
.nm-comparison-table-inner::before {
  content: '';
  position: absolute;
  top: var(--nm-ct-ft-col-image-max-width);
  bottom: 0;
  left: 34%;
  width: 22%;
  background: linear-gradient(166.61deg, #5c64c2 6.94%, #3f447c 106.79%);
  border-radius: 20px;
  box-shadow: 11px 11px 11.1px 0px #48601c1f;
  z-index: 0;
  pointer-events: none;
  height: 85%;
}

/* ---------- Table base ---------- */
.nm-comparison-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-family: inherit;
  position: relative;
  z-index: 1;
}

/* ---------- HEADER ---------- */

.nm-ct-label-header {
  width: 34%;
  background: transparent;
  border: none;
  padding: 0 0 16px 0;
  vertical-align: bottom;
}

.nm-ct-col-header {
  padding: 20px 16px 18px;
  text-align: center;
  background: transparent;
  vertical-align: bottom;
  border: none;
  position: relative;
}

.nm-ct-col-header.nm-ct-col--featured {
  background: transparent;
  color: #ffffff;
}

/* Изображение в хедър */
.nm-ct-col-image {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 110px;
}
.nm-ct-col-header.nm-ct-col--featured .nm-ct-col-image {
  padding: 0 0 30px 0;
}

.nm-ct-col-image img {
  object-fit: contain;
  display: block;
  width: 100%;
  max-width: var(--nm-ct-ft-col-image-max-width);
}

.nm-ct-col-label {
  display: block;
  font-size: 26px;
  text-transform: uppercase;
  line-height: 1.2em;
  font-family: var(--akrobat-900);
  color: var(--body-color);
}

.nm-ct-col-header:not(.nm-ct-col--featured) .nm-ct-col-label {
  color: #1a1a2e;
}

/* ---------- BODY ROWS ---------- */

/* ---------- BODY ROWS ---------- */
/* Safari не поддържа box-shadow на <tr> — ползваме border-top на td */
.nm-ct-row td {
  border-top: 1px solid #94c243;
}

/* Featured td — border цвят = тъмен край на pill градиента → невидим */
.nm-ct-row td.nm-ct-cell--featured {
  border-top-color: #3f447c;
}

/* ---------- Клетки ---------- */

.nm-ct-row-label {
  font-size: 28px;
  line-height: 1.2em;
  font-family: var(--akrobat-900);
  padding: 16px 34px 16px 0;
  color: var(--body-color);
  text-align: right;
  letter-spacing: 0;
  text-transform: uppercase;
  vertical-align: middle;
  background: transparent;
  border: none;
}
.nm-ct-row:first-child td {
  border-top: none;
}
.nm-ct-cell {
  padding: 16px 12px;
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  color: var(--body-color);
  background: transparent;
  vertical-align: middle;
  border: none;
  font-family: var(--akrobat-400);
}

.nm-ct-cell.nm-ct-cell--featured {
  background: transparent;
  color: #fff;
  font-size: 28px;
  font-family: var(--akrobat-900);
  text-transform: uppercase;
}
th.nm-ct-col-header.nm-ct-col--featured .nm-ct-col-label {
  font-family: var(--deslaw-font);
  font-size: 32px;
  color: #92c13e;
  letter-spacing: 6%;
}

@media (min-width: 1024px) {
  th.nm-ct-col-header[data-col-index='2'] .nm-ct-col-image img {
    max-width: 200px;
  }
}

@media (max-width: 1024px) {
  .nm-ct-row-label,
  .nm-ct-cell.nm-ct-cell--featured {
    font-size: 24px;
  }
  .nm-ct-row-label {
    padding: 16px 30px 16px 0;
  }
  .nm-ct-cell {
    font-size: 24px;
  }
  th.nm-ct-col-header.nm-ct-col--featured .nm-ct-col-label {
    font-size: 26px;
  }
  .nm-ct-col-label {
    font-size: 22px;
  }
  .nm-comparison-table-wrap {
    --nm-ct-ft-col-image-max-width: 105px;
  }
  .nm-ct-col-header.nm-ct-col--featured .nm-ct-col-image {
    padding: 0 0 12px 0;
  }
}

@media (min-width: 767px) {
  .nm-ct-row:last-child td {
    padding-bottom: 0;
  }
}

@media (max-width: 767px) {
  .nm-comparison-table-wrap {
    --nm-ct-ft-col-image-max-width: 60px;
  }
  th.nm-ct-col-header.nm-ct-col--featured .nm-ct-col-label {
    font-size: 18px;
  }

  .nm-ct-row:first-child td.nm-ct-row-label {
    border-radius: 12px 0 0 0;
  }
  .nm-ct-row:last-child td.nm-ct-cell:last-child {
    border-radius: 0 0 12px 0;
  }

  /* Pill позиция — label по-тясна на мобилно */
  /* label=28%, 3 колони по ~24% */
  .nm-comparison-table-inner::before {
    left: 28%;
    width: 24%;
    height: 88%;
    top: 18%;
  }

  /* ---------- HEADER ---------- */

  .nm-ct-label-header {
    width: 28%;
    padding-bottom: 10px;
  }

  .nm-ct-col-header {
    padding: 12px 6px 12px;
  }

  /* Featured хедър — по-малко padding */
  .nm-ct-col-header.nm-ct-col--featured {
    padding: 0;
  }

  /* Изображения в хедъра — по-малки */
  .nm-ct-col-image {
    min-height: 70px;
  }

  .nm-ct-col-image img {
    max-width: var(--nm-ct-ft-col-image-max-width);
  }

  /* Featured изображение */
  .nm-ct-col-header.nm-ct-col--featured .nm-ct-col-image {
    padding: 12px 0;
  }

  /* Column labels */
  .nm-ct-col-label {
    font-size: 14px;
    letter-spacing: 0;
  }

  .nm-ct-col-header.nm-ct-col--featured .nm-ct-col-label {
    font-size: 16px;
  }

  /* ---------- ROWS ---------- */

  .nm-ct-row-label {
    font-size: 14px;
    padding: 12px 10px 12px 0;
    text-align: right;
    width: 28%;
  }

  .nm-ct-cell {
    padding: 12px 6px;
    font-size: 16px;
  }

  .nm-ct-cell.nm-ct-cell--featured {
    font-size: 16px;
  }

  .nm-ct-row td {
    background: #fff;
  }
  .nm-ct-row td.nm-ct-cell--featured {
    background: transparent;
  }
  .nm-ct-row td.nm-ct-row-label {
    background: #fff;
  }
  .nm-ct-row:last-child td.nm-ct-row-label {
    border-radius: 0 0 0 12px;
  }
  .nm-ct-row:first-child td.nm-ct-cell:last-child {
    border-radius: 0 12px 0 0;
  }
  .nm-ct-row td {
    border-top: 2px solid #e0e0e0;
  }
}

/* ---------- Много малки екрани (< 380px) ---------- */
@media (max-width: 379px) {
  .nm-comparison-table-wrap {
    --nm-ct-ft-col-image-max-width: 50px;
  }
  .nm-comparison-table-inner::before {
    left: 26%;
    width: 25%;
  }

  .nm-ct-label-header {
    width: 26%;
  }

  .nm-ct-col-label {
    font-size: 11px;
  }

  .nm-ct-col-header.nm-ct-col--featured .nm-ct-col-label {
    font-size: 13px;
  }

  .nm-ct-row-label {
    font-size: 12px;
    width: 26%;
  }

  .nm-ct-cell {
    font-size: 14px;
    padding: 10px 4px;
  }

  .nm-ct-col-image img {
    max-width: var(--nm-ct-ft-col-image-max-width);
  }

  .nm-ct-col-header.nm-ct-col--featured .nm-ct-col-image {
    padding: 8px 0;
  }
}
