.theory-table-wrap {
  box-sizing: border-box;
  width: 100%;
  margin: 20px 0 24px;
  overflow: hidden;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.05);
}

table.theory-values-table {
  width: 100%;
  min-width: 420px;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
}

.theory-values-table th,
.theory-values-table td {
  padding: 14px 18px;
  text-align: center;
  vertical-align: middle;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.theory-values-table th {
  color: #0f172a;
  background: #eef6ff;
  font-weight: 750;
}

.theory-values-table tbody tr:nth-child(even) td {
  background: #f8fafc;
}

.theory-values-table th:last-child,
.theory-values-table td:last-child {
  border-right: 0;
}

.theory-values-table tbody tr:last-child td {
  border-bottom: 0;
}

.theory-math-answer {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0;
  font-size: 1.08rem;
}

@media (max-width: 560px) {
  .theory-table-wrap {
    overflow-x: auto;
    overflow-y: hidden;
  }

  .theory-values-table th,
  .theory-values-table td {
    padding: 11px 13px;
  }
}
