.ww-price-comparison {
  margin: 2rem 0;
}

.ww-price-comparison__title {
  margin: 0 0 1rem;
  color: #20325d;
}

.ww-price-comparison__card {
  overflow-x: auto;
}

.ww-price-comparison__table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border: 1px solid #d9e1eb;
  border-radius: 12px;
  overflow: hidden;
}

.ww-price-comparison__table th,
.ww-price-comparison__table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #e6edf5;
  text-align: left;
  vertical-align: top;
}

.ww-price-comparison__table thead th {
  background: #f3f7fc;
  color: #20325d;
  font-weight: 700;
}

.ww-price-comparison__table thead th:nth-child(2) {
  background: #e7f8ee;
  color: #0d6a35;
}

.ww-price-comparison__table thead th:nth-child(3) {
  background: #fdecec;
  color: #9f1f1f;
}

.ww-price-comparison__table tbody th {
  width: 35%;
  font-weight: 700;
  color: #20325d;
  background: #fbfdff;
}

.ww-price-comparison__table tbody td:nth-child(2) {
  background: #f1fcf5;
  color: #0f5d33;
  font-weight: 600;
}

.ww-price-comparison__table tbody td:nth-child(3) {
  background: #fff5f5;
  color: #8f2424;
  font-weight: 600;
}

.ww-price-comparison__table tbody tr.ww-price-comparison__row--same td:nth-child(2),
.ww-price-comparison__table tbody tr.ww-price-comparison__row--same td:nth-child(3) {
  background: #f2f4f7;
  color: #4b5565;
}

.ww-price-comparison__table tbody tr:last-child th,
.ww-price-comparison__table tbody tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 782px) {
  .ww-price-comparison__card {
    overflow: visible;
  }

  .ww-price-comparison__table,
  .ww-price-comparison__table tbody,
  .ww-price-comparison__table tr,
  .ww-price-comparison__table th,
  .ww-price-comparison__table td {
    display: block;
    width: 100%;
  }

  .ww-price-comparison__table thead {
    display: none;
  }

  .ww-price-comparison__table tbody tr {
    border-bottom: 1px solid #d9e1eb;
    padding: 0;
    margin: 0;
    overflow: hidden;
  }

  .ww-price-comparison__table tbody tr:last-child {
    border-bottom: 0;
  }

  .ww-price-comparison__table tbody th {
    width: 100%;
    border-bottom: 0;
    background: #eef4fb;
    margin: 0;
  }

  .ww-price-comparison__table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin: 0;
  }

  .ww-price-comparison__table tbody td::before {
    content: attr(data-label);
    color: #20325d;
    font-weight: 700;
    flex: 0 0 40%;
  }

  .ww-price-comparison__table tbody td:nth-child(2),
  .ww-price-comparison__table tbody td:nth-child(3) {
    border-top: 1px solid #e6edf5;
  }
}

.ww-price-comparison-editor {
  border: 1px solid #d9e1eb;
  border-radius: 12px;
  padding: 1rem;
  background: #f8fbff;
}

.ww-price-comparison-editor__title {
  margin: 0 0 1rem;
}

.ww-price-comparison-editor__tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.ww-price-comparison-editor__rows {
  margin: 1rem 0;
  display: grid;
  gap: 1rem;
}

.ww-price-comparison-editor__row {
  padding: 0.9rem;
  border: 1px solid #d9e1eb;
  border-radius: 10px;
  background: #ffffff;
}

.ww-price-comparison-editor__row-label {
  margin: 0 0 0.6rem;
  font-weight: 700;
}

@media (max-width: 782px) {
  .ww-price-comparison-editor__tools {
    grid-template-columns: 1fr;
  }
}
