/* ============================================================
   ESPACE CLIENT & PARCOURS D'ACHAT
   Profil, commandes, détail d'une commande, favoris, panier, livraison, paiement.
   S'appuie sur les composants communs de ui.css (cartes, boutons, formulaires…).
   ============================================================ */

/* ---------- Mise en page : menu du compte + contenu ---------- */
.cl-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 992px) {
  .cl-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; }
}
.cl-main { min-width: 0; display: grid; gap: 20px; }

/* Menu du compte */
.cl-nav {
  background: var(--ab-canvas); border: 1px solid var(--lx-border); border-radius: var(--cl-radius);
  overflow: hidden;
}
@media (min-width: 992px) { .cl-nav { position: sticky; top: 96px; } }
.cl-user { display: flex; align-items: center; gap: 12px; padding: 18px; border-bottom: 1px solid var(--lx-border); }
.cl-user-txt { min-width: 0; }
.cl-user-name { font-size: 15px; font-weight: 700; color: var(--ab-ink); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-user-mail { font-size: 13px; color: var(--ab-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cl-avatar {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ab-primary-pale); color: var(--ab-primary-dark);
  font-size: 16px; font-weight: 700; letter-spacing: .5px;
}
.cl-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cl-avatar--xl { width: 88px; height: 88px; font-size: 28px; }
html[data-theme="dark"] .cl-avatar { color: #ffb3c1; }

.cl-nav-list { display: grid; gap: 2px; padding: 8px; }
.cl-nav-item {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px;
  border: 0; border-radius: 10px; background: none; font: inherit; font-size: 15px; font-weight: 600;
  color: var(--ab-body); text-decoration: none; text-align: left; cursor: pointer;
  transition: background .15s, color .15s;
}
.cl-nav-item i { font-size: 18px; width: 20px; text-align: center; color: var(--ab-muted); transition: color .15s; }
.cl-nav-item:hover { background: var(--ab-surface-soft); color: var(--ab-ink); }
.cl-nav-item.is-active { background: var(--cl-primary-bg); color: var(--ab-primary-dark); }
.cl-nav-item.is-active i { color: var(--ab-primary); }
html[data-theme="dark"] .cl-nav-item.is-active { color: #ff9fb1; }
.cl-nav-count {
  margin-left: auto; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 9999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ab-surface-strong); color: var(--ab-body); font-size: 12px; font-weight: 700;
}
.cl-nav-item.is-active .cl-nav-count { background: var(--ab-primary); color: #fff; }
.cl-nav-foot { padding: 8px; border-top: 1px solid var(--lx-border); }
.cl-nav-item--danger, .cl-nav-item--danger i { color: var(--ab-error); }
.cl-nav-item--danger:hover { background: var(--cl-danger-bg); color: var(--ab-error); }

/* Mobile / tablette : le menu devient une rangée d'onglets qui défile */
@media (max-width: 991.98px) {
  .cl-nav { border: 0; border-radius: 0; background: transparent; overflow: visible; }
  .cl-user, .cl-nav-foot { display: none; }
  .cl-nav-list {
    display: flex; gap: 8px; padding: 0 0 4px; overflow-x: auto; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .cl-nav-list::-webkit-scrollbar { display: none; }
  .cl-nav-item {
    flex: 0 0 auto; width: auto; padding: 0 14px; border: 1px solid var(--lx-border);
    border-radius: 9999px; font-size: 14px; background: var(--ab-canvas);
  }
  .cl-nav-item.is-active { border-color: var(--ab-primary); }
  .cl-nav-item i { width: auto; font-size: 16px; }
  .cl-nav-count { margin-left: 2px; }
}

/* ---------- Liste des commandes ---------- */
.cl-orders { display: grid; gap: 14px; }
.cl-order {
  background: var(--ab-canvas); border: 1px solid var(--lx-border); border-radius: var(--cl-radius);
  transition: border-color .15s, box-shadow .15s;
}
.cl-order:hover { border-color: var(--ab-hairline); box-shadow: 0 6px 20px rgba(0, 0, 0, .06); }
.cl-order-head {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--lx-border);
}
.cl-order-num { margin: 0; font-family: var(--font-main); font-size: 16px; font-weight: 700; color: var(--ab-ink); }
.cl-order-date { font-size: 13px; color: var(--ab-muted); }
.cl-order-body { display: flex; align-items: center; gap: 16px; padding: 16px 20px; }
.cl-thumbs { display: flex; flex-shrink: 0; }
.cl-thumb {
  width: 56px; height: 56px; flex-shrink: 0; border-radius: 12px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--ab-surface-soft); border: 2px solid var(--ab-canvas); color: var(--ab-muted); font-size: 20px;
}
.cl-thumbs .cl-thumb + .cl-thumb { margin-left: -14px; }
.cl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cl-thumb--more { background: var(--ab-surface-strong); color: var(--ab-ink); font-size: 14px; font-weight: 700; }
.cl-order-txt { min-width: 0; flex: 1; }
.cl-order-items { margin: 0; font-size: 15px; font-weight: 600; color: var(--ab-ink); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cl-order-meta { margin: 2px 0 0; font-size: 13px; color: var(--ab-muted); }
.cl-order-total { flex-shrink: 0; text-align: right; }
.cl-order-total-label { display: block; font-size: 12px; color: var(--ab-muted); }
.cl-order-total-value { font-size: 17px; font-weight: 700; color: var(--ab-ink); white-space: nowrap; }
.cl-order-foot {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 12px 20px 16px;
}
.cl-order-hint { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ab-muted); }
@media (max-width: 575.98px) {
  .cl-order-head, .cl-order-body { padding-left: 16px; padding-right: 16px; }
  .cl-order-foot { padding: 0 16px 16px; }
  .cl-order-body { flex-wrap: wrap; }
  .cl-order-total { width: 100%; display: flex; align-items: baseline; justify-content: space-between; text-align: left; }
  .cl-order-foot .cl-btn { width: 100%; }
}

/* ---------- Suivi d'une commande ---------- */
.cl-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cl-track-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 0 4px; }
.cl-track-step::before {
  content: ""; position: absolute; top: 19px; right: 50%; width: 100%; height: 3px;
  background: var(--ab-hairline); z-index: 0;
}
.cl-track-step:first-child::before { display: none; }
.cl-track-step.is-done::before, .cl-track-step.is-current::before { background: var(--ab-success); }
.cl-track-dot {
  position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ab-surface-strong); color: var(--ab-muted); font-size: 18px;
  border: 3px solid var(--ab-canvas);
}
.cl-track-step.is-done .cl-track-dot { background: var(--ab-success); color: #fff; }
.cl-track-step.is-current .cl-track-dot { background: var(--ab-canvas); color: var(--ab-success); box-shadow: inset 0 0 0 2px var(--ab-success); }
.cl-track-txt { display: grid; gap: 2px; }
.cl-track-label { font-size: 14px; font-weight: 700; color: var(--ab-ink); line-height: 1.3; }
.cl-track-step:not(.is-done):not(.is-current) .cl-track-label { color: var(--ab-muted); font-weight: 600; }
.cl-track-meta { font-size: 12px; color: var(--ab-muted); }
@media (max-width: 575.98px) {
  /* Téléphone : étapes à la verticale */
  .cl-track { grid-template-columns: 1fr; }
  .cl-track-step { flex-direction: row; align-items: flex-start; text-align: left; gap: 14px; padding: 0 0 18px; }
  .cl-track-step:last-child { padding-bottom: 0; }
  /* Trait vertical vers l'étape suivante (vert une fois l'étape franchie) */
  .cl-track-step::before { display: block; top: 40px; right: auto; left: 18px; width: 3px; height: calc(100% - 40px); background: var(--ab-hairline); }
  .cl-track-step:first-child::before { display: block; }
  .cl-track-step:last-child::before { display: none; }
  .cl-track-step.is-done::before { background: var(--ab-success); }
  .cl-track-step.is-current::before { background: var(--ab-hairline); }
  .cl-track-dot { flex-shrink: 0; }
  .cl-track-txt { padding-top: 8px; }
}

/* ---------- Lignes d'articles (commande, panier, récapitulatif) ---------- */
.cl-items { display: grid; }
.cl-item { display: flex; align-items: flex-start; gap: 14px; padding: 16px 0; border-top: 1px solid var(--lx-border); }
.cl-items > .cl-item:first-child { border-top: 0; padding-top: 0; }
.cl-items > .cl-item:last-child { padding-bottom: 0; }
.cl-item-img {
  width: 72px; height: 72px; flex-shrink: 0; border-radius: 12px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--ab-surface-soft); color: var(--ab-muted); font-size: 24px; text-decoration: none;
}
.cl-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cl-item-img--sm { width: 52px; height: 52px; border-radius: 10px; font-size: 18px; }
.cl-item-txt { flex: 1; min-width: 0; }
.cl-item-name { display: block; font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--ab-ink); text-decoration: none; overflow-wrap: anywhere; }
a.cl-item-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.cl-item-meta { margin-top: 2px; font-size: 13px; color: var(--ab-muted); }
.cl-item-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; }
.cl-item-actions .cl-btn { white-space: nowrap; }
.cl-item-price { flex-shrink: 0; text-align: right; font-size: 16px; font-weight: 700; color: var(--ab-ink); white-space: nowrap; }
.cl-item-price small { display: block; font-size: 12px; font-weight: 400; color: var(--ab-muted); }
.cl-item-stock { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--cl-warn); }
.cl-item-stock--out { color: var(--ab-error); }
.cl-remove {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; margin-left: -10px;
  border: 0; border-radius: 8px; background: none; font: inherit; font-size: 14px; font-weight: 600;
  color: var(--ab-muted); cursor: pointer; transition: background .15s, color .15s;
}
.cl-remove:hover { background: var(--cl-danger-bg); color: var(--ab-error); }
@media (max-width: 575.98px) {
  .cl-item-img { width: 64px; height: 64px; }
}

