.ctj-compare,
.ctj-compare * {
  box-sizing: border-box;
}

.ctj-compare {
  --ctj-slate: #1e3a5f;
  --ctj-slate-dark: #162d4a;
  --ctj-green: #10b981;
  --ctj-green-hover: #059669;
  --ctj-cream: #f8fafc;
  --ctj-white: #ffffff;
  --ctj-ink: #0f172a;
  --ctj-text: #475569;
  --ctj-muted: #64748b;
  --ctj-border: #e2e8f0;
  --ctj-soft-border: #f1f5f9;
  --ctj-serif: "Cormorant Garamond", serif;
  --ctj-sans: "DM Sans", sans-serif;
  --ctj-container: 1140px;

  width: 100%;
  overflow: hidden;
  padding-top: 88px;
  padding-bottom: 88px;
  padding-left: max(24px, calc((100vw - var(--ctj-container)) / 2));
  padding-right: max(24px, calc((100vw - var(--ctj-container)) / 2));
  background:
    radial-gradient(
      circle at 8% 16%,
      rgba(16, 185, 129, 0.08) 0,
      transparent 30%
    ),
    radial-gradient(
      circle at 92% 8%,
      rgba(124, 185, 232, 0.1) 0,
      transparent 32%
    ),
    #fafcff;
}

.ctj-compare-container {
  width: 100%;
  max-width: var(--ctj-container);
  margin: 0 auto;
}

.ctj-compare-header {
  max-width: 780px;
  margin-bottom: 42px;
}

.ctj-compare-kicker-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  padding: 12px;
  gap: 10px;
}

.ctj-compare-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  padding: 8px 13px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.08);
  color: var(--ctj-green-hover);
  font-family: var(--ctj-sans);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ctj-compare-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--ctj-green);
  box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.1);
}

.ctj-compare-title {
  margin: 0;
  max-width: 780px;
  color: var(--ctj-ink);
  font-family: var(--ctj-serif);
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.ctj-compare-title span {
  color: var(--ctj-slate);
}

.ctj-compare-description {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--ctj-muted);
  font-family: var(--ctj-sans);
  font-size: 17px;
  line-height: 1.7;
}

.ctj-compare-description strong {
  color: var(--ctj-ink);
  font-weight: 700;
}

.ctj-disclosure {
  margin: 32px 0 0;
  padding: 15px 17px;
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 16px;
  background: rgba(16, 185, 129, 0.07);
  color: var(--ctj-text);
  font-family: var(--ctj-sans);
  font-size: 14px;
  line-height: 1.65;
}

.ctj-scroll-hint {
  display: none;
  margin: 0 0 12px;
  color: var(--ctj-muted);
  font-family: var(--ctj-sans);
  font-size: 13px;
  line-height: 1.5;
}

.ctj-table-shell {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--ctj-border);
  border-radius: 24px;
  background: var(--ctj-white);
  box-shadow: 0 24px 60px rgba(15, 34, 57, 0.06);
}

.ctj-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  table-layout: fixed;
  text-align: left;
}

.ctj-table-mobile {
  display: none;
}

.ctj-table caption,
.ctj-table-mobile caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.ctj-table th,
.ctj-table-mobile th {
  height: 82px;
  padding: 18px 20px;
  vertical-align: middle;
  color: var(--ctj-white);
  font-family: var(--ctj-sans);
}

.ctj-th-provider {
  width: 30%;
  background: var(--ctj-slate-dark);
}

.ctj-th-dose {
  width: 23.333%;
  background: var(--ctj-slate);
}

