/**
 * FiveHeberg Cart — Modern 2026
 * Design system : palette FiveHeberg (--fh-bg, --fh-accent, --fh-text)
 * Approche : classes fh-cart-* uniques + selecteurs WHMCS héritages corrigés
 * Pas de combat de spécificité — namespacing strict
 */

/* ============================================================
   Variables additionnelles spécifiques au cart
   ============================================================ */
body.fh-whmcs--cart,
body.fh-whmcs #order-standard_cart {
  --fhc-bg: #060d18;
  --fhc-surface: rgba(12, 24, 41, 0.85);
  --fhc-surface-hover: rgba(18, 32, 52, 0.95);
  --fhc-border: rgba(77, 163, 255, 0.18);
  --fhc-border-strong: rgba(77, 163, 255, 0.4);
  --fhc-accent: #3b9eff;
  --fhc-accent-2: #1d6fd8;
  --fhc-text: #e8f0fc;
  --fhc-text-strong: #ffffff;
  --fhc-text-muted: #8fa3be;
  --fhc-success: #34d399;
  --fhc-warning: #fbbf24;
  --fhc-danger: #f87171;
  --fhc-radius: 16px;
  --fhc-radius-sm: 10px;
  --fhc-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  --fhc-shadow-hover: 0 28px 60px -22px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(59, 158, 255, 0.2);
}

/* ============================================================
   1. Page wrapper & layout 2 colonnes
   ============================================================ */
body.fh-whmcs #order-standard_cart.fh-order-cart {
  padding: 0.5rem 0 3rem;
  color: var(--fhc-text);
}

body.fh-whmcs .fh-order-cart__layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  align-items: flex-start;
}

@media (max-width: 991.98px) {
  body.fh-whmcs .fh-order-cart__layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

body.fh-whmcs .fh-order-cart__sidebar,
body.fh-whmcs .fh-order-cart__body {
  min-width: 0;
}

/* ============================================================
   2. Hero page header
   ============================================================ */
body.fh-whmcs .fh-cart-hero {
  padding: 0.5rem 0 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--fhc-border);
}

body.fh-whmcs .fh-cart-hero__eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fhc-accent);
  margin: 0 0 0.4rem;
}

body.fh-whmcs .fh-cart-hero__title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fhc-text-strong);
}

body.fh-whmcs .fh-cart-hero__lead {
  margin: 0;
  color: var(--fhc-text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 60ch;
}

/* Bouton retour catégories en haut */
body.fh-whmcs .fh-cart-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--fhc-border);
  border-radius: 999px;
  color: var(--fhc-text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

body.fh-whmcs .fh-cart-hero__back:hover {
  background: rgba(59, 158, 255, 0.12);
  border-color: var(--fhc-border-strong);
  color: var(--fhc-accent);
}

/* ============================================================
   3. Compatibilité avec les vieux titres existants
   ============================================================ */
body.fh-whmcs #order-standard_cart .header-lined {
  padding: 0.5rem 0 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--fhc-border);
}

body.fh-whmcs #order-standard_cart .header-lined h1 {
  margin: 0 0 0.4rem !important;
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem) !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
  color: var(--fhc-text-strong) !important;
}

body.fh-whmcs #order-standard_cart .header-lined p {
  margin: 0;
  color: var(--fhc-text-muted);
  font-size: 0.95rem;
}

/* ============================================================
   4. Sidebar-collapsed (catégories mobile)
   ============================================================ */
body.fh-whmcs .sidebar-collapsed {
  display: none;
  margin: 0 0 1.25rem;
}

@media (max-width: 991.98px) {
  body.fh-whmcs .sidebar-collapsed {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--fhc-surface);
    border: 1px solid var(--fhc-border);
    border-radius: 12px;
  }
  body.fh-whmcs .sidebar-collapsed .pull-left,
  body.fh-whmcs .sidebar-collapsed .pull-right,
  body.fh-whmcs .sidebar-collapsed .float-left,
  body.fh-whmcs .sidebar-collapsed .float-right {
    float: none !important;
    flex: 1 1 200px;
  }
  body.fh-whmcs .sidebar-collapsed form { width: 100%; position: relative; }
  body.fh-whmcs .sidebar-collapsed form::before {
    content: "Catégorie";
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fhc-text-muted);
    margin-bottom: 0.35rem;
  }
  body.fh-whmcs .sidebar-collapsed select {
    width: 100%;
    background: rgba(6, 13, 24, 0.65);
    border: 1px solid var(--fhc-border);
    color: var(--fhc-text-strong);
    padding: 0.55rem 0.85rem;
    border-radius: 8px;
    cursor: pointer;
  }
}