/* Groupe d'articles par boutique (panier) */
.cl-shop { padding: 0; }
.cl-shop-head {
  display: flex; align-items: center; gap: 10px; padding: 14px 20px;
  border-bottom: 1px solid var(--lx-border); font-size: 15px; font-weight: 700;
}
.cl-shop-logo {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--ab-surface-soft); border: 1px solid var(--lx-border); color: var(--ab-muted); font-size: 14px;
}
.cl-shop-logo img { width: 100%; height: 100%; object-fit: cover; }
.cl-shop-name { color: var(--ab-ink); text-decoration: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-shop-name:hover { text-decoration: underline; text-underline-offset: 3px; color: var(--ab-ink); }
.cl-shop-count { margin-left: auto; font-size: 13px; font-weight: 400; color: var(--ab-muted); white-space: nowrap; }
.cl-shop .cl-items { padding: 16px 20px 20px; }
@media (max-width: 575.98px) {
  .cl-shop-head { padding: 12px 16px; }
  .cl-shop .cl-items { padding: 14px 16px 16px; }
}

/* Sélecteur de quantité */
.cl-qty { display: inline-flex; align-items: center; border: 1px solid var(--ab-hairline); border-radius: 10px; overflow: hidden; }
.cl-qty-btn {
  width: 40px; height: 40px; border: 0; background: var(--ab-canvas); color: var(--ab-ink);
  display: flex; align-items: center; justify-content: center; font-size: 16px; cursor: pointer; transition: background .15s;
}
.cl-qty-btn:hover:not(:disabled) { background: var(--ab-surface-soft); }
.cl-qty-btn:disabled { color: var(--ab-hairline); cursor: not-allowed; }
.cl-qty-val {
  width: 44px; height: 40px; border: 0; border-left: 1px solid var(--ab-hairline); border-right: 1px solid var(--ab-hairline);
  background: var(--ab-canvas); color: var(--ab-ink); font: inherit; font-size: 15px; font-weight: 700; text-align: center;
  -moz-appearance: textfield;
}
.cl-qty-val::-webkit-inner-spin-button, .cl-qty-val::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.cl-qty-val:focus { outline: none; background: var(--ab-surface-soft); }

/* ---------- Mise en page achat : contenu + récapitulatif ---------- */
.cl-buy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.cl-buy-main { display: grid; gap: 16px; min-width: 0; }
@media (min-width: 992px) {
  .cl-buy { grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; }
  .cl-buy--narrow { grid-template-columns: minmax(0, 1fr) 360px; }
  .cl-summary { position: sticky; top: 96px; }
}

/* Récapitulatif */
.cl-summary { background: var(--ab-canvas); border: 1px solid var(--lx-border); border-radius: var(--cl-radius); box-shadow: 0 6px 24px rgba(0, 0, 0, .05); }
.cl-summary-head { padding: 18px 20px 0; }
.cl-summary-title { margin: 0; font-family: var(--font-main); font-size: 17px; font-weight: 700; color: var(--ab-ink); }
.cl-summary-body { padding: 16px 20px 20px; display: grid; gap: 16px; }
.cl-lines { display: grid; gap: 10px; margin: 0; }
.cl-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--ab-body); }
.cl-line dt { font-weight: 400; }
.cl-line dd { margin: 0; font-weight: 600; color: var(--ab-ink); text-align: right; white-space: nowrap; }
.cl-line--total { padding-top: 12px; border-top: 1px solid var(--lx-border); font-size: 16px; }
.cl-line--total dt { font-weight: 700; color: var(--ab-ink); }
.cl-line--total dd { font-size: 22px; font-weight: 700; letter-spacing: -.3px; }
.cl-line-ok { color: var(--ab-success) !important; }
.cl-summary-note { margin: 0; font-size: 13px; color: var(--ab-muted); line-height: 1.5; }
.cl-summary-items { display: grid; gap: 12px; max-height: 320px; overflow-y: auto; padding-right: 4px; }
.cl-summary-item { display: flex; align-items: center; gap: 12px; }
.cl-summary-item .cl-item-txt { font-size: 14px; }
.cl-summary-item .cl-item-name { font-size: 14px; }
.cl-summary-item .cl-item-price { font-size: 14px; }
.cl-qty-badge {
  position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ab-ink); color: var(--ab-canvas); font-size: 12px; font-weight: 700;
}
.cl-summary-item .cl-item-img { position: relative; overflow: visible; }
.cl-summary-item .cl-item-img img { border-radius: 10px; }

