/* ================================
   KST CMS Product Tables
   Used by Hydrofoils rich text fields:
   - Sizes Table
   - recomended plane
================================ */

.kst-cms-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.25rem 0;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: .75rem;
  background: #fff;
  font-size: .92rem;
  line-height: 1.35;
}

.kst-cms-table th,
.kst-cms-table td {
  padding: .8rem .9rem;
  border-right: 1px solid rgba(0, 0, 0, .08);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  text-align: left;
  vertical-align: top;
}

.kst-cms-table th:last-child,
.kst-cms-table td:last-child {
  border-right: 0;
}

.kst-cms-table tbody tr:last-child td {
  border-bottom: 0;
}

.kst-cms-table thead th {
  background: #0b0b0b;
  color: #fff;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.kst-cms-table tbody tr:nth-child(even) td {
  background: #fafafa;
}

.kst-cms-table--size-range td:not(:first-child),
.kst-cms-table--recommended-plane td:first-child {
  font-variant-numeric: tabular-nums;
}

.kst-cms-table--size-range th:not(:first-child),
.kst-cms-table--size-range td:not(:first-child) {
  text-align: center;
}

.kst-cms-table--recommended-plane td:nth-child(2) {
  font-weight: 700;
}

@media (max-width: 767px) {
  .kst-cms-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: .65rem;
    font-size: .86rem;
  }

  .kst-cms-table th,
  .kst-cms-table td {
    min-width: 9rem;
    padding: .7rem .75rem;
  }
}
