/* ---------- Comparison table ---------- */
.comparison-section {
  padding: 0 0 2.5rem 0;
  background: #fff;
}

.comparison-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  max-width: 976px;
  margin: 0 auto;
  background: transparent;
  border: none;
  table-layout: fixed;
}

.comparison-table thead th {
  padding: 1rem;
  font-weight: 400;
  font-size: 1rem;
  border: none;
  vertical-align: bottom;
}

.comparison-table thead th.col-feature {
  width: 34%;
  background: transparent;
  text-align: center;
  padding-bottom: 1.25rem;
}

.comparison-table thead th.col-feature h3 {
  font-size: 1.75rem;
  color: var(--text-dark);
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.comparison-table thead th.col-feature p {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 400;
  margin: 0;
}

.comparison-table thead th.col-allay,
.comparison-table thead th.col-others {
  vertical-align: middle;
  background: transparent;
  border: none;
  padding: 0;
}

.comparison-table thead th.col-allay {
  width: 33%;
  padding-right: 6px;
}

.comparison-table thead th.col-others {
  width: 33%;
  padding-left: 6px;
}

.comparison-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem;
  color: #fff;
  font-weight: 400;
  border-radius: 12px 12px 0 0;
  border: 1px solid #F3F4F6;
  border-bottom: none;
  min-height: 52px;
}

.comparison-tab--allay {
  background: #301FC3;
}

.comparison-tab--others {
  background: #A5ABB6;
}

.comparison-table tbody td {
  padding: 1.35rem 1.75rem;
  border-top: 1px solid #F3F4F6;
  font-size: 14px;
  vertical-align: middle;
  background: #fff;
}

.comparison-table tbody td.col-feature {
  border-left: 1px solid #F3F4F6;
  border-right: 1px solid #F3F4F6;
}

.comparison-table tbody td.col-allay {
  border-right: 1px solid #F3F4F6;
  color: var(--text-dark);
}

.comparison-table tbody td.col-others {
  border-right: 1px solid #F3F4F6;
  color: #6B7280;
}

.comparison-table tbody tr:last-child td {
  border-bottom: 1px solid #F3F4F6;
}

.comparison-table tbody tr:last-child td.col-feature {
  border-radius: 0 0 0 12px;
}

.comparison-table tbody tr:last-child td.col-others {
  border-radius: 0 0 12px 0;
}

.comparison-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.feature-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 400;
  color: var(--text-dark);
}

.feature-label img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.status-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.comparison-cell span {
  line-height: 1.45;
}

/* ---------- Merchant types table ---------- */
.merchant-table-wrap {
  max-width: 1100px;
  margin: 0 auto;
  border: 1px solid #F3F4F6;
  border-radius: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  background: #fff;
  padding-top: 12px;
}

.merchant-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  background: transparent;
  margin-bottom: 0;
}

.merchant-table thead th {
  background: #301FC3;
  color: #fff;
  padding: 1.15rem 1.75rem;
  font-weight: 400;
  font-size: 14px;
  text-align: left;
  vertical-align: middle;
  border: none;
  border-radius: 0;
}

.merchant-table thead th:nth-child(1),
.merchant-table tbody td:nth-child(1) {
  width: 22%;
}

.merchant-table thead th:nth-child(2),
.merchant-table tbody td:nth-child(2) {
  width: 38%;
}

.merchant-table thead th:nth-child(3),
.merchant-table tbody td:nth-child(3) {
  width: 22%;
}

.merchant-table thead th:nth-child(4),
.merchant-table tbody td:nth-child(4) {
  width: 18%;
}

.merchant-table tbody td {
  padding: 1.35rem 1.75rem;
  border-bottom: 1px solid #F3F4F6;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  vertical-align: middle;
  background: #fff;
  color: #4B5563;
}

.merchant-table tbody tr:last-child td {
  border-bottom: none;
}

.merchant-table tbody tr td:first-child {
  font-weight: 400;
  color: var(--text-dark);
}

.merchant-note {
  font-size: 14px;
  color: #9CA3AF;
  font-style: italic;
  text-align: center;
  margin: 1.25rem 0 0;
}

/* ---------- Compliance section ---------- */
.compliance-section {
  padding: 4rem 0;
}

.compliance-card {
  max-width: 1056px;
  margin: 0 auto;
  overflow: hidden;
}

.compliance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 58px;
  align-items: center;
}

.compliance-image {
  width: 100%;
  height: 100%;
}

.compliance-content {
  padding: 2.5rem 2.5rem 2.5rem 0;
}

.compliance-title {
  color: #0C053C;
  font-size: 38px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 20px;
}

.compliance-text {
  color: #475569;
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.compliance-list {
  margin-bottom: 0;
}

.compliance-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-weight: 400;
  font-size: 15px;
  color: #1E293B;
}

.compliance-list li:last-child {
  margin-bottom: 0;
}

