/* ===================================================
   CTXP-style plan cards (Choose Texas Power hybrid)
   =================================================== */

.ctxp-compare {
  background: #f5f7f9;
  padding: 32px 24px 64px;
}

.ctxp-compare-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.ctxp-compare-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.ctxp-compare-title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: var(--tr-text, #293339);
  margin: 0 0 4px;
}

.ctxp-compare-sub {
  font-size: 14px;
  color: var(--tr-text-muted, #697379);
  margin: 0;
}

.ctxp-compare-note {
  font-size: 13px;
  line-height: 1.45;
  color: var(--tr-text-muted, #697379);
  margin: 8px 0 0;
  max-width: 640px;
}

.ctxp-compare-note--muted {
  color: #888;
}

.ctxp-compare-toolbar-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #697379;
  text-transform: uppercase;
}

.ctxp-compare-select {
  min-width: 180px;
  height: 36px;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 14px;
  background: #fff;
}

.ctxp-compare-count {
  font-size: 13px;
  font-weight: 600;
  color: #697379;
  margin: 0;
}

.ctxp-compare-layout {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Toolbar — term segmented control + home size + filter/sort (estilo CTXP) */
.ctxp-compare-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.ctxp-term-nav {
  flex: 0 1 auto;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  background: #e8eef2;
  border-radius: 8px;
  padding: 4px;
}

.ctxp-term-nav__pills {
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  align-items: center;
  width: auto;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.ctxp-term-nav__pills::-webkit-scrollbar {
  display: none;
}

.ctxp-term-nav__pill {
  appearance: none;
  border: none;
  background: transparent;
  color: #293339;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.ctxp-term-nav__pill:hover {
  background: rgba(255, 255, 255, 0.55);
}

.ctxp-term-nav__pill--active,
.ctxp-term-nav__pill--active:hover {
  background: #2b3a42;
  color: #fff;
}

.ctxp-compare-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
  flex: 0 0 auto;
  margin-left: auto;
}

.ctxp-toolbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #c5cdd4;
  border-radius: 8px;
  background: #fff;
  color: #293339;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ctxp-toolbar-btn:hover {
  border-color: #2b3a42;
}

.ctxp-toolbar-btn__chevron {
  flex-shrink: 0;
  color: #697379;
}

.ctxp-home-size {
  position: relative;
}

.ctxp-home-size__trigger {
  text-align: left;
}

.ctxp-home-size__label {
  font-weight: 500;
  color: #697379;
  margin-right: 4px;
}

.ctxp-home-size__value {
  font-weight: 700;
  color: #293339;
}

.ctxp-home-size__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 300;
  width: min(100vw - 32px, 420px);
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  padding: 16px;
}

.ctxp-home-size__panel[hidden] {
  display: none;
}

.ctxp-home-size__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.ctxp-home-size__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #293339;
}

.ctxp-home-size__close {
  border: none;
  background: transparent;
  padding: 4px;
  cursor: pointer;
  color: #697379;
}

.ctxp-home-size__note {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.45;
  color: #697379;
}

