cat > wp-content/mu-plugins/ccx/ccx-offers/assets/ccx-offers-tabs.css <<'CSS'
/* CCX OFFERS TABS — PREMIUM DARK (scope .ccx-offers-tabs) */

.ccx-offers-tabs{
  --ccx-green:#00ff6a;
  --ccx-orange:#ff7a00;

  --ccx-txt: rgba(255,255,255,.92);
  --ccx-sub: rgba(255,255,255,.70);

  --ccx-surface: rgba(255,255,255,.08);
  --ccx-surface2: rgba(0,0,0,.22);
  --ccx-border: rgba(255,255,255,.12);

  width:100%;
  box-sizing:border-box;

  border-radius:18px;
  overflow:hidden;

  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.24));
  border: 1px solid var(--ccx-border);
  box-shadow: 0 18px 70px rgba(0,0,0,.30);

  color: var(--ccx-txt);
}

.ccx-offers-tabs *{ box-sizing:border-box; }

/* HEAD (tabs) */
.ccx-offers-tabs__head{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px;
  background: rgba(0,0,0,.18);
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.ccx-tabbtn{
  appearance:none;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--ccx-txt);
  border-radius:999px;
  padding:8px 12px;
  font-weight:900;
  font-size:13px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  cursor:pointer;
  user-select:none;
  transition: transform .12s ease, filter .12s ease, border-color .12s ease, background .12s ease;
}
.ccx-tabbtn:hover{ filter: brightness(1.05); transform: translateY(-1px); }
.ccx-tabbtn[aria-selected="true"]{
  background: rgba(0,255,106,.14);
  border-color: rgba(0,255,106,.55);
  box-shadow: 0 10px 26px rgba(0,255,106,.12);
  color: var(--ccx-green);
}

.ccx-tabcount{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:22px;
  padding:2px 8px;
  border-radius:999px;
  font-size:12px;
  font-weight:950;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  color: var(--ccx-txt);
}
.ccx-tabbtn[aria-selected="true"] .ccx-tabcount{
  background: rgba(0,255,106,.16);
  border-color: rgba(0,255,106,.35);
  color: var(--ccx-green);
}

/* BODY */
.ccx-offers-tabs__body{ padding:12px; }
.ccx-tabpanel{ display:none; }
.ccx-tabpanel.is-active{ display:block; animation: ccxFade .16s ease-out; }
@keyframes ccxFade{ from{opacity:0; transform: translateY(4px);} to{opacity:1; transform: translateY(0);} }

/* TABLE -> look cards */
.ccx-offers-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0 10px;
}
.ccx-offers-table thead{ display:none; }

.ccx-offers-table tbody tr td{
  background: var(--ccx-surface2);
  border-top:1px solid var(--ccx-border);
  border-bottom:1px solid var(--ccx-border);
  padding:12px 12px;
  vertical-align:middle;
}
.ccx-offers-table tbody tr td:first-child{
  border-left:1px solid var(--ccx-border);
  border-top-left-radius:16px;
  border-bottom-left-radius:16px;
}
.ccx-offers-table tbody tr td:last-child{
  border-right:1px solid var(--ccx-border);
  border-top-right-radius:16px;
  border-bottom-right-radius:16px;
}

/*
  Highlight the first (best) offer row.  We add a thin colored outline
  around the cells and slightly lighten the background to make the top
  offer stand out from the subsequent rows.  This hook relies on the
  `ccx-best-row` class added server‑side on the first row.
*/
.ccx-offers-table tbody tr.ccx-best-row td{
  /* Lighten the row background a bit to distinguish the best offer. */
  background: var(--ccx-surface3, rgba(255,255,255,.08));
  /* Use the standard border colour to avoid a vertical green band. */
  border-color: var(--ccx-border);
}

/* Columns */
/* Columns
   Our offers table now has three columns: merchant (1), total price (2) and CTA (3).
   The second column contains the total price; give it strong emphasis.
   The third column contains the CTA; align it to the right on larger screens. */
