/* KiviCare Helper common styles (namespaced) */

.kc-pmpro-dashboard-cta{
  margin-top: 16px;
}

.kc-pmpro-dashboard-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 10px;
  background: #2c7be5;
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 600;
  line-height: 1;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 6px 18px rgba(44,123,229,.25);
  transition: transform .08s ease, box-shadow .12s ease, background-color .12s ease;
}

.kc-pmpro-dashboard-btn:hover,
.kc-pmpro-dashboard-btn:focus{
  background: #1f66c9;
  color: #ffffff !important;
  box-shadow: 0 8px 22px rgba(44,123,229,.32);
  transform: translateY(-1px);
}

.kc-pmpro-dashboard-btn:active{
  transform: translateY(0);
  box-shadow: 0 5px 14px rgba(44,123,229,.22);
}

/* PMPro checkout clinic details fields */
#kch_clinic_fields .pmpro_form_fields{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

#kch_clinic_fields .pmpro_form_field{
  margin: 0;
}

#kch_clinic_fields .pmpro_form_field textarea{
  min-height: 92px;
}

/* Make address span full width */
#kch_clinic_fields .kch_kc_clinic_address{
  grid-column: 1 / -1;
}

@media (max-width: 640px){
  #kch_clinic_fields .pmpro_form_fields{
    grid-template-columns: 1fr;
  }
}

/* PMPro levels page - comparison table layout (KCHelper override)
   Uses .kch-level-comparison-wrap for reliable targeting (always in our template) */
.kch-level-comparison-wrap .kch-level-comparison-table {
  border-collapse: collapse;
  width: 100%;
}

/* Header row - all cells highlighted */
.kch-level-comparison-wrap .kch-level-comparison-table thead th {
  background: #b8dcef !important;
  color: #0c3d54;
  font-weight: 600;
  padding: 14px 18px;
  border: 1px solid rgba(12, 61, 84, 0.2);
  text-align: center !important;
}

.kch-level-comparison-wrap .kch-level-comparison-table thead th.kch-col-feature {
  background: #b8dcef !important;
  color: #0c3d54;
  text-align: center !important;
}

/* First column (Feature column) - highlighted, centered */
.kch-level-comparison-wrap .kch-level-comparison-table tbody td.kch-col-feature {
  background: #e8f2fa !important;
  border: 1px solid rgba(12, 61, 84, 0.12);
  padding: 14px 18px;
  text-align: center !important;
}

/* Price row - highlighted */
.kch-level-comparison-wrap .kch-level-comparison-table .kch-row-price {
  background: #d0e8f5 !important;
}

.kch-level-comparison-wrap .kch-level-comparison-table .kch-row-price .kch-col-feature {
  background: #c8e4f5 !important;
  font-weight: 600;
  border: 1px solid rgba(12, 61, 84, 0.18);
  padding: 14px 18px;
  text-align: center !important;
}

.kch-level-comparison-wrap .kch-level-comparison-table .kch-row-price td {
  background: #d0e8f5 !important;
  font-weight: 600;
  color: #0c3d54;
  border: 1px solid rgba(12, 61, 84, 0.18);
  padding: 14px 18px;
  text-align: center;
}

/* Action row - highlighted */
.kch-level-comparison-wrap .kch-level-comparison-table .kch-row-action {
  background: #c8e4f5 !important;
}

.kch-level-comparison-wrap .kch-level-comparison-table .kch-row-action .kch-col-feature {
  background: #b8dcef !important;
  font-weight: 600;
  border: 1px solid rgba(12, 61, 84, 0.2);
  padding: 14px 18px;
  text-align: center !important;
}

.kch-level-comparison-wrap .kch-level-comparison-table .kch-row-action td {
  background: #c8e4f5 !important;
  border: 1px solid rgba(12, 61, 84, 0.2);
  padding: 16px 18px;
  text-align: center;
}