.ctxp-home-size__presets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.ctxp-home-size__preset {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.ctxp-home-size__preset--active {
  border-color: #007fad;
  background: #e8f4fa;
}

.ctxp-home-size__preset-name {
  font-size: 12px;
  font-weight: 700;
  color: #293339;
  text-align: center;
  line-height: 1.25;
}

.ctxp-home-size__preset-kwh {
  font-size: 11px;
  color: #697379;
}

.ctxp-home-size__custom {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  margin-bottom: 14px;
}

.ctxp-home-size__custom-label {
  font-size: 13px;
  font-weight: 700;
  color: #293339;
  white-space: nowrap;
}

.ctxp-home-size__custom-input {
  flex: 1;
  min-width: 0;
  border: none;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.ctxp-home-size__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.ctxp-home-size__reset {
  border: none;
  background: none;
  color: var(--tr-coral);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0;
}

.ctxp-home-size__apply {
  border: none;
  border-radius: 8px;
  background: var(--tr-coral);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  cursor: pointer;
}

.ctxp-compare-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ctxp-term-nav {
  margin-bottom: 0;
}

.ctxp-featured-section[hidden] {
  display: none;
}

.ctxp-featured-section {
  margin-bottom: 20px;
}

.ctxp-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.ctxp-featured-grid .ctxp-plan-card--spotlight {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.ctxp-featured-grid .ctxp-spotlight {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ctxp-featured-grid .ctxp-spotlight__more {
  margin-top: auto;
}

@media (max-width: 1100px) {
  .ctxp-featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
}

.ctxp-other-plans-title {
  font-size: 18px;
  font-weight: 700;
  color: #293339;
  margin: 4px 0 0;
}

.ctxp-other-plans-title[hidden] {
  display: none;
}

/* ---- CTXP spotlight (featured grid) ---- */
.ctxp-plan-card--spotlight {
  border: none;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}

.ctxp-spotlight {
  display: flex;
  flex-direction: column;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(41, 51, 57, 0.12);
  background: #2d3e50;
}

.ctxp-spotlight__ribbon {
  background: transparent;
  color: #fff;
  padding: 16px 18px 30px;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  line-height: 1.3;
  text-transform: none;
  letter-spacing: 0;
}

.ctxp-spotlight__sheet {
  position: relative;
  z-index: 1;
  margin: -18px 0 0;
  background: #fff;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  flex: 1;
}

.ctxp-spotlight__title {
  margin: 0;
  padding: 18px 18px 0;
  font-size: 18px;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.25;
}

.ctxp-spotlight__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 6px;
}

.ctxp-spotlight__logo {
  width: 52px;
  height: 52px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid #e8e8e8;
  flex-shrink: 0;
}

.ctxp-spotlight__rating {
  display: flex;
  align-items: center;
  gap: 1px;
  flex-wrap: wrap;
}

.ctxp-spotlight__rating-val {
  font-size: 13px;
  font-weight: 700;
  color: #bc7e00;
  margin-left: 4px;
  text-decoration: underline;
}

.ctxp-spotlight__metrics.ctxp-plan-card__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-left: none;
  border-top: 1px solid #ececec;
  padding: 14px 10px 12px;
  margin: 4px 0 0;
}

.ctxp-spotlight__metrics .ctxp-plan-card__metric {
  text-align: center;
  padding: 0 4px;
}

.ctxp-spotlight__metrics .ctxp-plan-card__metric-lbl {
  font-size: 11px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.35;
}

.ctxp-spotlight__metrics .ctxp-plan-card__metric-val {
  font-size: 28px;
  font-weight: 800;
  color: #3d4f5f;
  letter-spacing: -0.02em;
}

.ctxp-spotlight__metrics .ctxp-plan-card__metric--estimate .ctxp-plan-card__metric-val {
  font-size: 26px;
}

.ctxp-spotlight__metrics .ctxp-plan-card__metric-note {
  font-size: 10px;
  color: #888;
  margin-top: 3px;
}

.ctxp-spotlight__features.ctxp-plan-card__features {
  display: flex;
  flex-direction: column;
  border-left: none;
  border-top: 1px solid #ececec;
  padding: 12px 18px 18px;
  gap: 12px;
}

.ctxp-spotlight__features .ctxp-plan-card__feature {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
}

.ctxp-spotlight__features .ctxp-plan-card__feature-lbl {
  color: #1a1a1a;
  font-weight: 600;
}

.ctxp-spotlight__features .ctxp-plan-card__feature-val {
  font-weight: 800;
  color: #1a1a1a;
}

.ctxp-spotlight__cta-wrap {
  padding: 16px 16px 14px;
  background: #f4f4f4;
  margin: 0;
}

.ctxp-spotlight__cta-wrap .ctxp-plan-card__cta {
  width: 100%;
  min-height: 48px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 6px;
}

.ctxp-spotlight__more {
  background: #fff;
  border-top: none;
  padding: 14px 16px 16px;
  text-align: center;
}

.ctxp-spotlight__details-link {
  appearance: none;
  border: none;
  background: none;
  color: var(--tr-coral);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  padding: 0;
}

body.ctxp-plan-details-open {
  overflow: hidden;
}

.ctxp-plan-details-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.ctxp-plan-details-modal[hidden] {
  display: none;
}

.ctxp-plan-details-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(41, 51, 57, 0.55);
}

.ctxp-plan-details-modal__panel {
  position: relative;
  width: min(100%, 720px);
  max-height: min(92vh, 860px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.ctxp-plan-details-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 12px;
  border-bottom: 1px solid #f0f0f0;
}

.ctxp-plan-details-modal__plan-id {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 500;
  color: #697379;
  line-height: 1.35;
}

.ctxp-plan-details-modal__provider {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #293339;
  line-height: 1.25;
}

.ctxp-plan-details-modal__close {
  border: none;
  background: transparent;
  color: #697379;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.ctxp-plan-details-modal__body {
  padding: 8px 24px 24px;
  overflow-y: auto;
}

.ctxp-plan-details-modal__highlights {
  list-style: none;
  margin: 12px 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ctxp-plan-details-modal__highlight {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.5;
  color: #293339;
}

.ctxp-plan-details-modal__highlight strong {
  font-weight: 700;
}

.ctxp-plan-details-modal__grid-wrap {
  overflow-x: auto;
  margin-bottom: 20px;
}

.ctxp-plan-details-modal__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  overflow: hidden;
}

.ctxp-plan-details-modal__table th,
.ctxp-plan-details-modal__table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e8e8e8;
  border-right: 1px solid #e8e8e8;
  text-align: center;
}

.ctxp-plan-details-modal__table th:last-child,
.ctxp-plan-details-modal__table td:last-child {
  border-right: none;
}

.ctxp-plan-details-modal__table tr:last-child th,
.ctxp-plan-details-modal__table tr:last-child td {
  border-bottom: none;
}

.ctxp-plan-details-modal__table thead th {
  background: #eef4f8;
  font-weight: 700;
  color: #293339;
}

.ctxp-plan-details-modal__table tbody th {
  text-align: left;
  font-weight: 700;
  color: #293339;
  background: #fafbfc;
}

.ctxp-plan-details-modal__docs-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  color: #293339;
}

