.enix-step-list-wrap {
  width: 100%;
  overflow-x: auto;
}

.enix-step-table {
  display: table;
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.enix-step-row {
  display: table-row;
}

.enix-step-row + .enix-step-row .enix-cell {
  border-top: 1px solid #e5e7eb;
}

.enix-cell {
  display: table-cell;
  vertical-align: middle;
  padding: 14px 16px;
  border-right: 1px solid #e5e7eb;
  color: #1f2937;
  font-size: 15px;
  line-height: 1.45;
}

.enix-cell:last-child {
  border-right: 0;
}

/* Desktop column widths (match requested layout) */
.enix-cell-image {
  width: 120px;
  text-align: center;
  padding: 6px 8px;
  border-right: 0;
}

.enix-cell-action {
  width: 230px;
}

.enix-cell-description {
  width: 300px !important;
}

/* Shared sizing for the circular icon */
.enix-step-thumb {
  width: 80px;
  height: 80px;
  border-radius: 100px;
  object-fit: cover;
  border: 1px solid #d1d5db;
}

img.enix-step-thumb {
  border-radius: 100px;
}

.enix-cell-title {
  width: 150px;
}

.enix-cell-title h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.enix-step-btn {
  display: inline-block;
  min-width: 120px;
  text-align: center;
  padding: 10px 16px;
  border-radius: 4px;
  background: #0073aa;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease-in-out;
}

.enix-step-btn .enix-btn-icon {
  display: inline-flex;
  vertical-align: middle;
}

.enix-step-btn .enix-btn-icon--left {
  margin-right: 10px;
}

.enix-step-btn .enix-btn-icon--right {
  margin-left: 10px;
}

.enix-step-btn:hover,
.enix-step-btn:focus {
  background: #005f8d;
  color: #fff;
}

.enix-cell-description p {
  margin: 0;
}

/* Details takes remaining space */
.enix-cell-details {
  width: auto;
}

.enix-cell-details ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.enix-cell-details li {
  margin: 0 0 6px;
}

.enix-cell-details li:last-child {
  margin-bottom: 0;
}

/* Tablet: keep readable proportions (override the fixed desktop widths) */
@media (max-width: 1024px) and (min-width: 769px) {
  .enix-cell {
    padding: 12px 12px;
    font-size: 14px;
    line-height: 1.4;
  }

  .enix-cell-image {
    width: 100px;
    padding: 8px 8px;
  }

  .enix-step-thumb {
    width: 80px;
    height: 80px;
  }

  .enix-cell-title {
    width: 130px;
  }

  .enix-cell-title h3 {
    font-size: 18px;
  }

  .enix-cell-action {
    width: 180px;
  }

  .enix-step-btn {
    min-width: 100px;
    padding: 9px 12px;
    font-size: 13px;
  }

  .enix-cell-description {
    width: 220px !important;
  }
}

/* Mobile: transform the table into stacked cards */
@media (max-width: 768px) {
  .enix-step-table {
    display: block;
    border: 0;
    background: transparent;
  }

  .enix-step-row {
    display: block;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    margin-bottom: 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    overflow: hidden;
  }

  .enix-step-row + .enix-step-row .enix-cell {
    border-top: 0;
  }

  .enix-cell {
    display: block;
    width: 100%;
    border-right: 0;
    border-top: 1px solid #eef2f7;
    padding: 12px 14px;
  }

  .enix-cell:first-child {
    border-top: 0;
  }

  .enix-cell-image,
  .enix-cell-title,
  .enix-cell-action,
  .enix-cell-description,
  .enix-cell-details {
    width: 100%;
    text-align: center;
  }

  .enix-cell-title h3 {
    font-size: 18px;
  }

  .enix-step-btn {
    width: 100%;
  }
}