/* ============================================================
   5. Sidebar catégories (desktop)
   ============================================================ */
body.fh-whmcs .fh-order-cart__sidebar .card,
body.fh-whmcs .fh-order-cart__sidebar .panel {
  background: var(--fhc-surface);
  border: 1px solid var(--fhc-border);
  border-radius: 14px;
  box-shadow: var(--fhc-shadow);
  margin-bottom: 1rem;
  overflow: hidden;
}

body.fh-whmcs .fh-order-cart__sidebar .card-header,
body.fh-whmcs .fh-order-cart__sidebar .panel-heading {
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--fhc-border);
  padding: 0.75rem 1rem;
}

body.fh-whmcs .fh-order-cart__sidebar .panel-title,
body.fh-whmcs .fh-order-cart__sidebar .card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fhc-text-strong);
}

body.fh-whmcs .fh-order-cart__sidebar .panel-title > i:first-child,
body.fh-whmcs .fh-order-cart__sidebar .card-title > i:first-child {
  color: var(--fhc-accent);
  font-size: 0.85rem;
}

body.fh-whmcs .fh-order-cart__sidebar .list-group {
  border-radius: 0;
  background: transparent;
}

body.fh-whmcs .fh-order-cart__sidebar .list-group-item {
  background: transparent;
  border-color: var(--fhc-border);
  border-left: 0;
  border-right: 0;
  color: var(--fhc-text);
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  transition: background 0.15s ease, padding-left 0.15s ease, color 0.15s ease;
  text-decoration: none;
}

body.fh-whmcs .fh-order-cart__sidebar .list-group-item:first-child { border-top: 0; }
body.fh-whmcs .fh-order-cart__sidebar .list-group-item:last-child { border-bottom: 0; }

body.fh-whmcs .fh-order-cart__sidebar .list-group-item-action:hover {
  background: rgba(59, 158, 255, 0.08);
  padding-left: 1.15rem;
  color: var(--fhc-text-strong);
}

body.fh-whmcs .fh-order-cart__sidebar .list-group-item.active {
  background: linear-gradient(135deg, rgba(59, 158, 255, 0.18), rgba(29, 111, 216, 0.08));
  color: var(--fhc-text-strong);
  font-weight: 600;
  padding-left: 1.15rem;
}

body.fh-whmcs .fh-order-cart__sidebar .list-group-item.active::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--fhc-accent), var(--fhc-accent-2));
}

body.fh-whmcs .fh-order-cart__sidebar .list-group-item i {
  color: var(--fhc-text-muted);
  width: 16px;
  text-align: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

body.fh-whmcs .fh-order-cart__sidebar .list-group-item-action:hover i,
body.fh-whmcs .fh-order-cart__sidebar .list-group-item.active i {
  color: var(--fhc-accent);
}

/* ============================================================
   6. PRODUCTS — Grille des cards
   ============================================================ */
body.fh-whmcs .fh-cart-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin: 0;
}

@media (max-width: 575.98px) {
  body.fh-whmcs .fh-cart-products {
    grid-template-columns: 1fr;
  }
}

body.fh-whmcs .fh-cart-product {
  display: flex;
  flex-direction: column;
  background: var(--fhc-surface);
  border: 1px solid var(--fhc-border);
  border-radius: var(--fhc-radius);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  position: relative;
}

body.fh-whmcs .fh-cart-product::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--fhc-accent), transparent);
  opacity: 0;
  transition: opacity 0.22s ease;
}

body.fh-whmcs .fh-cart-product:hover {
  transform: translateY(-3px);
  border-color: var(--fhc-border-strong);
  box-shadow: var(--fhc-shadow-hover);
}

body.fh-whmcs .fh-cart-product:hover::before { opacity: 0.85; }

body.fh-whmcs .fh-cart-product__header {
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--fhc-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

body.fh-whmcs .fh-cart-product__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--fhc-text-strong);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