/* Garanties sous le bouton */
.cl-assure { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cl-assure li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--ab-body); line-height: 1.45; }
.cl-assure i { font-size: 16px; color: var(--ab-muted); flex-shrink: 0; }
.cl-paylogos { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.cl-paylogo {
  height: 32px; padding: 4px 10px; border-radius: 8px; background: #fff; border: 1px solid var(--lx-border);
  display: inline-flex; align-items: center;
}
.cl-paylogo img { height: 20px; width: auto; display: block; }

/* ---------- Étapes de l'achat ---------- */
.cl-steps { list-style: none; display: flex; align-items: center; gap: 8px; margin: 0 0 24px; padding: 0; overflow-x: auto; scrollbar-width: none; }
.cl-steps::-webkit-scrollbar { display: none; }
.cl-step { display: flex; align-items: center; gap: 8px; flex-shrink: 0; font-size: 14px; font-weight: 600; color: var(--ab-muted); }
.cl-step-num {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--ab-hairline); font-size: 13px; font-weight: 700; color: var(--ab-muted);
}
.cl-step a { color: inherit; text-decoration: none; }
.cl-step a:hover { color: var(--ab-ink); text-decoration: underline; text-underline-offset: 3px; }
.cl-step.is-done { color: var(--ab-body); }
.cl-step.is-done .cl-step-num { background: var(--ab-success); border-color: var(--ab-success); color: #fff; }
.cl-step.is-current { color: var(--ab-ink); }
.cl-step.is-current .cl-step-num { background: var(--ab-ink); border-color: var(--ab-ink); color: var(--ab-canvas); }
.cl-step-sep { flex: 0 0 32px; height: 2px; background: var(--ab-hairline); border-radius: 2px; }
.cl-step-sep.is-done { background: var(--ab-success); }
@media (max-width: 575.98px) {
  .cl-step-sep { flex-basis: 16px; }
  .cl-step:not(.is-current) .cl-step-txt { display: none; }
}

/* ---------- Choix de l'opérateur Mobile Money ---------- */
.cl-ops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border: 0; margin: 0; padding: 0; min-width: 0; }
@media (max-width: 479.98px) { .cl-ops { grid-template-columns: 1fr; } }
.cl-op { position: relative; display: block; margin: 0; cursor: pointer; }
.cl-op-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 112px; padding: 16px 12px; border: 2px solid var(--ab-hairline); border-radius: 14px;
  background: var(--ab-canvas); text-align: center; transition: border-color .15s, box-shadow .15s, background .15s;
}
.cl-op-logo { height: 40px; display: flex; align-items: center; justify-content: center; padding: 4px 10px; border-radius: 8px; background: #fff; }
.cl-op-logo img { height: 30px; width: auto; max-width: 120px; display: block; }
.cl-op-name { font-size: 14px; font-weight: 700; color: var(--ab-ink); }
.cl-op-check {
  position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--ab-hairline); background: var(--ab-canvas); color: transparent; font-size: 13px;
  transition: background .15s, border-color .15s, color .15s;
}
.cl-op:hover .cl-op-card { border-color: var(--ab-muted-soft); }
.cl-op input:checked + .cl-op-card { border-color: var(--ab-primary); box-shadow: 0 0 0 3px var(--cl-primary-bg); }
.cl-op input:checked + .cl-op-card .cl-op-check { background: var(--ab-primary); border-color: var(--ab-primary); color: #fff; }
.cl-op input:focus-visible + .cl-op-card { outline: 2px solid var(--ab-primary); outline-offset: 2px; }
@media (max-width: 479.98px) {
  .cl-op-card { flex-direction: row; justify-content: flex-start; min-height: 64px; padding: 10px 44px 10px 12px; }
  .cl-op-check { top: 50%; transform: translateY(-50%); right: 14px; }
}

/* Étapes numérotées « comment ça marche » */
.cl-howto { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: cl-howto; }
.cl-howto li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--ab-body); line-height: 1.5; counter-increment: cl-howto; }
.cl-howto li::before {
  content: counter(cl-howto); width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ab-surface-strong); color: var(--ab-ink); font-size: 13px; font-weight: 700;
}
.cl-howto strong { color: var(--ab-ink); }

