/* ═══════════════════════════════════════════════════════════
   CLO Directory Block
   ═══════════════════════════════════════════════════════════ */

.cb-tiles-wrapper,
.cb-cards-list-wrapper,
.cb-parent-tier,
.cb-alt-table {
  --padding: 20px;
  --radius: 8px;
  --border-radius: 8px;
  --border: 1px solid #dde4ed;
  --black: #131A22;
  --grey: #6D798A;
  --blue: #0075EB;
  --light-blue: #e8f2fd;
  --blue-grey: #86a5c6;
  --dark-blue-grey: #758EB2;
  --green: #43a046;
  --red: #af3939;
  --purple: #674ea7;
  --bbb-blue: #2876eb;
  --gold: #CC8400;
  --heading: Rubik, arial, sans-serif;
  --ribbon-height: 31px;
  --shadow-sm: 0 1px 3px rgba(0,46,93,.06), 0 1px 2px rgba(0,46,93,.04);
  --shadow: 0 4px 16px rgba(0,46,93,.08), 0 1px 3px rgba(0,46,93,.05);
  --shadow-lg: 0 10px 40px rgba(0,46,93,.1), 0 4px 12px rgba(0,46,93,.06);
  --transition: .2s ease;
  --transition-slow: .35s ease;
}

.cb-tiles-wrapper,
.cb-cards-list-wrapper,
.cb-parent-tier,
.cb-alt-table { margin-block: 1.25rem; }

.wide-content { box-sizing: border-box; }
.wide-content *, .wide-content *::before, .wide-content *::after { box-sizing: border-box; }
.cb-shadow { box-shadow: var(--shadow); }

/* Tab visibility — scoped to plugin tab container */
.cb-cards-list-item-tabs-container .cb-tab-panel.cb-hide { display: none; }
.cb-cards-list-item-tabs-container .cb-tab-panel.cb-show { display: block; }

/* Tippy.js tooltip pattern */
.review-tooltip { cursor: help; }


/* ═══════════════════════════════════════════════════════════
   1. TILES (AAG)
   ═══════════════════════════════════════════════════════════ */

.cb-tiles-wrapper {
  position: relative;
  padding-inline: var(--padding);
  margin-inline: calc(-1 * var(--padding));
}

.cb-tiles-wrapper::after,
.cb-tiles-wrapper::before {
  content: '';
  position: absolute;
  width: calc(var(--padding) + 10px);
  height: 100%;
  top: 0;
  z-index: 2;
  pointer-events: none;
  transition: opacity var(--transition);
}