body.fh-whmcs .fh-cart-product__stock {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  background: rgba(52, 211, 153, 0.14);
  color: var(--fhc-success);
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

body.fh-whmcs .fh-cart-product__stock--out {
  background: rgba(248, 113, 113, 0.14);
  color: var(--fhc-danger);
  border-color: rgba(248, 113, 113, 0.4);
}

body.fh-whmcs .fh-cart-product__body {
  padding: 1.15rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  color: var(--fhc-text);
}

body.fh-whmcs .fh-cart-product__intro {
  margin: 0;
  color: var(--fhc-text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

body.fh-whmcs .fh-cart-product__features {
  list-style: none;
  padding: 0;
  margin: 0;
}

body.fh-whmcs .fh-cart-product__features li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
  font-size: 0.88rem;
}

body.fh-whmcs .fh-cart-product__features li:last-child { border-bottom: 0; }

body.fh-whmcs .fh-cart-product__feature-label {
  color: var(--fhc-text);
  font-weight: 600;
}

body.fh-whmcs .fh-cart-product__feature-value {
  color: var(--fhc-text-strong);
  font-weight: 600;
  text-align: right;
}

body.fh-whmcs .fh-cart-product__footer {
  padding: 1.25rem 1.15rem;
  border-top: 1px solid var(--fhc-border);
  background: rgba(255, 255, 255, 0.015);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: center;
}

body.fh-whmcs .fh-cart-product__pricing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

body.fh-whmcs .fh-cart-product__from {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fhc-text-muted);
  font-weight: 700;
}

body.fh-whmcs .fh-cart-product__price {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--fhc-accent);
  letter-spacing: -0.02em;
}

body.fh-whmcs .fh-cart-product__cycle {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fhc-text-muted);
  font-weight: 700;
}

body.fh-whmcs .fh-cart-product__setup {
  font-size: 0.75rem;
  color: var(--fhc-text-muted);
  font-style: italic;
  margin-top: 0.2rem;
}

body.fh-whmcs .fh-cart-product__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  background: linear-gradient(135deg, var(--fhc-accent), var(--fhc-accent-2));
  color: var(--fhc-text-strong) !important;
  -webkit-text-fill-color: var(--fhc-text-strong) !important;
  border: 1px solid var(--fhc-accent-2);
  box-shadow: 0 10px 26px -12px rgba(59, 158, 255, 0.6);
  transition: filter 0.15s ease, transform 0.15s ease;
  text-decoration: none;
}

body.fh-whmcs .fh-cart-product__cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  color: var(--fhc-text-strong) !important;
}

/* ============================================================
   7. CONFIGURE — Page configuration produit
   ============================================================ */
body.fh-whmcs .fh-cart-configure {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  align-items: flex-start;
}

@media (max-width: 991.98px) {
  body.fh-whmcs .fh-cart-configure {
    grid-template-columns: 1fr;
  }
}

body.fh-whmcs .fh-cart-configure__main,
body.fh-whmcs .fh-cart-configure__summary,
body.fh-whmcs .secondary-cart-body,
body.fh-whmcs .secondary-cart-sidebar,
body.fh-whmcs #scrollingPanelContainer {
  min-width: 0;
}

body.fh-whmcs .fh-cart-lead,
body.fh-whmcs .fh-order-cart__lead {
  color: var(--fhc-text-muted);
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
  line-height: 1.55;
}

body.fh-whmcs .fh-cart-product-banner,
body.fh-whmcs .fh-product-info-box {
  background: linear-gradient(135deg, rgba(59, 158, 255, 0.1), rgba(29, 111, 216, 0.04));
  border: 1px solid rgba(59, 158, 255, 0.28);
  border-radius: 14px;
  padding: 1.15rem 1.3rem;
  margin-bottom: 1.25rem;
  color: var(--fhc-text);
}

body.fh-whmcs .fh-cart-product-banner__title,
body.fh-whmcs .fh-product-info-box .product-title,
body.fh-whmcs .fh-product-info-box__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--fhc-text-strong);
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}

body.fh-whmcs .fh-cart-product-banner__desc,
body.fh-whmcs .fh-product-info-box__desc {
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

body.fh-whmcs .fh-cart-product-banner__desc p:last-child,
body.fh-whmcs .fh-product-info-box__desc p:last-child { margin-bottom: 0; }

/* Sub-heading "OPTIONS CONFIGURABLES" */
body.fh-whmcs .sub-heading {
  position: relative;
  padding: 1rem 0;
  margin: 1.5rem 0 1rem;
  text-align: center;
}

body.fh-whmcs .sub-heading::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--fhc-border);
  z-index: 0;
}