.ctxp-plan-details-modal__doc-links {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.ctxp-plan-details-modal__doc-link {
  color: var(--tr-coral);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
}

.ctxp-plan-details-modal__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
  margin: 0 0 16px;
}

.ctxp-plan-details-modal__facts div {
  font-size: 13px;
  line-height: 1.45;
}

.ctxp-plan-details-modal__facts dt {
  font-weight: 600;
  color: #697379;
}

.ctxp-plan-details-modal__facts dd {
  margin: 2px 0 0;
  color: #293339;
  font-weight: 600;
}

.ctxp-plan-details-modal__note {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #888;
  font-style: italic;
}

.ctxp-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  padding: 14px 18px;
}

.ctxp-filter-bar-hint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #424242;
  flex: 1;
  min-width: 200px;
}

.ctxp-filter-bar-icon {
  flex-shrink: 0;
  color: #697379;
  margin-top: 1px;
}

.ctxp-filter-bar-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  height: 44px;
  padding: 0 20px;
  border: none;
  border-radius: 6px;
  background: var(--tr-navy, #2b3a42);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.ctxp-filter-bar-btn:hover {
  background: var(--tr-navy-dark, #1f2a30);
}

.ctxp-filter-bar-btn svg {
  flex-shrink: 0;
}

body.ctxp-filters-open {
  overflow: hidden;
}

.ctxp-filters-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.ctxp-filters-modal[hidden] {
  display: none;
}

/* The GET form wraps the panel; make it transparent to layout so the panel
   stays centered as a direct flex child. */
.ctxp-filters-modal > form {
  display: contents;
}

.ctxp-filters-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(41, 51, 57, 0.55);
}