/* Récap adresse */
.cl-address { margin: 0; font-style: normal; font-size: 15px; line-height: 1.6; color: var(--ab-body); }
.cl-address strong { display: block; color: var(--ab-ink); }

/* ---------- Profil ---------- */
.cl-photo { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cl-photo-actions { display: grid; gap: 8px; min-width: 0; }
.cl-file { position: relative; display: inline-flex; }
.cl-file input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.cl-file input[type="file"]:focus-visible + .cl-btn { outline: 2px solid var(--ab-primary); outline-offset: 2px; }
.cl-file-name { font-size: 13px; color: var(--ab-muted); overflow-wrap: anywhere; }

.cl-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cl-stat {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 14px;
  border: 1px solid var(--lx-border); background: var(--ab-canvas); color: var(--ab-ink); text-decoration: none;
  transition: border-color .15s;
}
.cl-stat:hover { border-color: var(--ab-ink); color: var(--ab-ink); }
.cl-stat-value { font-size: 22px; font-weight: 700; line-height: 1.2; }
.cl-stat-label { font-size: 13px; color: var(--ab-muted); }
@media (max-width: 479.98px) {
  .cl-stats { gap: 8px; }
  .cl-stat { padding: 12px; }
  .cl-stat-value { font-size: 19px; }
}

/* Quantité en cours d'enregistrement */
.cl-qty.is-busy { opacity: .55; pointer-events: none; }

/* Barre fixée en bas sur mobile (panier, livraison) : total + bouton toujours à portée de pouce */
.cl-sticky { display: none; }
@media (max-width: 991.98px) {
  .cl-sticky {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1020;
    display: flex; align-items: center; gap: 14px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--ab-canvas); border-top: 1px solid var(--lx-border); box-shadow: 0 -6px 20px rgba(0, 0, 0, .08);
  }
  .cl-sticky-total { display: grid; line-height: 1.25; flex-shrink: 0; }
  .cl-sticky-total span { font-size: 12px; color: var(--ab-muted); }
  .cl-sticky-total strong { font-size: 17px; font-weight: 700; color: var(--ab-ink); white-space: nowrap; }
  .cl-sticky .cl-btn { flex: 1; min-width: 0; }
  body:has(.cl-sticky) { padding-bottom: 76px; }
}

/* Opérateurs en mode WhatsApp : chaque carte est un bouton qui ouvre WhatsApp */
button.cl-op { width: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: inherit; }
button.cl-op:focus-visible { outline: none; }
button.cl-op:focus-visible .cl-op-card { outline: 2px solid var(--ab-primary); outline-offset: 2px; }
button.cl-op:hover .cl-op-card { border-color: #128c4b; box-shadow: 0 0 0 3px rgba(18, 140, 75, .12); }
button.cl-op:active .cl-op-card { transform: scale(.98); }
.cl-op-wa { position: absolute; top: 10px; right: 12px; color: #128c4b; font-size: 18px; line-height: 1; }
@media (max-width: 479.98px) {
  .cl-op-wa { top: 50%; transform: translateY(-50%); right: 16px; font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { button.cl-op:active .cl-op-card { transform: none; } }