body.fh-whmcs .sub-heading > span,
body.fh-whmcs .sub-heading .primary-bg-color {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--fhc-bg);
  color: var(--fhc-accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 999px;
  border: 1px solid rgba(59, 158, 255, 0.3);
}

/* Field container */
body.fh-whmcs .field-container {
  background: var(--fhc-surface);
  border: 1px solid var(--fhc-border);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin-bottom: 0.65rem;
}

body.fh-whmcs .field-container .form-group { margin-bottom: 0; }

body.fh-whmcs .field-container label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--fhc-text-strong);
  margin-bottom: 0.5rem;
}

/* ============================================================
   8. VIEWCART — Liste des items du panier (NOUVELLE structure)
   ============================================================ */
body.fh-whmcs .fh-cart-items {
  background: var(--fhc-surface);
  border: 1px solid var(--fhc-border);
  border-radius: var(--fhc-radius);
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: var(--fhc-shadow);
}

body.fh-whmcs .fh-cart-items__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--fhc-border);
}

body.fh-whmcs .fh-cart-items__header-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fhc-text-muted);
}

body.fh-whmcs .fh-cart-items__header-title i {
  color: var(--fhc-accent);
  font-size: 0.85rem;
}

body.fh-whmcs .fh-cart-items__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.fh-whmcs .fh-cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 1.25rem;
  border-bottom: 1px solid var(--fhc-border);
  transition: background 0.15s ease;
  align-items: flex-start;
}

body.fh-whmcs .fh-cart-item:last-child { border-bottom: 0; }

body.fh-whmcs .fh-cart-item:hover { background: rgba(59, 158, 255, 0.03); }

body.fh-whmcs .fh-cart-item__main {
  min-width: 0;
}

body.fh-whmcs .fh-cart-item__title-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

body.fh-whmcs .fh-cart-item__name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--fhc-text-strong);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

body.fh-whmcs .fh-cart-item__edit {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  background: rgba(59, 158, 255, 0.12);
  border: 1px solid rgba(59, 158, 255, 0.3);
  border-radius: 6px;
  color: var(--fhc-accent);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

body.fh-whmcs .fh-cart-item__edit:hover {
  background: rgba(59, 158, 255, 0.22);
  border-color: rgba(59, 158, 255, 0.5);
  color: var(--fhc-text-strong);
}

body.fh-whmcs .fh-cart-item__group {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fhc-text-muted);
  margin-bottom: 0.5rem;
}

body.fh-whmcs .fh-cart-item__domain {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.2rem 0.55rem;
  background: rgba(59, 158, 255, 0.08);
  border: 1px solid rgba(59, 158, 255, 0.22);
  border-radius: 6px;
  color: var(--fhc-accent);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.82rem;
  font-weight: 600;
}

body.fh-whmcs .fh-cart-item__options {
  margin: 0.65rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: #cbd5e1;
}

body.fh-whmcs .fh-cart-item__options li {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  line-height: 1.4;
}

body.fh-whmcs .fh-cart-item__options li::before {
  content: "›";
  color: var(--fhc-accent);
  font-weight: 700;
  flex-shrink: 0;
}

body.fh-whmcs .fh-cart-item__option-label {
  color: var(--fhc-text-muted);
}

body.fh-whmcs .fh-cart-item__option-value {
  color: var(--fhc-text-strong);
  font-weight: 600;
}

body.fh-whmcs .fh-cart-item__setup {
  display: inline-block;
  margin-top: 0.45rem;
  padding: 0.15rem 0.55rem;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 6px;
  color: var(--fhc-warning);
  font-size: 0.75rem;
  font-weight: 600;
}

body.fh-whmcs .fh-cart-item__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.85rem;
  text-align: right;
  flex-shrink: 0;
}

body.fh-whmcs .fh-cart-item__price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
}

body.fh-whmcs .fh-cart-item__amount {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--fhc-text-strong);
  line-height: 1;
  letter-spacing: -0.02em;
}

body.fh-whmcs .fh-cart-item__cycle {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fhc-text-muted);
}

body.fh-whmcs .fh-cart-item__renewal {
  font-size: 0.75rem;
  color: var(--fhc-text-muted);
  font-style: italic;
  margin-top: 0.35rem;
  max-width: 200px;
}