.ctxp-filters-modal__panel {
  position: relative;
  width: min(100%, 520px);
  max-height: min(90vh, 720px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.ctxp-filters-modal__head--tabs {
  justify-content: center;
  padding: 16px 20px 14px;
  border-bottom: 1px solid #ececec;
}

.ctxp-filters-modal__head--tabs .ctxp-filters-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.ctxp-filters-modal__tabs {
  display: inline-flex;
  background: #e8eef2;
  border-radius: 8px;
  padding: 4px;
  gap: 2px;
}

.ctxp-filters-modal__tab {
  appearance: none;
  border: none;
  background: transparent;
  color: #293339;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.ctxp-filters-modal__tab--active {
  background: #2b3a42;
  color: #fff;
}

.ctxp-filter-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.ctxp-filter-select-all {
  border: none;
  background: none;
  color: var(--tr-blue);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.ctxp-filter-search {
  position: relative;
  margin-bottom: 12px;
}

.ctxp-filter-search__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa4ac;
  pointer-events: none;
}

.ctxp-filter-search__input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px 10px 36px;
  font-family: inherit;
  font-size: 14px;
  color: #293339;
  border: 1px solid #d8dde1;
  border-radius: 8px;
  background: #fff;
}

.ctxp-filter-search__input:focus {
  outline: none;
  border-color: #007fad;
  box-shadow: 0 0 0 3px rgba(0, 127, 173, 0.15);
}

.ctxp-filter-search__empty {
  grid-column: 1 / -1;
  margin: 4px 0;
  font-size: 13px;
  color: #8a949c;
}

.ctxp-filter-check--provider[hidden] {
  display: none;
}

.ctxp-filter-providers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.ctxp-filter-checks--cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
}

.ctxp-segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ctxp-segmented__item {
  flex: 1 1 auto;
  min-width: 0;
}

.ctxp-segmented__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ctxp-segmented__label {
  display: block;
  text-align: center;
  padding: 10px 12px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #293339;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.ctxp-segmented__input:checked + .ctxp-segmented__label {
  border-color: #2b3a42;
  background: #f5f7f9;
}

.ctxp-sort-options {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ctxp-sort-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.ctxp-sort-option:last-child {
  border-bottom: none;
}

.ctxp-filters-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid #ececec;
}

.ctxp-filters-modal__title {
  font-size: 18px;
  font-weight: 700;
  color: #293339;
  margin: 0;
}

.ctxp-filters-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #697379;
  cursor: pointer;
}

.ctxp-filters-modal__close:hover {
  background: #f5f5f5;
  color: #293339;
}

.ctxp-filters-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
}

.ctxp-filters-modal__sort {
  width: 100%;
}

.ctxp-filters-modal__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid #ececec;
  background: #fafafa;
}

.ctxp-filters-modal__clear {
  background: none;
  border: none;
  color: var(--tr-coral);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0;
}

.ctxp-filters-modal__apply {
  height: 44px;
  padding: 0 24px;
  border: none;
  border-radius: 6px;
  background: var(--tr-coral);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.ctxp-filters-modal__apply:hover {
  background: var(--tr-coral-dark);
}

.ctxp-filter-block + .ctxp-filter-block {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.ctxp-filter-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #697379;
  margin-bottom: 8px;
}

.ctxp-filter-value {
  font-size: 16px;
  font-weight: 800;
  color: #293339;
  margin: 0;
}

.ctxp-filter-hint {
  font-size: 12px;
  color: #999;
  margin: 4px 0 0;
}

.ctxp-filter-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #424242;
  margin-bottom: 6px;
  cursor: pointer;
}