/* Cell icons (checkmark, dash, value) - no inline styles */
.kch-level-comparison-wrap .kch-cell-yes .kch-icon-yes,
.kch-level-comparison-wrap .kch-cell-no .kch-icon-no,
.kch-level-comparison-wrap .kch-cell-value .kch-icon-value {
  font-weight: 700;
  line-height: 1;
}

.kch-level-comparison-wrap .kch-cell-yes .kch-icon-yes {
  font-size: 1.4em;
  color: #00a32a;
}

.kch-level-comparison-wrap .kch-cell-no .kch-icon-no {
  font-size: 1.3em;
  color: #6c757d;
}

.kch-level-comparison-wrap .kch-cell-value .kch-icon-value {
  font-size: 1.1em;
}

.kch-level-comparison-wrap {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.kch-level-comparison-table-wrap {
  overflow-x: auto;
  border-radius: 8px;
}

.kch-level-comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 400px;
}

.kch-level-comparison-table th,
.kch-level-comparison-table td {
  padding: 14px 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  text-align: left;
  vertical-align: middle;
}

/* Header row (first row) - base styles, highlighting via .kch-level-comparison-wrap rules above */
.kch-level-comparison-table thead th {
  font-weight: 600;
  font-size: 1.05em;
  color: #0c3d54;
  border-color: rgba(12, 61, 84, 0.2);
}

.kch-level-comparison-table thead th:first-child {
  border-radius: 8px 0 0 0;
}

.kch-level-comparison-table thead th:last-child {
  border-radius: 0 8px 0 0;
}

.kch-level-comparison-table tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.02);
}

.kch-level-comparison-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.02);
}

/* First column (Feature column) - base styles, highlighting via .kch-level-comparison-wrap rules above */
.kch-level-comparison-table .kch-col-feature {
  font-weight: 500;
  min-width: 200px;
  color: #1d2327;
  border-color: rgba(12, 61, 84, 0.12);
}

.kch-level-comparison-table .kch-col-level {
  text-align: center;
  min-width: 130px;
}

.kch-level-comparison-table thead .kch-col-level {
  text-align: center;
}

.kch-level-name {
  display: block;
  font-weight: 600;
}

.kch-cell-yes {
  text-align: center;
  color: #00a32a;
  font-size: 1.2em;
}

.kch-cell-no {
  text-align: center;
  color: #a7aaad;
}

.kch-cell-value {
  text-align: center;
  font-weight: 500;
}

/* Price row - base styles, highlighting via .kch-level-comparison-wrap rules above */
.kch-row-price td {
  border-color: rgba(12, 61, 84, 0.18);
  font-weight: 600;
}

.kch-cell-price {
  font-weight: 600;
  font-size: 1.05em;
  color: #0c3d54;
}

/* Action row - base styles, highlighting via .kch-level-comparison-wrap rules above */
.kch-row-action td {
  border-color: rgba(12, 61, 84, 0.2);
}

.kch-cell-action {
  text-align: center;
  padding: 16px 18px;
}

.kch-cell-action .pmpro_btn {
  white-space: nowrap;
  padding: 10px 20px;
  font-weight: 600;
  border-radius: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kch-cell-action .pmpro_btn:hover {
  transform: translateY(-1px);
}

.kch-cell-action .pmpro_btn-select {
  box-shadow: 0 2px 8px rgba(12, 61, 84, 0.25);
}

@media (max-width: 768px) {
  .kch-level-comparison-wrap {
    padding: 1rem;
  }

  .kch-level-comparison-table th,
  .kch-level-comparison-table td {
    padding: 10px 12px;
    font-size: 0.95em;
  }
}

/* Pricing comparison table (frontend shortcode [kch_pricing_comparison]) */
.kch-pricing-comparison-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
}

.kch-pricing-comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}

.kch-pricing-comparison-table th,
.kch-pricing-comparison-table td {
  padding: 12px 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  text-align: left;
}

.kch-pricing-comparison-table thead th {
  font-weight: 600;
  background: rgba(0, 0, 0, 0.04);
}

.kch-pricing-comparison-table .kch-col-feature {
  font-weight: 500;
}

.kch-pricing-comparison-table .kch-col-level {
  text-align: center;
}