body.fh-whmcs .fh-cart-item__renewal-amount {
  color: var(--fhc-text);
  font-weight: 600;
}

body.fh-whmcs .fh-cart-item__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--fhc-border);
  border-radius: 8px;
  color: var(--fhc-text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}

body.fh-whmcs .fh-cart-item__remove:hover {
  background: rgba(248, 113, 113, 0.18);
  border-color: var(--fhc-danger);
  color: var(--fhc-danger);
}

@media (max-width: 575.98px) {
  body.fh-whmcs .fh-cart-item {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  body.fh-whmcs .fh-cart-item__aside {
    align-items: flex-start;
    text-align: left;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--fhc-border);
  }
}

/* ============================================================
   9. SUMMARY SIDEBAR (Résumé de la commande)
   ============================================================ */
body.fh-whmcs .fh-cart-summary,
body.fh-whmcs #orderSummary,
body.fh-whmcs .order-summary {
  background: var(--fhc-surface);
  border: 1px solid var(--fhc-border);
  border-radius: var(--fhc-radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--fhc-shadow);
  position: sticky;
  top: 1rem;
  font-size: 0.92rem;
  color: var(--fhc-text);
}

@media (max-width: 991.98px) {
  body.fh-whmcs .fh-cart-summary,
  body.fh-whmcs #orderSummary,
  body.fh-whmcs .order-summary {
    position: static;
  }
}

body.fh-whmcs .fh-cart-summary__title,
body.fh-whmcs .order-summary h2,
body.fh-whmcs #orderSummary h2 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  color: var(--fhc-text-strong) !important;
  padding: 0.5rem 0 0.85rem;
  border-bottom: 1px solid var(--fhc-border);
}

body.fh-whmcs .fh-cart-summary__title::before,
body.fh-whmcs .order-summary h2::before,
body.fh-whmcs #orderSummary h2::before {
  content: "\f291";
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome;
  font-weight: 900;
  color: var(--fhc-accent);
  font-size: 0.95rem;
}

body.fh-whmcs #orderSummary .product-name,
body.fh-whmcs .order-summary .product-name {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  color: var(--fhc-text-strong);
  margin-bottom: 0.15rem;
}

body.fh-whmcs #orderSummary .product-group,
body.fh-whmcs .order-summary .product-group {
  display: block;
  color: var(--fhc-text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--fhc-border);
}

body.fh-whmcs #orderSummary .clearfix,
body.fh-whmcs .order-summary .clearfix {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.3rem 0;
  color: var(--fhc-text);
  font-size: 0.88rem;
}

body.fh-whmcs #orderSummary .clearfix .pull-left,
body.fh-whmcs #orderSummary .clearfix .float-left {
  color: var(--fhc-text-muted);
}

body.fh-whmcs #orderSummary .clearfix .pull-right,
body.fh-whmcs #orderSummary .clearfix .float-right {
  color: var(--fhc-text-strong);
  font-weight: 600;
}

body.fh-whmcs #orderSummary .summary-totals,
body.fh-whmcs .order-summary .summary-totals {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--fhc-border);
}

body.fh-whmcs .total-due-today {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid var(--fhc-accent);
}

body.fh-whmcs .total-due-today .amt {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fhc-accent);
}

body.fh-whmcs .total-due-today > span:last-child {
  color: var(--fhc-text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
  font-weight: 700;
}

/* Boutons sidebar */
body.fh-whmcs .order-summary .btn,
body.fh-whmcs #orderSummary .btn,
body.fh-whmcs .order-summary a.btn,
body.fh-whmcs #orderSummary a.btn {
  width: 100%;
  margin-top: 0.85rem;
}

body.fh-whmcs .order-summary .btn-primary,
body.fh-whmcs #orderSummary .btn-primary {
  min-height: 46px;
  font-size: 0.95rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--fhc-accent), var(--fhc-accent-2));
  border-color: var(--fhc-accent-2);
  color: var(--fhc-text-strong) !important;
  -webkit-text-fill-color: var(--fhc-text-strong) !important;
  box-shadow: 0 10px 26px -12px rgba(59, 158, 255, 0.55);
  border-radius: 10px;
}

body.fh-whmcs .order-summary .btn-primary:hover,
body.fh-whmcs #orderSummary .btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