.ctj-th-main {
  display: block;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ctj-th-sub {
  display: block;
  margin-top: 5px;
  color: #a7d8f4;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.ctj-row-group {
  border-bottom: 3px solid var(--ctj-border);
}

.ctj-provider-row {
  background: var(--ctj-white);
}

.ctj-provider-row:hover {
  background: #f8fafc;
}

.ctj-table td {
  padding: 26px 20px 22px;
  vertical-align: top;
  border-right: 1px solid var(--ctj-soft-border);
}

.ctj-table td:last-child {
  border-right: 0;
}

.ctj-provider-cell {
  background: #fbfdff;
}

.ctj-provider-name {
  display: block;
  color: var(--ctj-ink);
  font-family: var(--ctj-sans);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.15;
}

.ctj-provider-type {
  display: block;
  margin-top: 5px;
  color: var(--ctj-muted);
  font-family: var(--ctj-sans);
  font-size: 13px;
  line-height: 1.4;
}

.ctj-gphc {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  background: #ecfdf5;
  color: #065f46;
  font-family: var(--ctj-sans);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.ctj-ratings {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--ctj-border);
}

.ctj-rating {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ctj-rating-label {
  color: var(--ctj-muted);
  font-family: var(--ctj-sans);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ctj-stars {
  color: #f59e0b;
  font-family: var(--ctj-sans);
  font-size: 12px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.ctj-stars-empty {
  color: #cbd5e1;
}

.ctj-price {
  display: block;
  color: var(--ctj-ink);
  font-family: var(--ctj-sans);
  font-size: 29px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.ctj-price-sub {
  display: block;
  margin-top: 8px;
  color: var(--ctj-muted);
  font-family: var(--ctj-sans);
  font-size: 12px;
  line-height: 1.45;
}

.ctj-tag {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: var(--ctj-sans);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
}

.ctj-tag-green {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.ctj-tag-amber {
  background: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}

.ctj-tag-blue {
  background: #eff6ff;
  color: #1e40af;
  border-color: #bfdbfe;
}

.ctj-tag-purple {
  background: #f5f3ff;
  color: #5b21b6;
  border-color: #ddd6fe;
}

/* ACTION ROW BUTTONS */

.ctj-action-row td {
  padding: 20px 20px 24px !important;
  border-right: 0 !important;
  background: #ffffff !important;
}

.ctj-action-inner {
  display: grid;
  grid-template-columns: 30% 1fr;
  gap: 18px;
  align-items: center;
  width: 100%;
}

.ctj-notes-btn,
.ctj-notes-btn:visited,
.ctj-notes-btn:focus,
.ctj-notes-btn:active {
  width: 100% !important;
  min-height: 46px !important;
  padding: 13px 18px !important;
  border: 1px solid var(--ctj-border) !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  color: var(--ctj-text) !important;
  box-shadow: none !important;
  outline: none !important;
  cursor: pointer !important;

  font-family: var(--ctj-sans) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  text-decoration: none !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;

  transition: all 0.22s ease !important;
  appearance: none !important;
}

.ctj-notes-btn:hover,
.ctj-notes-btn[aria-expanded="true"] {
  background: #eff6ff !important;
  border-color: var(--ctj-slate) !important;
  color: var(--ctj-slate) !important;
  transform: translateY(-1px) !important;
}

.ctj-notes-btn:focus-visible {
  background: #eff6ff !important;
  border-color: var(--ctj-slate) !important;
  color: var(--ctj-slate) !important;
  outline: 3px solid rgba(30, 58, 95, 0.12) !important;
  outline-offset: 2px !important;
}

.ctj-visit,
.ctj-visit:visited,
.ctj-visit:focus,
.ctj-visit:active {
  width: 100% !important;
  min-height: 46px !important;
  padding: 13px 20px !important;
  border: 1px solid var(--ctj-green) !important;
  border-radius: 12px !important;
  background: var(--ctj-green) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.18) !important;
  outline: none !important;

  font-family: var(--ctj-sans) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0.01em !important;
  text-align: center !important;
  text-decoration: none !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  transition: all 0.22s ease !important;
}

.ctj-visit:hover {
  background: var(--ctj-green-hover) !important;
  border-color: var(--ctj-green-hover) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 14px 32px rgba(16, 185, 129, 0.26) !important;
}

.ctj-visit:focus-visible {
  outline: 3px solid rgba(16, 185, 129, 0.2) !important;
  outline-offset: 2px !important;
}

/* Provider Notes Panel */

.ctj-drawer-cell {
  padding: 0 !important;
  border-right: 0 !important;
}

.ctj-panel {
  display: none;
  padding: 28px 24px;
  border-top: 1px solid var(--ctj-border);
  background: #f8fafc;
}

.ctj-panel.is-open {
  display: block;
}

.ctj-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ctj-panel-item {
  padding: 16px;
  border: 1px solid var(--ctj-border);
  border-radius: 15px;
  background: var(--ctj-white);
}

.ctj-panel-item h4 {
  margin: 0 0 7px;
  color: var(--ctj-slate);
  font-family: var(--ctj-sans);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ctj-panel-item p {
  margin: 0;
  color: var(--ctj-text);
  font-family: var(--ctj-sans);
  font-size: 13px;
  line-height: 1.6;
}

.ctj-panel-note {
  grid-column: 1 / -1;
  padding: 17px 18px;
  border-left: 4px solid var(--ctj-green);
}

/* Mobile cards removed */
.ctj-mobile {
  display: none !important;
}

.ctj-tab-panel {
  display: none;
  padding: 24px;
}

.ctj-tab-panel.active {
  display: block;
}

/* RESPONSIVE - SAME DESKTOP TABLE ON MOBILE */

@media (max-width: 1180px) {
  .ctj-compare {
    padding-top: 78px;
    padding-bottom: 78px;
    padding-left: 22px;
    padding-right: 22px;
  }

  .ctj-table-shell {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .ctj-table {
    min-width: 980px;
  }

  .ctj-table th,
  .ctj-table td {
    padding-left: 16px;
    padding-right: 16px;
  }

  .ctj-price {
    font-size: 26px;
  }
}

@media (max-width: 991px) {
  .ctj-compare {
    padding-top: 72px;
    padding-bottom: 72px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .ctj-scroll-hint {
    display: block;
  }

  .ctj-table-shell {
    display: block !important;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border-radius: 20px;
  }

  .ctj-table {
    display: table !important;
    width: 100%;
    min-width: 980px;
    table-layout: fixed;
  }

  .ctj-action-inner {
    grid-template-columns: 30% 1fr;
  }

  .ctj-panel-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .ctj-compare {
    padding-top: 58px;
    padding-bottom: 58px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .ctj-compare-header {
    margin-bottom: 30px;
  }

  .ctj-compare-kicker {
    font-size: 11px;
    align-items: flex-start;
    line-height: 1.45;
  }

  .ctj-compare-kicker::before {
    margin-top: 4px;
  }

  .ctj-compare-title {
    font-size: clamp(34px, 10vw, 44px);
    line-height: 1.04;
  }

  .ctj-compare-description {
    font-size: 15px;
    line-height: 1.65;
  }

  .ctj-disclosure {
    font-size: 13px;
  }

  .ctj-table-shell {
    display: block !important;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .ctj-table {
    display: none !important;
  }

  .ctj-table-mobile {
    display: table;
    width: 100%;
  }

  .ctj-table th {
    height: 78px;
    padding: 16px;
  }

  .ctj-panel-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 18px;
  }

  .ctj-table-mobile th {
    color: var(--ctj-white);
    font-family: var(--ctj-sans);
  }

  .ctj-th-main {
    position: absolute;
    top: 5px;
    right: 5px;
  }

  .ctj-gphc {
    position: absolute;
    top: 5px;
    right: 5px;
  }

  .ctj-provider-row td {
    position: relative;
  }

  .ctj-price {
    margin-top: 5px;
  }

  .ctj-price-sub {
    display: inline;
  }

  .ctj-table td {
    padding: 22px 16px 20px;
  }

  .ctj-provider-name {
    font-size: 18px;
  }

  .ctj-price {
    font-size: 25px;
  }
}

@media (max-width: 420px) {
  .ctj-compare {
    padding-top: 52px;
    padding-bottom: 52px;
    padding-left: 12px;
    padding-right: 12px;
  }
}