.ctxp-filter-clear {
  margin-top: 14px;
  background: none;
  border: none;
  color: var(--tr-coral);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.ctxp-plans-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ctxp-plans-empty {
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  padding: 32px;
  text-align: center;
}

.ctxp-compare-disclaimer {
  margin-top: 14px;
  font-size: 12px;
  color: #888;
  line-height: 1.5;
}

/* ---- Plan card ---- */
.ctxp-plan-card {
  position: relative;
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.ctxp-plan-card--featured {
  border-color: #2d3e50;
  box-shadow: 0 0 0 1px #2d3e50;
}

.pagy {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 24px 0 4px;
  font-family: inherit;
}

.pagy a:not(.gap),
.pagy label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #d8dde1;
  border-radius: 8px;
  background: #fff;
  color: #293339;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.pagy a:not(.gap):hover {
  border-color: #007fad;
  color: #007fad;
}

.pagy a[aria-disabled="true"],
.pagy a.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.pagy a.current,
.pagy .current {
  background: #2b3a42;
  border-color: #2b3a42;
  color: #fff;
  cursor: default;
}

.pagy .gap {
  padding: 0 4px;
  color: #8a949c;
}

.ctxp-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 24px 0 4px;
}

.ctxp-pagination__btn {
  appearance: none;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #d8dde1;
  border-radius: 8px;
  background: #fff;
  color: #293339;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.ctxp-pagination__btn:hover:not(:disabled):not(.ctxp-pagination__btn--active) {
  border-color: #007fad;
  color: #007fad;
}

.ctxp-pagination__btn--active {
  background: #2b3a42;
  border-color: #2b3a42;
  color: #fff;
  cursor: default;
}

.ctxp-pagination__btn--nav {
  font-size: 18px;
  font-weight: 700;
}

.ctxp-pagination__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ctxp-plan-card__distributor {
  margin: 8px 0 0;
  font-size: 12px;
  color: #6b7680;
  line-height: 1.35;
}

.ctxp-plan-card__distributor strong {
  color: #293339;
  font-weight: 700;
}

.ctxp-spotlight__distributor {
  margin: 0;
  padding: 2px 18px 12px;
  font-size: 12px;
  color: #6b7680;
  line-height: 1.35;
}

.ctxp-spotlight__distributor strong {
  color: #1a1a1a;
  font-weight: 700;
}

.ctxp-plan-card__badge {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  background: #2d3e50;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: 4px;
}

.ctxp-plan-card__main {
  display: grid;
  grid-template-columns: minmax(168px, 0.95fr) minmax(240px, 1.15fr) minmax(148px, 0.75fr) 148px;
  align-items: stretch;
  min-height: 100px;
}

/* Identity */
.ctxp-plan-card__identity {
  padding: 12px 14px 12px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.ctxp-plan-card__plan-id {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #424242;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ctxp-plan-card__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ctxp-plan-card__logo {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid #e8e8e8;
  flex-shrink: 0;
}

.ctxp-plan-card__provider {
  font-size: 14px;
  font-weight: 600;
  color: #293339;
  margin: 0 0 3px;
  line-height: 1.3;
}

.ctxp-plan-card__rating {
  display: flex;
  align-items: center;
  gap: 1px;
}

.ctxp-plan-card__rating-val {
  font-size: 12px;
  font-weight: 700;
  color: #bc7e00;
  margin-left: 3px;
  text-decoration: underline;
}

/* Metrics — label on top, value below */
.ctxp-plan-card__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  align-items: center;
  padding: 12px 10px;
  border-left: 1px solid #ececec;
}

.ctxp-plan-card__metric {
  text-align: center;
  padding: 0 4px;
}

.ctxp-plan-card__metric-lbl {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #697379;
  line-height: 1.35;
  margin-bottom: 3px;
}

.ctxp-plan-card__metric-val {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: #293339;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.ctxp-plan-card__metric-note {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 500;
  color: #888;
}

.ctxp-plan-card--no-estimate .ctxp-plan-card__metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ctxp-filter-value--muted {
  font-size: 14px;
  font-weight: 600;
  color: #888;
}

.ctxp-plan-card__metric-unit {
  font-size: 14px;
  font-weight: 700;
  color: #293339;
  margin-left: 0.15em;
}

