.compare-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; */
  max-width: 850px;
  margin: 20px auto;
  color: #1e293b;
}

.cb-header {
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748b;
}

.cb-cell {
  display: flex;
  align-items: stretch;
}

.cb-icon-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 60px;
  flex-shrink: 0;
  padding-top: 14px;
}

.cb-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  line-height: normal;
  color: #ffffff;
}

.icon-neutral { background-color: #94a3b8; }
.icon-success { background-color: #10b981; }
.icon-fail { background-color: #ef4444; }

.cb-text-wrap {
  padding: 12px 20px 12px 0;
  flex-grow: 1;
  font-size: 15px;
  line-height: 1.5;
  display: flex;
}

.cb-column {
  display: flex;
  flex-direction: column;
}

.cb-items {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

@media (max-width: 650px) {
  .compare-block {
    display: flex;
    flex-direction: column;
  }
  .cb-icon-wrap {
    padding-top: 12px;
  }
}

@media (max-width: 650px) {
  .layout-paired .cb-header.left,
  .layout-paired .cb-cell.left {
    order: 1;
  }
  .layout-paired .cb-header.right,
  .layout-paired .cb-cell.right {
    order: 2;
  }
  .layout-unlinked .cb-column.cb-right {
    margin-top: 20px;
  }
}

.theme-filled {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.theme-filled .cb-header {
  border-bottom: 2px solid #e2e8f0;
}

.layout-paired.theme-filled .cb-header.left {
  background: #f1f5f9;
  border-right: 1px solid #e2e8f0;
}

.layout-paired.theme-filled .cb-cell.left {
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
}

.layout-paired.theme-filled .cb-cell {
  border-bottom: 1px solid #e2e8f0;
}

.layout-paired.theme-filled .cb-cell:nth-last-child(1),
.layout-paired.theme-filled .cb-cell:nth-last-child(2) {
  border-bottom: none;
}

.layout-unlinked.theme-filled .cb-column.cb-left {
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
}

.layout-unlinked.theme-filled .cb-column.cb-left .cb-header {
  background: #f1f5f9;
}

.layout-unlinked.theme-filled .cb-cell {
  border-bottom: 1px solid #e2e8f0;
}

.layout-unlinked.theme-filled .cb-items .cb-cell:last-child {
  border-bottom: none;
}

@media (max-width: 650px) {
  .layout-paired.theme-filled .cb-header.left,
  .layout-paired.theme-filled .cb-cell.left {
    border-right: none;
  }
  .layout-paired.theme-filled .cb-cell:nth-last-child(2) {
    border-bottom: 4px solid #f1f5f9;
  }
  .layout-paired.theme-filled .cb-header.right {
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
  }
  .layout-unlinked.theme-filled .cb-column.cb-left {
    border-right: none;
    border-bottom: 4px solid #f1f5f9;
  }
  .layout-unlinked.theme-filled .cb-column.cb-right {
    margin-top: 0;
  }
}

.theme-lines {
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  overflow: hidden;
}

.theme-lines .cb-header {
  border-bottom: 2px solid #cbd5e1;
}

.theme-lines .cb-cell.left {
  font-weight: 500;
}

.theme-lines .cb-cell {
  border-bottom: 1px solid #e2e8f0;
}

.layout-paired.theme-lines .cb-header.left,
.layout-paired.theme-lines .cb-cell.left {
  border-right: 1px solid #cbd5e1;
}

.layout-paired.theme-lines .cb-cell:nth-last-child(1),
.layout-paired.theme-lines .cb-cell:nth-last-child(2) {
  border-bottom: none;
}

.layout-unlinked.theme-lines .cb-column.cb-left {
  border-right: 1px solid #cbd5e1;
}

.layout-unlinked.theme-lines .cb-items .cb-cell:last-child {
  border-bottom: none;
}

@media (max-width: 650px) {
  .layout-paired.theme-lines .cb-header.left,
  .layout-paired.theme-lines .cb-cell.left {
    border-right: none;
  }
  .layout-paired.theme-lines .cb-cell:nth-last-child(2) {
    border-bottom: 2px dashed #cbd5e1;
  }
  .layout-unlinked.theme-lines .cb-column.cb-left {
    border-right: none;
    border-bottom: 2px dashed #cbd5e1;
  }
}

.theme-framed {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 10px 0;
  background: #fff;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.theme-framed .cb-header {
  color: #94a3b8;
  border-bottom: none;
}

.theme-framed .cb-cell.left {
  font-weight: 500;
}

@media (max-width: 650px) {
  .theme-framed {
    padding: 20px 0;
  }
  .layout-paired.theme-framed .cb-header.right {
    margin-top: 10px;
  }
}

.theme-bare .cb-header {
  padding: 0 20px 10px 20px;
  color: #94a3b8;
  border-bottom: none;
}

.theme-bare .cb-cell.left {
  font-weight: 500;
}

.theme-bare .cb-text-wrap {
  padding: 12px 20px 12px 0;
}

.theme-bare .cb-cell {
  margin-bottom: 8px;
}

@media (max-width: 650px) {
  .layout-paired.theme-bare .cb-cell:nth-last-child(2) {
    margin-bottom: 20px;
  }
  .layout-unlinked.theme-bare .cb-column.cb-left {
    margin-bottom: 20px;
  }
}

/* THEME: CLAIM FILLED */
.theme-claim-filled {
  background: #ffffff;
  border: 1px solid #eff1f4;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.theme-claim-filled .cb-header {
  border-bottom: none;
}

.theme-claim-filled .cb-cell {
  border-bottom: none;
  padding-bottom: 8px;
}

/* Claim Filled Theme: Paired mode */
.layout-paired.theme-claim-filled .cb-header.left {
  background: #f1f5f9;
}

.layout-paired.theme-claim-filled .cb-header.right {
  background: #f9fbff;
}

.layout-paired.theme-claim-filled .cb-cell.left {
  background: #f8fafc;
}

/* Claim Filled Theme: Unlinked mode */
.layout-unlinked.theme-claim-filled .cb-column.cb-left {
  background: #f8fafc;
}

.layout-unlinked.theme-claim-filled .cb-column.cb-left .cb-header {
  background: #f1f5f9;
}

/* Claim Filled Theme: Mobile adjustments */
@media (max-width: 650px) {
  .layout-paired.theme-claim-filled .cb-header.right {
    margin-top: 16px;
    padding-top: 16px;
  }
  
  .layout-unlinked.theme-claim-filled .cb-column.cb-right {
    margin-top: 16px;
  }
}