.compliance-list .compliance-check {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ---------- Final CTA ---------- */
.cta-section {
  &.bg-dark {
    background: var(--navy-deep) !important;
  }

  &.bg-light {
    background: var(--bg-light) !important;
  }

  padding: 3.5rem 0 5rem;
}

.cta-divider {
  display: block;
  width: 100%;
  height: 1px;
  border: 0;
  margin: 0 0 1.75rem;
  background-color: var(--navy-card-border);
}

.cta-box {
  position: relative;
  background-color: #0C054C;
  background-image: url("/wp-content/themes/allaypay/assets/images/cta_bg.svg");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 100%;
  border: 1px solid #231A89;
  border-radius: 16px;
  padding: 3.5rem;
  overflow: hidden;
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-content {
  max-width: 650px;
}

.cta-title {
  color: #fff;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.cta-text {
  color: #E0E7FF;
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
}

.cta-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.btn-cta-primary {
  background-color: var(--orange);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  transition: 0.2s ease;
  white-space: nowrap;
  border: 1px solid var(--primary-color);
}

.btn-cta-primary:hover {
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  background: transparent;
}

.btn-cta-secondary {
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  background: transparent;
  transition: 0.2s ease;
  white-space: nowrap;
}

.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

@media (max-width:991px) {
  .cta-box {
    padding: 2rem;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-title {
    font-size: 1.75rem;
  }

  .cta-text {
    font-size: 16px;
  }

  .cta-actions {
    flex-wrap: wrap;
    width: 100%;
  }

  .btn-cta-primary,
  .btn-cta-secondary {
    white-space: normal;
    text-align: center;
    flex: 1 1 auto;
  }

  .comparison-table thead th.col-feature h3 {
    font-size: 1.125rem;
  }

  .comparison-table thead th.col-feature p {
    font-size: 12px;
  }

  .comparison-table thead th,
  .comparison-table tbody td {
    padding: 1rem 1.25rem;
  }

  .comparison-table {
    min-width: 600px;
  }

  .merchant-table {
    min-width: 720px;
  }

  .merchant-table thead th,
  .merchant-table tbody td {
    padding: 1rem 1.25rem;
  }

  .compliance-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .compliance-title {
    font-size: 1.75rem;
  }

  .compliance-text {
    font-size: 16px;
    margin-bottom: 1.5rem;
  }

  .compliance-content {
    padding: 0 1.5rem 1.5rem;
  }
}

@media (max-width:767px) {

  .comparison-section .table-responsive,
  .merchant-table-wrap {
    overflow: visible;
  }

  .comparison-table {
    display: block;
    min-width: 0;
  }

  .comparison-table thead,
  .comparison-table tbody {
    display: block;
  }

  .comparison-table thead tr {
    display: block;
  }

  .comparison-table thead th.col-feature {
    display: block;
    width: 100%;
    padding: 0 0 1.25rem;
  }

  .comparison-table thead th.col-feature h3 {
    font-size: 1.45rem;
  }

  .comparison-table thead th.col-feature p {
    font-size: 14px;
  }

  .comparison-table thead th.col-allay,
  .comparison-table thead th.col-others {
    display: none;
  }

  .comparison-table tbody tr {
    display: block;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  }

  .comparison-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .comparison-table tbody td,
  .comparison-table tbody td.col-feature,
  .comparison-table tbody td.col-allay,
  .comparison-table tbody td.col-others {
    display: grid;
    width: 100%;
    padding: 8px;
    border: 0;
    border-radius: 0;
  }

  .comparison-table tbody td.col-feature {
    display: block;
    background: #F8F8FC;
    border-bottom: 1px solid #E5E7EB;
  }

  .comparison-table tbody td.col-allay,
  .comparison-table tbody td.col-others {
    grid-template-columns: minmax(104px, 34%) 1fr;
    align-items: center;
    gap: 0.75rem;
  }

  .comparison-table tbody td.col-allay {
    border-bottom: 1px solid #F3F4F6;
  }

  .comparison-table tbody td.col-allay::before,
  .comparison-table tbody td.col-others::before {
    font-size: 13px;
    font-weight: 600;
  }

  .comparison-table tbody td.col-allay::before {
    content: "AllayPay";
    color: #301FC3;
  }

  .comparison-table tbody td.col-others::before {
    content: "Stripe, etc.";
    color: #6B7280;
  }

  .merchant-table-wrap {
    padding-top: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .merchant-table {
    display: block;
    min-width: 0;
  }

  .merchant-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .merchant-table tbody {
    display: grid;
    gap: 1rem;
  }

  .merchant-table tbody tr {
    display: block;
    overflow: hidden;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  }

  .merchant-table tbody td,
  .merchant-table tbody td:nth-child(n) {
    display: grid;
    grid-template-columns: minmax(120px, 40%) 1fr;
    gap: 0.75rem;
    width: 100%;
    padding: 8px;
    border: 0;
    border-bottom: 1px solid #F3F4F6;
  }

  .merchant-table tbody td::before {
    content: attr(data-label);
    color: #301FC3;
    font-weight: 600;
  }

  .merchant-table tbody tr td:first-child {
    display: block;
    background: #301FC3;
    color: #fff;
    font-weight: 600;
  }

  .merchant-table tbody tr td:first-child::before {
    display: none;
  }

  .merchant-table tbody td:last-child {
    border-bottom: 0;
  }

  .cta-section {
    padding: 2.5rem 0 3.5rem;
  }

  .cta-box {
    padding: 1.5rem;
    background-size: cover;
  }

  .cta-title {
    font-size: 1.5rem;
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-cta-primary,
  .btn-cta-secondary {
    width: 100%;
  }
}