/* Features */
.ctxp-plan-card__features {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 12px 12px;
  border-left: 1px solid #ececec;
}

.ctxp-plan-card__feature {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  line-height: 1.3;
}

.ctxp-plan-card__feature-icon {
  flex-shrink: 0;
}

.ctxp-plan-card__feature-lbl {
  color: #697379;
}

.ctxp-plan-card__feature-val {
  font-weight: 700;
  color: #293339;
  text-align: right;
  white-space: nowrap;
}

/* CTA aside — gray column like CTXP */
.ctxp-plan-card__aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 6px;
  padding: 12px 12px;
  background: #f4f4f4;
  border-left: 1px solid #ececec;
}

.ctxp-plan-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 10px;
  background: var(--tr-coral);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 5px;
  text-align: center;
  line-height: 1.25;
  transition: background 0.15s;
}

.ctxp-plan-card__cta:hover {
  background: var(--tr-coral-hover);
  color: #fff;
}

.ctxp-plan-card__help {
  font-size: 12px;
  font-weight: 600;
  color: var(--tr-coral);
  text-align: center;
  text-decoration: none;
}

.ctxp-plan-card__help:hover {
  text-decoration: underline;
}

/* Footer — more details */
.ctxp-plan-card__footer {
  border-top: 1px solid #ececec;
  padding: 6px 0 8px;
}

.ctxp-plan-card__details-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  background: none;
  border: none;
  color: #cc494d;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px;
}

.ctxp-plan-card__details-toggle svg {
  transition: transform 0.2s;
}

.ctxp-plan-card--open .ctxp-plan-card__details-toggle svg {
  transform: rotate(180deg);
}

.ctxp-plan-card__details-panel {
  padding: 0 16px 14px;
  border-top: 1px solid #f0f0f0;
}

.ctxp-plan-card__detail-badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.ctxp-plan-card__detail-badge {
  border-radius: 6px;
  padding: 10px;
  font-size: 11px;
  line-height: 1.45;
}

.ctxp-plan-card__detail-badge strong {
  display: block;
  margin-bottom: 3px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ctxp-plan-card__detail-badge--satisfaction {
  background: #fffcf2;
  color: #837148;
}

.ctxp-plan-card__detail-badge--renewable {
  background: #e7f9f1;
  color: #0b4c2c;
}

.ctxp-plan-card__detail-badge--rating {
  background: #f3f9ff;
  color: #2b3a42;
}

.ctxp-plan-card__detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
  margin: 0;
}

.ctxp-plan-card__detail-list div {
  display: flex;
  gap: 6px;
  font-size: 12px;
}

.ctxp-plan-card__detail-list dt {
  font-weight: 600;
  color: #697379;
}

.ctxp-plan-card__detail-list dd {
  margin: 0;
  color: #293339;
}

@media (max-width: 1100px) {
  .ctxp-plan-card__main {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .ctxp-plan-card__identity {
    grid-column: 1 / -1;
    border-bottom: 1px solid #ececec;
  }

  .ctxp-plan-card__metrics {
    border-left: none;
  }

  .ctxp-plan-card__features {
    border-left: none;
    border-top: 1px solid #ececec;
  }

  .ctxp-plan-card__aside {
    border-left: none;
    border-top: 1px solid #ececec;
  }
}

/* ===================================================
   Supplier page (hybrid layout)
   =================================================== */

.ctxp-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin-bottom: 16px;
}

.ctxp-breadcrumb a {
  color: var(--tr-blue);
  text-decoration: none;
  font-weight: 600;
}

.ctxp-breadcrumb a:hover {
  text-decoration: underline;
}

.ctxp-breadcrumb-sep {
  color: #ccc;
}

.ctxp-supplier-page .ctxp-compare-head {
  margin-top: 8px;
}

.ctxp-supplier-hero {
  margin-bottom: 20px;
}

.ctxp-supplier-hero__card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  padding: 20px;
}

.ctxp-supplier-hero__logo {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.ctxp-supplier-hero__title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: var(--tr-text);
  margin: 0 0 6px;
}