body.fh-whmcs .order-summary .btn-default,
body.fh-whmcs #orderSummary .btn-default {
  background: transparent !important;
  border: 1px solid var(--fhc-border) !important;
  color: var(--fhc-text-muted) !important;
  -webkit-text-fill-color: var(--fhc-text-muted) !important;
  font-weight: 500;
  font-size: 0.85rem;
}

body.fh-whmcs .order-summary .btn-default:hover,
body.fh-whmcs #orderSummary .btn-default:hover {
  border-color: var(--fhc-border-strong) !important;
  color: var(--fhc-text) !important;
}

/* ============================================================
   10. PROMO & taxes tabs
   ============================================================ */
body.fh-whmcs .fh-cart-extras,
body.fh-whmcs .view-cart-tabs {
  margin-top: 1.5rem;
}

body.fh-whmcs .fh-cart-extras .nav-tabs,
body.fh-whmcs .view-cart-tabs .nav-tabs {
  border-bottom: 0;
  gap: 0.25rem;
  background: transparent;
  margin-bottom: 0;
  padding-left: 0.5rem;
}

body.fh-whmcs .fh-cart-extras .nav-tabs .nav-link,
body.fh-whmcs .view-cart-tabs .nav-tabs .nav-link {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--fhc-border);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  color: var(--fhc-text-muted);
  -webkit-text-fill-color: var(--fhc-text-muted);
  padding: 0.7rem 1.15rem;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: -1px;
  text-decoration: none;
  cursor: pointer;
}

body.fh-whmcs .fh-cart-extras .nav-tabs .nav-link:hover,
body.fh-whmcs .view-cart-tabs .nav-tabs .nav-link:hover {
  background: rgba(59, 158, 255, 0.08);
  color: var(--fhc-text-strong);
  -webkit-text-fill-color: var(--fhc-text-strong);
}

body.fh-whmcs .fh-cart-extras .nav-tabs .nav-link.active,
body.fh-whmcs .view-cart-tabs .nav-tabs .nav-link.active {
  background: var(--fhc-surface);
  color: var(--fhc-accent);
  -webkit-text-fill-color: var(--fhc-accent);
  border-color: var(--fhc-border);
}

body.fh-whmcs .fh-cart-extras .tab-content,
body.fh-whmcs .view-cart-tabs .tab-content {
  background: var(--fhc-surface);
  border: 1px solid var(--fhc-border);
  border-radius: 0 14px 14px 14px;
  padding: 1.25rem;
}

body.fh-whmcs .view-cart-tabs .tab-pane.promo input[type="text"] {
  background: rgba(6, 13, 24, 0.65);
  border: 1px solid var(--fhc-border);
  color: var(--fhc-text-strong);
  padding: 0.65rem 0.85rem 0.65rem 2.5rem;
  border-radius: 10px;
  width: 100%;
}

body.fh-whmcs .view-cart-tabs .tab-pane.promo button[type="submit"] {
  width: 100%;
  background: linear-gradient(135deg, var(--fhc-accent), var(--fhc-accent-2));
  color: var(--fhc-text-strong) !important;
  -webkit-text-fill-color: var(--fhc-text-strong) !important;
  border-color: var(--fhc-accent-2);
  min-height: 42px;
  font-weight: 700;
}

body.fh-whmcs .view-cart-promotion-code {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--fhc-success);
  font-weight: 600;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

body.fh-whmcs .view-cart-promotion-code::before {
  content: "\f058";
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome;
  font-weight: 900;
}

/* ============================================================
   11. Bottom actions (vider panier, continuer shopping)
   ============================================================ */