.ccx-offers-table td:nth-child(2){
  text-align:right;
  font-weight:1000;
  font-size:16px;
  white-space:nowrap;
}
.ccx-offers-table td:nth-child(3){
  text-align:right;
}
/* no fourth column anymore */

/* Price line: contains the old price (strikethrough) and the new price. */
.ccx-price-line{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:2px;
}
.ccx-old-price{
  font-size:13px;
  /* Ancien prix : texte blanc légèrement atténué avec un trait noir barré */
  color: rgba(255,255,255,.75);
  text-decoration: line-through;
  text-decoration-color: rgba(0,0,0,.80);
}
.ccx-new-price{
  font-size:17px;
  font-weight:1000;
  color: var(--ccx-orange);
}

/* Merchant */
.ccx-merchant{
  font-weight:950;
  font-size:14px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.ccx-muted{ color: var(--ccx-sub); font-size:12px; margin-top:4px; }

/* CTA */
.ccx-offers-tabs .ccx-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:14px;
  background: var(--ccx-green);
  color: rgba(0,0,0,.88) !important;
  font-weight:950;
  text-decoration:none !important;
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 12px 26px rgba(0,255,106,.14);
  transition: transform .12s ease, filter .12s ease;
  min-width: 120px;
}
.ccx-offers-tabs .ccx-cta:hover{ filter: brightness(1.03); transform: translateY(-1px); }

/* Badges */
.ccx-offers-tabs .ccx-badge{
  display:inline-block;
  margin-left:8px;
  padding:4px 10px;
  border-radius:999px;
  background: rgba(255,122,0,.14);
  border: 1px solid rgba(255,122,0,.40);
  color: var(--ccx-orange);
  font-size:11px;
  font-weight:950;
  white-space:nowrap;
}
.ccx-offers-tabs .ccx-badge-gray{
  display:inline-block;
  margin-left:8px;
  padding:4px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.78);
  font-size:11px;
  font-weight:900;
  white-space:nowrap;
}

/* Mobile */
@media (max-width: 980px){
  .ccx-offers-tabs__head{ flex-wrap:wrap; }

  .ccx-offers-table tbody tr{ display:block; }
  .ccx-offers-table tbody tr td{
    display:block;
    border-left:1px solid var(--ccx-border);
    border-right:1px solid var(--ccx-border);
    border-radius:0 !important;
  }
  .ccx-offers-table tbody tr td:first-child{
    border-top-left-radius:16px !important;
    border-top-right-radius:16px !important;
  }
  .ccx-offers-table tbody tr td:last-child{
    border-bottom-left-radius:16px !important;
    border-bottom-right-radius:16px !important;
  }

  /* On small screens, the total price (column 2) is left-aligned and larger. */
  .ccx-offers-table td:nth-child(2){ text-align:left; font-size:17px; }
  /* CTA takes full width on mobile, matching the merchant column */
  .ccx-offers-table td:nth-child(3),
  .ccx-offers-tabs .ccx-cta{ width:100%; min-width:0; text-align:left; }
}
CSS


/* =========================================================
   CCX — Premium pricing (TOTAL en avant)
   ========================================================= */
.ccx-priceNow--total{
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.2px;
}
.ccx-offers__bestMeta .ccx-subLine,
.ccx-offerRow__shipLine--sub{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  opacity: .85;
}
.ccx-dot{
  opacity: .5;
  font-weight: 700;
}










/* --- CCX merchant logo: force l’affichage du <img> --- */
.ccx-merchant__logo{
  width:26px;
  height:26px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border-radius:6px;
  flex:0 0 26px;
}

.ccx-merchant__logo img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  opacity:1 !important;
  visibility:visible !important;
  max-width:none !important;
  max-height:none !important;
}

/* si ton badge est en flex, évite que le logo se fasse écraser */
a.ccx-merchant,
.ccx-offers__bestMerchant a.ccx-merchant,
.ccx-offerRow__merchant a.ccx-merchant{
  display:inline-flex;
  align-items:center;
  gap:8px;
}