.ctxp-supplier-hero__desc {
  font-size: 14px;
  color: var(--tr-text-muted);
  margin: 0 0 10px;
}

.ctxp-supplier-hero__desc strong {
  color: var(--tr-text);
}

.ctxp-supplier-hero__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.ctxp-supplier-hero__rating-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--tr-text);
}

.ctxp-supplier-hero__rating-count {
  font-size: 12px;
  color: var(--tr-text-muted);
}

.ctxp-supplier-hero__tags,
.ctxp-supplier-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ctxp-supplier-hero__tags {
  margin-top: 4px;
}

.ctxp-supplier-hero__chips {
  margin-top: 12px;
}

.ctxp-supplier-hero__tag,
.ctxp-supplier-hero__chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f0f3f5;
  font-size: 12px;
  font-weight: 600;
  color: var(--tr-text);
}

.ctxp-supplier-hero__tag--badge,
.ctxp-supplier-hero__chip--muted {
  background: rgba(204, 73, 77, 0.1);
  color: var(--tr-coral);
}

.ctxp-supplier-hero__chip-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--tr-blue);
  text-decoration: none;
  cursor: pointer;
}

.ctxp-supplier-hero__chip-link:hover {
  text-decoration: underline;
}

.ctxp-supplier-hero__chip-form {
  display: inline;
}

.ctxp-supplier-search {
  margin-bottom: 24px;
}

.ctxp-supplier-search .mp-search-section {
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  padding: 18px 20px;
}

.ctxp-supplier-search .mp-search-section--compact .mp-search-section-head {
  display: none;
}

.ctxp-supplier-search .mp-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--tr-text);
}

.ctxp-supplier-search .mp-search-section-desc {
  font-size: 13px;
  color: var(--tr-text-muted);
}

.ctxp-supplier-search .mp-filter-submit {
  background: var(--tr-coral);
  border-color: var(--tr-coral);
  border-radius: var(--tr-radius);
}

.ctxp-supplier-search .mp-filter-submit:hover {
  background: var(--tr-coral-dark);
  border-color: var(--tr-coral-dark);
}

.ctxp-plans-empty--page {
  margin-top: 8px;
}

.ctxp-empty-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  min-height: 44px;
  padding: 0 24px;
  background: var(--tr-coral);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--tr-radius);
}

.ctxp-empty-cta:hover {
  background: var(--tr-coral-dark);
  color: #fff;
}