.cb-tiles-wrapper::before {
  left: 0;
  background: linear-gradient(to left, transparent 0%, rgba(255,255,255,.7) 60%, #fff 100%);
}

.cb-tiles-wrapper::after {
  right: 0;
  background: linear-gradient(to right, transparent 0%, rgba(255,255,255,.7) 60%, #fff 100%);
}

.cb-tiles {
  list-style: none;
  margin: 0;
  padding-block: 10px;
  padding-inline: var(--padding);
  margin-inline: calc(-1 * var(--padding));
  display: flex;
  gap: var(--padding);
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

.cb-tiles::-webkit-scrollbar { display: none; }

/* ── Tile card ─────────────────────────────────────────── */

.cb-tiles-item {
  flex-shrink: 0;
  padding-inline: var(--padding);
  padding-block: calc(var(--padding) + var(--ribbon-height)) var(--padding);
  border: var(--border);
  border-radius: var(--border-radius);
  scroll-snap-align: center;
  width: 23.7%;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  background: #fff;
  cursor: pointer;
}

.cb-tiles-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
}

.cb-tiles-item.cb-featured {
  border-color: var(--blue);
}

.cb-featured .cb-tiles-item-ribbon {
  background: linear-gradient(135deg, #e8f2fd 0%, #d4e8fc 100%);
  color: var(--blue);
  border-color: var(--blue);
}
.cb-featured .cb-tiles-item-ribbon path, .cb-featured .cb-tiles-item-ribbon polygon { fill: var(--blue); }

.cb-tiles-item.cb-partner {
  border-color: var(--blue);
}
.cb-partner .cb-tiles-item-ribbon {
  background: linear-gradient(135deg, #0075EB 0%, #0066d0 100%);
  color: white;
  border-color: var(--blue);
}
.cb-partner .cb-tiles-item-ribbon path, .cb-partner .cb-tiles-item-ribbon polygon { fill: white; }
.cb-partner .cb-tiles-item-details { color: var(--black); }

/* ── Ribbon ────────────────────────────────────────────── */

.cb-tiles-item-ribbon {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  font-family: var(--heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
  color: var(--grey);
  background: #f5f7fa;
  border-bottom: var(--border);
  padding-block: 8px 6px;
  min-height: var(--ribbon-height);
}

.cb-tiles-item-ribbon svg,
.cb-tiles-item-ribbon img {
  --icon-size: 13px;
  min-width: var(--icon-size);
  height: var(--icon-size);
  width: var(--icon-size);
  margin-bottom: 1px;
}

.cb-tiles-item-ribbon path, .cb-tiles-item-ribbon polygon { fill: var(--dark-blue-grey); }

/* ── Tile internals ────────────────────────────────────── */

.cb-tiles-item-logo {
  object-fit: contain;
  height: 50px;
  max-width: 150px;
  margin-bottom: 10px;
}

.cb-tiles-item-name {
  color: var(--black);
  font-size: 15px;
  font-weight: 600;
  margin-block: 0;
  transition: color var(--transition);
}

.cb-tiles-item:hover .cb-tiles-item-name { color: var(--blue); }

/* Tiles without ribbon get default top padding */
.cb-tiles-item:not(:has(.cb-tiles-item-ribbon)) {
  padding-block-start: var(--padding);
}

/* Rating block (reused in tiles, cards, tables) */

.cb-item-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin-block: 15px;
  border-radius: var(--border-radius);
  background: linear-gradient(135deg, #FFF9EA 0%, #FFF5D6 100%);
  border: 1px solid #f5e6b8;
}

.cb-item-score {
  font-size: 32px;
  font-family: var(--heading) !important;
  font-weight: 700;
  line-height: 1;
  color: var(--black);
}

.cb-item-stars-text {
  font-size: 12px;
  color: var(--grey);
  line-height: 1;
  margin-top: 5px;
  text-align: left;
}

/* Star rating SVG fallback */

.cb-stars-wrapper {
  position: relative;
  display: inline-flex;
  height: 13px;
}

.cb-stars-row {
  display: flex;
  gap: 1px;
}

.cb-stars-row svg {
  fill: #e0e3e8;
  display: block;
}

.cb-stars-row--fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, #000 var(--star-fill, 0%), transparent var(--star-fill, 0%));
  mask-image: linear-gradient(to right, #000 var(--star-fill, 0%), transparent var(--star-fill, 0%));
}

.cb-stars-row--fill svg {
  fill: #FFC665;
}

/* Inline rating (tables) */

.cb-tiles-item-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1;
}

.cb-tiles-item-rating span { color: var(--grey); font-size: 14px; }

/* Compact single-star rating (parent-tier + alternatives tables) */

.cb-compact-rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1;
}

.cb-single-star {
  display: inline-flex;
  flex-shrink: 0;
}

.cb-single-star svg {
  width: 18px;
  height: 18px;
}

.cb-single-star path, .cb-single-star polygon { fill: #FFC665; }

.cb-compact-rating strong {
  font-size: 15px;
  color: var(--black);
}

.cb-compact-rating span {
  font-size: 13px;
  color: var(--grey);
}

/* Details blurb */

.cb-tiles-item-details {
  font-size: 13px;
  color: #3d4852;
  line-height: 1.55;
  margin-bottom: 20px;
  text-align: left;
}

/* Tile Buttons */

.cb-tiles-item-button {
  text-transform: capitalize;
  font-weight: 600;
  border-radius: var(--border-radius);
  color: white !important;
  background: linear-gradient(135deg, #0075EB 0%, #0066d0 100%);
  text-align: center;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-width: 0;
  font-size: 15px;
  font-family: var(--heading);
  transition: all var(--transition);
  white-space: nowrap;
  max-width: 100%;
  padding: 8px 24px;
  margin-top: auto;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,117,235,.25);
}

.cb-tiles-item-button:hover {
  background: linear-gradient(135deg, #1a85f0 0%, #0075EB 100%);
  box-shadow: 0 4px 12px rgba(0,117,235,.35);
  transform: translateY(-1px);
}

.cb-tiles-item-button.cb-btn-highlighted {
  background: linear-gradient(135deg, #0ec18f 0%, #0aab7d 100%);
  box-shadow: 0 2px 6px rgba(14,193,143,.3);
}

.cb-tiles-item-button.cb-btn-highlighted:hover {
  background: linear-gradient(135deg, #20d4a0 0%, #0ec18f 100%);
  box-shadow: 0 4px 12px rgba(14,193,143,.4);
  transform: translateY(-1px);
}

.cb-partner .cb-tiles-item-button {
  background: linear-gradient(135deg, #0ec18f 0%, #0aab7d 100%);
  box-shadow: 0 2px 6px rgba(14,193,143,.3);
}
.cb-partner .cb-tiles-item-button:hover {
  background: linear-gradient(135deg, #20d4a0 0%, #0ec18f 100%);
  box-shadow: 0 4px 12px rgba(14,193,143,.4);
  transform: translateY(-1px);
}

.cb-tiles-item-under-button {
  color: var(--grey) !important;
  font-size: 14px;
  font-weight: 500;
  margin-block: 10px -5px;
  text-decoration: none;
  transition: color var(--transition);
}

.cb-tiles-item-under-button:hover { color: var(--blue) !important; }

/* Arrows */

.cb-tiles-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  background: #fff;
  border-radius: 100px;
  padding: 10px;
  z-index: 3;
  opacity: 0;
  transition: opacity var(--transition), box-shadow var(--transition), transform var(--transition);
  pointer-events: none;
  border: 1px solid #dde4ed;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.cb-tiles-arrow.cb-scroll {
  opacity: 1;
  pointer-events: auto;
}

.cb-tiles-arrow:hover {
  box-shadow: var(--shadow);
  background: var(--light-blue);
}

.cb-tiles-arrow path, .cb-tiles-arrow polygon { fill: var(--blue); }
.cb-tiles-arrow-prev { left: 4px; transform: translateY(-50%) rotate(180deg); }
.cb-tiles-arrow-prev:hover { transform: translateY(-50%) rotate(180deg) scale(1.05); }
.cb-tiles-arrow-next { right: 4px; }
.cb-tiles-arrow-next:hover { transform: translateY(-50%) scale(1.05); }

/* ── Leader icon inside AAG ribbon ── */

.cb-aag-tag-icon {
  display: inline-flex;
  align-items: center;
  width: 14px;
  height: 14px;
}

.cb-aag-tag-icon svg {
  width: 100%;
  height: 100%;
}

/* AAG tag icon fill inherits from ribbon context via
   .cb-tiles-item-ribbon path rules above */


/* ═══════════════════════════════════════════════════════════
   2. FEATURED CARDS
   ═══════════════════════════════════════════════════════════ */

.cb-cards-list-wrapper {
  position: relative;
  letter-spacing: -0.02em;
}

.cb-cards-list {
  list-style: none;
  padding-block: 10px;
  padding-inline: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cb-cards-list-item-wrapper {
  list-style: none;
}

.cb-cards-list-item {
  border-radius: var(--border-radius);
  border: var(--border);
  position: relative;
  overflow: hidden;
  --padding: 25px;
  transition: box-shadow var(--transition-slow), border-color var(--transition);
  background: #fff;
}

/* ── Card details (two-column layout) ──────────────────── */

.cb-cards-list-item-details {
  display: flex;
  border-bottom: var(--border);
  flex-wrap: wrap;
  position: relative;
}

.cb-cards-list-item-details-left {
  width: 345px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  flex-direction: column;
  border-right: var(--border);
  padding: var(--padding);
  background: linear-gradient(180deg, #fafbfd 0%, #fff 100%);
}

.cb-cards-list-item-details-left:has(.cb-cards-list-item-ribbon) {
  padding-top: 50px;
}

.cb-cards-list-item-details-right {
  padding: var(--padding);
  flex-grow: 1;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ── Card ribbon ───────────────────────────────────────── */

.cb-cards-list-item-ribbon {
  background: #f0f4f8;
  color: #8098B3;
  position: absolute;
  top: 0;
  left: 0;
  height: 32px;
  line-height: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: var(--heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.cb-cards-list-item-ribbon svg {
  --icon-size: 13px;
  min-width: var(--icon-size);
  height: var(--icon-size);
  width: var(--icon-size);
}

.cb-cards-list-item-ribbon path {
  fill: #8098B3;
}

/* ── In-network card variant (blue highlight per spec) ── */

.cb-card--partner.cb-cards-list-item {
  border: 1px solid var(--blue);
  box-shadow: 0 0 0 1px rgba(0,117,235,.1), var(--shadow);
}

.cb-card--partner .cb-cards-list-item-details {
  border-bottom: 1px solid var(--blue);
}

.cb-card--partner .cb-cards-list-item-details-left {
  border-right-color: var(--blue);
}

.cb-card--partner .cb-cards-list-item-ribbon {
  color: var(--blue);
}

.cb-card--partner .cb-cards-list-item-ribbon path {
  fill: var(--blue);
}

/* ── Logo ──────────────────────────────────────────────── */

.cb-cards-list-item-logo {
  height: 50px;
  object-fit: contain;
  text-align: center;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cb-logo-img {
  max-width: 150px;
  max-height: 100%;
}

/* ── Card name & type ──────────────────────────────────── */

.cb-cards-list-item-name {
  font-size: 19px;
  font-weight: 700;
  margin: 24px 0 10px 0;
  color: var(--black);
}

.cb-cards-list-item-wrapper:first-child .cb-cards-list-item-name {
  margin-top: 0;
}


/* ── Location row ── */

.cb-card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  margin-top: 10px;
}

.cb-card-location-icon {
  display: inline-flex;
  align-items: center;
  width: 16px;
  height: 16px;
}

.cb-card-location-icon svg {
  width: 100%;
  height: 100%;
}

.cb-card-location-icon path, .cb-card-location-icon polygon { fill: var(--dark-blue-grey); }

/* ── Trust bar ── */

.cb-card-trust {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.cb-card-shield {
  display: inline-flex;
  align-items: center;
  width: 18px;
  height: 18px;
}

.cb-card-shield svg {
  width: 100%;
  height: 100%;
}

.cb-card-shield path, .cb-card-shield polygon { fill: var(--dark-blue-grey); }

.cb-card-trust-score {
  font-size: 14px;
  margin-left: 4px;
  color: var(--black);
}

/* ── Expert take ── */

.cb-card-expert {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
  color: #3d4852;
}

.cb-card-expert strong {
  color: var(--black);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .03em;
}

/* Desktop: expert text always fully visible, no clamping */
.cb-card-expert-text {
  display: inline;
}

/* Read more button — hidden on desktop, only shows on mobile when needed */
.cb-readmore-btn {
  display: none;
}

/* ── Highlights ── */

.cb-card-highlights {
  border-top: var(--border);
  padding-top: 16px;
}

.cb-card-highlights > strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--black);
}

/* ── Detail / Contact list ── */

.cb-detail-list { margin: 0; }

.cb-detail-row {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f3f6;
}

.cb-detail-row:last-child { border-bottom: 0; }

.cb-detail-row dt {
  width: 160px;
  flex-shrink: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--grey);
  padding-top: 3px;
}

.cb-detail-row dd { margin: 0; font-size: 15px; color: var(--black); }
.cb-detail-row dd a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
.cb-detail-row dd a:hover { color: #005bb5; text-decoration: underline; }

/* ── Tooltip icon (inline SVG) ── */

.cb-tooltip-icon {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  width: 14px;
  height: 14px;
  cursor: help;
}

.cb-tooltip-icon svg {
  width: 100%;
  height: 100%;
}

.cb-tooltip-icon path, .cb-tooltip-icon polygon { fill: var(--dark-blue-grey); }

/* ── Buttons container ─────────────────────────────────── */

.cb-cards-list-item-buttons-container {
  padding: var(--padding);
  gap: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cb-cards-list-item-button {
  text-transform: capitalize;
  font-weight: 600;
  border-radius: var(--border-radius);
  color: white !important;
  text-align: center;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-width: 0;
  font-size: 15px;
  font-family: var(--heading);
  transition: all var(--transition);
  white-space: nowrap;
  max-width: 100%;
  padding-inline: 20px;
  height: 42px;
  width: 100%;
  text-decoration: none;
  cursor: pointer;
}

.cb-cards-list-item-button:not(.cb-btn-highlighted) {
  background: linear-gradient(135deg, #0075EB 0%, #0066d0 100%);
  box-shadow: 0 2px 6px rgba(0,117,235,.2);
}

.cb-cards-list-item-button:not(.cb-btn-highlighted, .cb-btn-outlined):hover {
  background: linear-gradient(135deg, #1a85f0 0%, #0075EB 100%);
  box-shadow: 0 4px 12px rgba(0,117,235,.3);
  transform: translateY(-1px);
}

.cb-cards-list-item-buttons-container .cb-cards-list-item-button {
  align-self: center;
  margin: 0;
  border: 2px solid var(--blue);
}

.cb-cards-list-item-button.cb-btn-highlighted {
  background: linear-gradient(135deg, #0ec18f 0%, #0aab7d 100%);
  border-color: #0ec18f;
  box-shadow: 0 2px 6px rgba(14,193,143,.25);
}

.cb-cards-list-item-button.cb-btn-highlighted:hover {
  background: linear-gradient(135deg, #20d4a0 0%, #0ec18f 100%);
  border-color: #20d4a0;
  box-shadow: 0 4px 12px rgba(14,193,143,.35);
  transform: translateY(-1px);
}

.cb-cards-list-item-button.cb-btn-outlined {
  background: none;
  color: var(--blue) !important;
  border: 2px solid #c5d9f0;
}

.cb-cards-list-item-button.cb-btn-outlined:hover {
  background: var(--light-blue);
  border-color: var(--blue);
  transform: translateY(-1px);
}

/* ── Tabs container ────────────────────────────────────── */

.cb-cards-list-item-tabs-container {
  display: flex;
  width: 100%;
  padding: var(--padding);
  align-items: flex-start;
  flex-direction: column;
  gap: 20px;
}

/* ── Pill-style tab buttons ────────────────────────────── */

.cb-review-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cb-cards-list-item-tabs-title {
  color: var(--grey);
  cursor: pointer;
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  margin-block: 0;
  padding: 7px 16px;
  min-width: fit-content;
  outline: 0;
  transition: all var(--transition);
  background: none;
  border: 1px solid var(--dark-blue-grey);
  border-radius: 100px;
  line-height: 1;
  user-select: none;
  white-space: nowrap;
}

.cb-cards-list-item-tabs-title:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: #f5f9ff;
}

.cb-cards-list-item-tabs-title.cb-tab-active {
  color: var(--blue);
  background: linear-gradient(135deg, #e8f2fd 0%, #daeafc 100%);
  border-color: #b8d4f0 !important;
  box-shadow: inset 0 1px 2px rgba(0,117,235,.08);
}

/* ── Tab content panels ────────────────────────────────── */

.cb-cards-list-item-tabs-container .cb-tab-panel {
  font-size: 15px;
  width: 100%;
  animation: tabFadeIn .25s ease;
}

.cb-cards-list-item-tabs-container .cb-tab-panel.cb-show {
  animation: tabFadeIn .25s ease;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.cb-cards-list-item-tabs-container .cb-tab-panel h4 {
  font-size: 17px;
}

/* ── Trust badges ──────────────────────────────────────── */

.cb-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 5px;
  white-space: nowrap;
  letter-spacing: .02em;
}

.cb-badge-icon {
  display: inline-flex;
  align-items: center;
  width: 11px;
  height: 11px;
}

.cb-badge-icon svg {
  width: 100%;
  height: 100%;
}

/* Icon SVG inherits badge color so text_color controls both text and icon */
.cb-badge-icon path, .cb-badge-icon polygon { fill: currentColor; }

/* ── Highlight Tags (used in summary tab) ──────────────── */

.cb-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.cb-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 6px;
  background: #f0f3f6;
  color: var(--black);
  white-space: nowrap;
  border: 1px solid transparent;
}

.cb-tag--leader {
  background: linear-gradient(135deg, #e8f2fd 0%, #daeafc 100%);
  color: var(--blue);
  font-weight: 600;
  border-color: #c5ddf5;
}

.cb-tag-icon {
  display: inline-flex;
  align-items: center;
  width: 14px;
  height: 14px;
}

.cb-tag-icon svg {
  width: 100%;
  height: 100%;
}

.cb-tag path, .cb-tag polygon { fill: var(--black); }
.cb-tag--leader path, .cb-tag--leader polygon { fill: var(--blue); }

/* ── Review grid ───────────────────────────────────────── */

.cb-review-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cb-review-grid-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cb-review-grid-bottom {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cb-review-grid-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  background: #fafbfc;
  border-radius: var(--border-radius);
  border: 1px solid #f0f2f5;
}

.cb-review-grid-item--full {
  grid-column: 1 / -1;
}

.cb-review-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--grey);
}

.cb-review-value {
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--black);
}

.cb-trend-icon {
  display: inline-flex;
  align-items: center;
  width: 16px;
  height: 16px;
}

.cb-trend-icon svg {
  width: 100%;
  height: 100%;
}

.cb-trend-icon path, .cb-trend-icon polygon { fill: var(--dark-blue-grey); }

/* Star distribution */

.cb-star-dist { margin-top: 8px; max-width: 340px; }

.cb-star-dist-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.cb-star-dist-label { width: 28px; font-size: 13px; text-align: right; font-weight: 500; }

.cb-star-dist-bar {
  flex: 1;
  height: 10px;
  background: #eef0f3;
  border-radius: 5px;
  overflow: hidden;
}

.cb-star-dist-fill {
  height: 100%;
  background: linear-gradient(90deg, #FFC665 0%, #ffb833 100%);
  border-radius: 5px;
  transition: width .6s ease;
}

.cb-star-dist-count { width: 28px; font-size: 13px; color: var(--grey); }

.cb-review-sources {
  margin-top: 18px;
  font-size: 14px;
  color: var(--grey);
  padding-top: 14px;
  border-top: 1px solid #f0f2f5;
}

.cb-review-sources a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}
.cb-review-sources a:hover { color: #005bb5; text-decoration: underline; }

/* ── Pros & Cons ───────────────────────────────────────── */

.cb-pros-cons { display: flex; gap: 32px; }
.cb-pros-cons-col { flex: 1; min-width: 30%; }

.cb-pros-cons-heading {
  font-family: var(--heading);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
  color: var(--grey);
  font-weight: 700;
}

.cb-pros-cons-col--pros .cb-pros-cons-heading { color: var(--green); }
.cb-pros-cons-col--cons .cb-pros-cons-heading { color: #e53935; }

.cb-pros-cons-list { list-style: none; margin: 0; padding: 0; }

.cb-pros-cons-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f3f6;
  font-size: 14px;
  line-height: 1.55;
  color: #3d4852;
}

.cb-pros-cons-list li:last-child { border-bottom: 0; }

.cb-pros-cons-icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

.cb-pros-cons-icon svg {
  width: 100%;
  height: 100%;
}

.cb-pros-cons-col--pros .cb-pros-cons-icon path, .cb-pros-cons-col--pros .cb-pros-cons-icon polygon { fill: var(--green); }
.cb-pros-cons-col--cons .cb-pros-cons-icon path, .cb-pros-cons-col--cons .cb-pros-cons-icon polygon { fill: #e53935; }


/* ═══════════════════════════════════════════════════════════
   2b. STICKY FOOTER CTA
   ═══════════════════════════════════════════════════════════ */

.cb-sticky-cta {
  position: fixed;
  bottom: 8px;
  left: 16px;
  right: 16px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.4s;
}

.cb-sticky-cta.cb-sticky-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cb-sticky-cta.cb-sticky-dismissed {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.3s;
}

.cb-sticky-cta-inner {
  background: rgba(11, 26, 46, 0.72);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  max-width: 1220px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px var(--padding);
}

.cb-sticky-cta-text {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  flex: 1;
  margin: 0;
  line-height: 1.4;
}

.cb-sticky-cta-btn {
  background: var(--blue);
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 6px 36px;
  border-radius: var(--border-radius);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.5px;
  transition: background var(--transition), transform var(--transition);
}

.cb-sticky-cta-btn:hover {
  background: #0066d0;
  transform: translateY(-1px);
}

.cb-sticky-cta-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  transition: color var(--transition);
}

.cb-sticky-cta-close:hover {
  color: rgba(255, 255, 255, 0.9);
}


/* ═══════════════════════════════════════════════════════════
   3. PARENT TIER TABLE
   ═══════════════════════════════════════════════════════════ */


.cb-parent-tier-heading {
  font-family: var(--heading);
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--black);
}

/* Wrapper — no border, just a reset */
.cb-parent-tier-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Each item owns its border */
.cb-pt-item {
  display: grid;
  grid-template-columns: 160px 180px 1fr 160px;
  align-items: center;
  gap: 24px;
  padding: 20px var(--padding);
  min-height: 80px;
  margin-block: 0;
  border: var(--border);
  background: #fff;
  position: relative;
}

.cb-pt-item + .cb-pt-item {
  margin-top: -1px;
}

.cb-pt-item:first-child {
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.cb-pt-item:last-child {
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.cb-pt-item:only-child {
  border-radius: var(--border-radius);
}

/* In-network partner — blue border, tinted bg, bold name for visual pop */
.cb-pt-item--partner {
  border: 1px solid var(--blue);
  z-index: 1;
}

.cb-pt-item--partner .cb-pt-name {
  color: var(--black);
  font-weight: 700;
}

.cb-pt-item--partner .cb-compact-rating strong {
  color: var(--black);
}

/* Columns */
.cb-pt-col--company {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.cb-pt-logo {
  height: 32px;
  max-width: 100px;
  object-fit: contain;
}

.cb-pt-name {
  font-size: 13px;
  color: var(--black);
  line-height: 1.2;
}

.cb-pt-col--rating {
  display: flex;
  align-items: center;
}

.cb-pt-col--trust {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}


/* Company link (logo + name, clickable) */
.cb-pt-company-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-decoration: none;
  color: inherit;
}

.cb-pt-company-link:hover .cb-pt-name { color: var(--blue); }

/* Actions */
.cb-pt-col--actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.cb-pt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, box-shadow .15s;
  cursor: pointer;
}

.cb-pt-btn.cb-pt-btn--primary {
  background: var(--black, #1a1a2e);
  color: #fff !important;
}

.cb-pt-btn--primary:hover {
  opacity: .9;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.cb-pt-btn.cb-pt-btn--highlighted {
  background: var(--blue, #2563eb);
  color: #fff !important;
}

.cb-pt-link {
  font-size: 13px;
  color: var(--blue, #2563eb);
  text-decoration: none;
}

.cb-pt-link:hover {
  text-decoration: underline;
}


/* ═══════════════════════════════════════════════════════════
   4. ALTERNATIVES TABLE
   ═══════════════════════════════════════════════════════════ */


.cb-alt-heading {
  font-family: var(--heading);
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--black);
}

/* Wrapper — no border, just a reset */
.cb-alt-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Each item owns its border */
.cb-alt-item {
  display: grid;
  grid-template-columns: 160px 180px 1fr 1fr 160px;
  align-items: center;
  gap: 24px;
  padding: 20px var(--padding);
  min-height: 80px;
  margin-block: 0;
  border: var(--border);
  background: #fff;
}

.cb-alt-item + .cb-alt-item {
  margin-top: -1px;
}

.cb-alt-item:first-child {
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.cb-alt-item:last-child {
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.cb-alt-item:only-child {
  border-radius: var(--border-radius);
}

/* Columns */
.cb-alt-col { font-size: 14px; }

.cb-alt-col--company {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.cb-alt-col--type,
.cb-alt-col--fees {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cb-alt-icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.cb-alt-icon svg {
  width: 100%;
  height: 100%;
}

.cb-alt-icon path,
.cb-alt-icon polygon,
.cb-alt-icon circle {
  fill: var(--dark-blue-grey);
}

.cb-alt-col--rating {
  display: flex;
  align-items: center;
}

.cb-alt-col--actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* Company link (logo + name, clickable) */
.cb-alt-company-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-decoration: none;
  color: inherit;
}

.cb-alt-company-link:hover .cb-pt-name { color: var(--blue); }

/* ── Section headings (shared) ── */

.cb-section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--grey);
  margin-bottom: 6px;
}

/* ── Empty state ── */

.cb-empty-tab {
  color: var(--grey);
  font-size: 14px;
  padding: 16px;
  background: #fafbfc;
  border-radius: var(--border-radius);
  border: 1px dashed #dde4ed;
  text-align: center;
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media screen and (max-width: 768px) {

  .cb-tiles-wrapper,
  .cb-cards-list-wrapper,
  .cb-parent-tier,
  .cb-alt-table { --padding: 15px; }

  /* Tiles */
  .cb-tiles-item { width: 75vw; min-width: 240px; }
  .cb-tiles-arrow { display: none; }

  /* Parent tier — separate rounded tiles on mobile */
  .cb-pt-item {
    grid-template-columns: 1fr;
    gap: 12px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
  }
  .cb-pt-item + .cb-pt-item {
    margin-top: 12px;
  }
  .cb-pt-item:first-child,
  .cb-pt-item:last-child {
    border-radius: var(--border-radius);
  }
  .cb-pt-col--company {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .cb-pt-company-link {
    align-items: center;
  }
  .cb-pt-col--rating {
    justify-content: center;
  }
  .cb-pt-col--trust {
    justify-content: center;
  }
  .cb-pt-col--actions {
    align-items: center;
  }

  /* Alternatives — separate rounded tiles on mobile */
  .cb-alt-item {
    grid-template-columns: 1fr;
    gap: 12px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
  }
  .cb-alt-item + .cb-alt-item {
    margin-top: 12px;
  }
  .cb-alt-item:first-child,
  .cb-alt-item:last-child {
    border-radius: var(--border-radius);
  }
  .cb-alt-col--company {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .cb-alt-company-link {
    align-items: center;
  }
  .cb-alt-col--rating {
    justify-content: center;
  }
  .cb-alt-col--type,
  .cb-alt-col--fees {
    justify-content: center;
  }
  .cb-alt-col--actions {
    align-items: center;
  }

  /* Review grid */
  .cb-review-grid-top { grid-template-columns: 1fr 1fr; }
  .cb-review-grid-bottom { grid-template-columns: 1fr 1fr; }

  /* Pros & cons */
  .cb-pros-cons { flex-direction: column; gap: 24px; }

  /* Sticky CTA — stack on mobile */
  .cb-sticky-cta-inner {
    flex-direction: column;
    text-align: center;
    position: relative;
  }

  .cb-sticky-cta-text {
    text-align: center;
  }

  .cb-sticky-cta-btn {
    width: 100%;
    text-align: center;
  }

  .cb-sticky-cta-close {
    position: absolute;
    top: 0;
    right: 0;
  }
}

/* Cards mobile */
@media screen and (max-width: 650px) {

  .cb-cards-list-item-details {
    flex-direction: column;
    align-items: center;
  }

  .cb-cards-list-item-details-right {
    text-align: center;
    width: 100%;
  }

  .cb-cards-list-item {
    --padding: 15px;
  }

  .cb-cards-list-item-details-left {
    width: 100%;
    border-right: none;
    border-bottom: var(--border);
  }

  .cb-cards-list-item-buttons-container {
    flex-direction: row;
    width: 100%;
    margin-bottom: 18px;
  }

  /* Location + trust bar center on mobile */
  .cb-card-location { justify-content: center; }
  .cb-card-trust { justify-content: center; }
  .cb-compact-rating { justify-content: center; }

  /* Expert take — clamp to 4 lines on mobile only */
  .cb-card-expert-text {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .cb-card-expert-text.cb-is-expanded {
    display: block;
    -webkit-line-clamp: unset;
  }

  /* Read more button visible on mobile */
  .cb-readmore-btn {
    display: inline-block;
    background: none;
    border: none;
    color: var(--blue);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    transition: color var(--transition);
  }

  .cb-readmore-btn:hover { color: #005bb5; }

  /* Detail list stacks on mobile */
  .cb-detail-row {
    flex-direction: column;
    gap: 2px;
  }

  .cb-detail-row dt {
    width: auto;
  }

  /* Review grid items */
  .cb-review-grid-item {
    padding: 10px 12px;
  }

  /* Tabs scrollable on mobile */
  .cb-cards-list-item-tabs-container {
    position: relative;
  }
  .cb-cards-list-item-tabs-container::after {
    content: '';
    position: absolute;
    top: var(--padding);
    right: 0;
    width: var(--padding);
    height: calc(100% - var(--padding) * 2);
    background: linear-gradient(to left, #fff, transparent);
    pointer-events: none;
    z-index: 1;
  }
  .cb-review-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: calc(100% + var(--padding));
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-right: var(--padding);
  }
  .cb-review-tabs::-webkit-scrollbar { display: none; }
}

@media screen and (max-width: 478px) {
  .cb-review-grid-top { grid-template-columns: 1fr 1fr; }
  .cb-review-grid-bottom { grid-template-columns: 1fr 1fr; }
}