body.fh-whmcs button[name="emptycart"],
body.fh-whmcs .btn-empty-cart {
  background: transparent;
  border: 1px solid var(--fhc-border);
  color: var(--fhc-text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

body.fh-whmcs button[name="emptycart"]:hover {
  border-color: var(--fhc-danger);
  color: var(--fhc-danger);
  background: rgba(248, 113, 113, 0.06);
}

body.fh-whmcs button[name="continue_shopping"] {
  background: transparent;
  border: 1px solid var(--fhc-border);
  color: var(--fhc-text);
  font-weight: 600;
  padding: 0.55rem 1.15rem;
  border-radius: 10px;
}

body.fh-whmcs button[name="continue_shopping"]:hover {
  border-color: var(--fhc-border-strong);
  background: rgba(255, 255, 255, 0.04);
}

/* ============================================================
   12. CHECKOUT
   ============================================================ */
body.fh-whmcs .fh-order-cart--checkout .already-registered {
  background: rgba(59, 158, 255, 0.08);
  border: 1px solid rgba(59, 158, 255, 0.25);
  border-radius: 12px;
  padding: 0.9rem 1.15rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

body.fh-whmcs .fh-order-cart--checkout .already-registered p {
  margin: 0;
  color: var(--fhc-text);
  font-size: 0.92rem;
  flex: 1;
}

body.fh-whmcs .fh-order-cart--checkout .already-registered .btn { flex-shrink: 0; }

body.fh-whmcs .account-select-container .account {
  border: 1px solid var(--fhc-border);
  border-radius: 12px;
  padding: 0.9rem 1.05rem;
  margin-bottom: 0.65rem;
  background: var(--fhc-surface);
  transition: border-color 0.15s ease, background 0.15s ease;
}

body.fh-whmcs .account-select-container .account:hover {
  border-color: var(--fhc-border-strong);
  background: rgba(59, 158, 255, 0.04);
}

body.fh-whmcs .account-select-container .account.active {
  border-color: var(--fhc-accent);
  background: rgba(59, 158, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(59, 158, 255, 0.15);
}

body.fh-whmcs .account-select-container .account label.radio-inline {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  margin: 0;
  width: 100%;
}

body.fh-whmcs .account-select-container .account .address {
  flex: 1;
  min-width: 0;
}

body.fh-whmcs .account-select-container .account .address strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--fhc-text-strong);
}

body.fh-whmcs .account-select-container .account .small {
  color: var(--fhc-text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

body.fh-whmcs #order-standard_cart .form-group.prepend-icon {
  position: relative;
}

body.fh-whmcs #order-standard_cart .form-group.prepend-icon .field-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: var(--fhc-text-muted);
  z-index: 4;
  pointer-events: none;
  margin: 0;
  font-weight: normal;
}

body.fh-whmcs #order-standard_cart .form-group.prepend-icon input,
body.fh-whmcs #order-standard_cart .form-group.prepend-icon select,
body.fh-whmcs #order-standard_cart .form-group.prepend-icon .field {
  padding-left: 2.5rem;
}

/* ============================================================
   13. COMPLETE
   ============================================================ */
body.fh-whmcs .order-complete,
body.fh-whmcs #containerOrderComplete {
  text-align: center;
  padding: 3rem 1.5rem;
  max-width: 720px;
  margin: 0 auto;
}

body.fh-whmcs .order-complete h1,
body.fh-whmcs #containerOrderComplete h1 {
  font-size: clamp(1.85rem, 1.4rem + 1.5vw, 2.5rem);
  font-weight: 800;
  color: var(--fhc-success);
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

body.fh-whmcs .order-complete h1::before,
body.fh-whmcs #containerOrderComplete h1::before {
  content: "\f058";
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome;
  font-weight: 900;
  font-size: 3.5rem;
  color: var(--fhc-success);
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.35);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.fh-whmcs .order-complete p,
body.fh-whmcs #containerOrderComplete p {
  color: var(--fhc-text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0.5rem 0;
}

body.fh-whmcs .order-complete .order-number,
body.fh-whmcs #containerOrderComplete .order-number {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(59, 158, 255, 0.1);
  border: 1px solid rgba(59, 158, 255, 0.3);
  border-radius: 999px;
  color: var(--fhc-accent);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-weight: 700;
  margin: 1rem 0;
}

/* ============================================================
   14. RESPONSIVE FINAL
   ============================================================ */
@media (max-width: 575.98px) {
  body.fh-whmcs #order-standard_cart.fh-order-cart {
    padding: 0.25rem 0 1.5rem;
  }
  body.fh-whmcs .fh-cart-hero {
    padding: 0.5rem 0 1rem;
  }
  body.fh-whmcs .fh-cart-product__price { font-size: 1.45rem; }
  body.fh-whmcs .total-due-today .amt { font-size: 1.6rem; }
  body.fh-whmcs .fh-cart-summary,
  body.fh-whmcs #orderSummary,
  body.fh-whmcs .order-summary {
    padding: 1.05rem 1.15rem;
  }
}
