.oby-ctable {
  padding: var(--section-padding) 0;
}

/* Scroll wrapper for mobile */
.oby-ctable__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Table base */
.oby-ctable__table {
  width: 100%;
  min-width: 600px;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 24px;
  overflow: hidden;
  background-color: var(--x-white);
  box-shadow: 0 1px 4px rgba(19, 4, 1, 0.06);
}

/* Highlighted column background via colgroup */
.oby-ctable__col--highlight {
  background-color: rgba(255, 107, 60, 0.04);
}

/* Header cells */
.oby-ctable__th {
  padding: 20px 24px;
  text-align: center;
  vertical-align: middle;
  font-family: var(--font-obviously);
  font-weight: var(--font-bold);
  font-size: 20px;
  text-transform: uppercase;
  color: var(--x-black);
  background-color: var(--x-cream2);
  border-bottom: 1px solid var(--x-cream2);
}

.oby-ctable__th--first {
  text-align: center;
}

/* Highlighted header: gradient background */
.oby-ctable__th--highlight {
  background: linear-gradient(135deg, var(--x-orange), #ff8a6a);
  color: var(--x-white);
}

.oby-ctable__th-img {
  max-height: 32px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

.oby-ctable__th-label {
  display: block;
}

/* When image + label both present */
.oby-ctable__th-img + .oby-ctable__th-label {
  margin-top: 4px;
  font-size: 14px;
  font-weight: var(--font-medium);
  text-transform: none;
}

/* Show only image in header if both are present — hide label visually */
.oby-ctable__th--highlight .oby-ctable__th-img + .oby-ctable__th-label {
  display: none;
}

/* Body cells */
.oby-ctable__td {
  padding: 18px 24px;
  text-align: center;
  vertical-align: middle;
  font-family: var(--font-dm);
  font-size: 16px;
  font-weight: var(--font-regular);
  color: var(--x-black);
  border-bottom: 1px solid var(--x-cream2);
}

.oby-ctable__td--first {
  text-align: center;
  font-family: var(--font-obviously);
  font-weight: var(--font-semibold);
  font-size: 15px;
}

/* Last row: no border */
.oby-ctable__tr:last-child .oby-ctable__td {
  border-bottom: none;
}

/* Row highlight */
.oby-ctable__tr--highlight {
  background-color: rgba(255, 107, 60, 0.06);
}

/* Column highlight cells */
.oby-ctable__td--col-highlight {
  background-color: rgba(255, 107, 60, 0.04);
}

/* Icons */
.oby-ctable__icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: middle;
}

.oby-ctable__icon--check {
  color: #34c759;
}

.oby-ctable__icon--cross {
  color: var(--x-black);
  opacity: 0.7;
}

/* Responsive */
@media all and (max-width: 768px) {
  .oby-ctable__th {
    padding: 16px 14px;
    font-size: 16px;
  }

  .oby-ctable__td {
    padding: 14px;
    font-size: 14px;
  }

  .oby-ctable__td--first {
    font-size: 13px;
  }
}