@media (max-width: 640px) {
  .ctxp-supplier-hero__card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .ctxp-supplier-hero__rating,
  .ctxp-supplier-hero__tags,
  .ctxp-supplier-hero__chips {
    justify-content: center;
  }

  .ctxp-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .ctxp-filter-bar-btn {
    justify-content: center;
    width: 100%;
  }

  .ctxp-compare {
    padding: 20px 16px 48px;
    overflow-x: clip;
  }

  .ctxp-compare-inner {
    max-width: 100%;
    min-width: 0;
  }

  .ctxp-compare-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 14px;
  }

  .ctxp-compare-count {
    font-size: 12px;
  }

  .ctxp-filter-bar-hint {
    font-size: 13px;
    min-width: 0;
  }

  .ctxp-plan-card__main {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .ctxp-spotlight__sheet {
    margin-left: 0;
    margin-right: 0;
    margin-top: -16px;
    border-radius: 14px 14px 0 0;
  }

  .ctxp-spotlight__metrics.ctxp-plan-card__metrics {
    grid-template-columns: 1fr 1fr;
    padding: 0;
  }

  .ctxp-spotlight__metrics .ctxp-plan-card__metric--estimate {
    grid-column: 1 / -1;
    border-top: 1px solid #ececec;
  }

  .ctxp-spotlight__metrics .ctxp-plan-card__metric:first-child {
    border-right: 1px solid #ececec;
  }

  .ctxp-spotlight__features.ctxp-plan-card__features {
    display: flex;
  }

  .ctxp-spotlight__metrics .ctxp-plan-card__metric-note {
    display: block;
  }

  .ctxp-plan-card__identity {
    padding: 12px 14px;
    border-bottom: none;
  }

  .ctxp-plan-card__plan-id {
    white-space: normal;
    font-size: 13px;
  }

  .ctxp-plan-card__logo {
    width: 48px;
    height: 48px;
  }

  .ctxp-plan-card__provider {
    font-size: 15px;
  }

  .ctxp-plan-card__rating-val {
    font-size: 13px;
  }

  .ctxp-plan-card__metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-left: none;
    border-top: 1px solid #ececec;
    padding: 0;
  }

  .ctxp-plan-card--no-estimate .ctxp-plan-card__metrics {
    grid-template-columns: 1fr 1fr;
  }

  .ctxp-plan-card__metric {
    display: block;
    text-align: center;
    padding: 10px 6px;
    border-bottom: none;
  }

  .ctxp-plan-card__metric:first-child {
    border-right: 1px solid #ececec;
  }

  .ctxp-plan-card__metric--estimate {
    grid-column: 1 / -1;
    border-top: 1px solid #ececec;
    border-right: none;
  }

  .ctxp-plan-card__metric-lbl {
    margin-bottom: 3px;
    max-width: none;
    font-size: 12px;
    line-height: 1.35;
  }

  .ctxp-plan-card__metric-val {
    font-size: 26px;
  }

  .ctxp-plan-card__metric-note {
    display: none;
  }

  .ctxp-plan-card__metric-val .ctxp-plan-card__metric-unit {
    display: inline;
    font-size: 0.55em;
    font-weight: 700;
    margin-left: 0.12em;
    vertical-align: baseline;
    color: #293339;
  }

  .ctxp-plan-card__features {
    display: none;
  }

  .ctxp-plan-card__aside {
    padding: 12px 14px;
  }

  .ctxp-plan-card__cta {
    min-height: 44px;
    font-size: 15px;
  }

  .ctxp-plan-card__help {
    font-size: 12px;
  }

  .ctxp-plan-card__details-toggle {
    font-size: 13px;
  }

  .ctxp-plan-card__details-panel {
    padding: 0 14px 16px;
  }

  .ctxp-plan-card__detail-badges {
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 12px 0;
  }

  .ctxp-plan-card__detail-badge {
    padding: 12px;
    font-size: 13px;
    line-height: 1.5;
  }

  .ctxp-plan-card__detail-badge strong {
    font-size: 11px;
    margin-bottom: 4px;
  }

  .ctxp-plan-card__detail-list {
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid #ececec;
    padding-top: 4px;
  }

  .ctxp-plan-card__detail-list div {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
  }

  .ctxp-plan-card__detail-list div:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .ctxp-plan-card__detail-list dt {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  .ctxp-plan-card__detail-list dd {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    word-break: break-word;
  }

  .ctxp-filters-modal {
    padding: 16px 12px;
  }

  .ctxp-filters-modal__panel {
    width: 100%;
  }

  .ctxp-featured-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ctxp-compare-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .ctxp-term-nav {
    align-self: flex-start;
    width: fit-content;
    max-width: 100%;
  }

  .ctxp-compare-toolbar__actions {
    margin-left: 0;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .ctxp-toolbar-btn--filter {
    grid-column: 1 / -1;
  }

  .ctxp-toolbar-btn,
  .ctxp-home-size__trigger {
    flex: 1;
    min-width: 0;
  }

  .ctxp-home-size__panel {
    left: 0;
    right: 0;
    width: auto;
  }

  .ctxp-home-size__presets {
    grid-template-columns: 1fr;
  }

  .ctxp-filter-providers,
  .ctxp-filter-checks--cols {
    grid-template-columns: 1fr;
  }

  .ctxp-term-nav__pill {
    font-size: 13px;
    padding: 9px 12px;
  }

  .ctxp-other-plans-title {
    font-size: 16px;
  }
}
