/* ─────────────────────────────────────────────────
   MG Cart Drawer — CSS
   Branding MettaGymFit : noir #111, or #D4AF37, bleu #B7D7E8
───────────────────────────────────────────────── */
:root {
  --mgcd-gold:    #D4AF37;
  --mgcd-blue:    #B7D7E8;
  --mgcd-black:   #111111;
  --mgcd-cream:   #F8F8F6;
  --mgcd-text:    #3d3d3d;
  --mgcd-grey:    #D9D9D9;
  --mgcd-w:       420px;   /* largeur du drawer */
  --mgcd-radius:  28px;
  --mgcd-speed:   .32s;
}

/* ════════════════════════════════════════
   BOUTON HEADER
════════════════════════════════════════ */
.mgcd-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: inherit;
  font-family: inherit;
}

.mgcd-trigger-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(17,17,17,.14);
  background: #fff;
  font-size: 14px;
  font-weight: 800;
  color: var(--mgcd-black);
  transition: background .2s, border-color .2s, transform .2s;
}

.mgcd-trigger:hover .mgcd-trigger-inner {
  background: var(--mgcd-black);
  color: #fff;
  border-color: var(--mgcd-black);
  transform: translateY(-2px);
}

.mgcd-trigger[aria-expanded="true"] .mgcd-trigger-inner {
  background: var(--mgcd-black);
  color: #fff;
  border-color: var(--mgcd-black);
}

.mgcd-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.mgcd-trigger-label {
  white-space: nowrap;
}

/* Badge */
.mgcd-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e24b4a;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  font-family: Inter, Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid #fff;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}

.mgcd-badge.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Animation "pulse" après ajout au panier */
@keyframes mgcd-pulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.4); }
  100% { transform: scale(1); }
}
.mgcd-badge.pulse { animation: mgcd-pulse .4s ease; }

/* ════════════════════════════════════════
   OVERLAY
════════════════════════════════════════ */
.mgcd-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17,17,17,.55);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--mgcd-speed) ease, visibility var(--mgcd-speed) ease;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.mgcd-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* ════════════════════════════════════════
   DRAWER
════════════════════════════════════════ */
.mgcd-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--mgcd-w);
  max-width: 100vw;
  background: var(--mgcd-cream);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--mgcd-speed) cubic-bezier(.4,0,.2,1);
  box-shadow: -24px 0 80px rgba(0,0,0,.16);
}

.mgcd-drawer.is-open {
  transform: translateX(0);
}

/* ── HEADER ── */
.mgcd-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 20px;
  border-bottom: 1px solid rgba(17,17,17,.08);
  background: #fff;
  flex-shrink: 0;
}

.mgcd-drawer-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mgcd-drawer-title-wrap svg {
  width: 22px;
  height: 22px;
  color: var(--mgcd-black);
  flex-shrink: 0;
}

.mgcd-drawer-title-wrap h2 {
  margin: 0 !important;
  font-size: 20px !important;
  font-weight: 950 !important;
  letter-spacing: -.04em;
  color: var(--mgcd-black) !important;
  line-height: 1 !important;
}

.mgcd-drawer-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--mgcd-black);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.mgcd-close {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--mgcd-cream);
  border-radius: 50%;
  cursor: pointer;
  color: var(--mgcd-black);
  transition: background .2s;
  flex-shrink: 0;
}

.mgcd-close:hover { background: var(--mgcd-grey); }

.mgcd-close svg { width: 16px; height: 16px; }

/* ── BARRE LIVRAISON GRATUITE ── */
.mgcd-shipping-bar {
  padding: 14px 24px 10px;
  background: #fff;
  border-bottom: 1px solid rgba(17,17,17,.06);
  flex-shrink: 0;
}

.mgcd-shipping-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--mgcd-text);
  margin-bottom: 8px;
}

.mgcd-shipping-track {
  height: 5px;
  background: rgba(17,17,17,.1);
  border-radius: 999px;
  overflow: hidden;
}

.mgcd-shipping-fill {
  height: 100%;
  background: var(--mgcd-gold);
  border-radius: 999px;
  transition: width .4s ease;
}

/* ── BODY — liste des items ── */
.mgcd-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  scroll-behavior: smooth;
}

/* Scrollbar discrète */
.mgcd-drawer-body::-webkit-scrollbar { width: 4px; }
.mgcd-drawer-body::-webkit-scrollbar-track { background: transparent; }
.mgcd-drawer-body::-webkit-scrollbar-thumb { background: var(--mgcd-grey); border-radius: 999px; }

/* ── ITEM ── */
.mgcd-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  background: #fff;
  border-radius: 20px;
  margin-bottom: 10px;
  transition: opacity .3s, transform .3s;
}

.mgcd-item.is-removing {
  opacity: 0;
  transform: translateX(40px);
}

.mgcd-item-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  background: var(--mgcd-cream);
}

.mgcd-item-img-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  background: var(--mgcd-cream);
  flex-shrink: 0;
}

.mgcd-item-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.mgcd-item-name {
  font-size: 14px;
  font-weight: 900;
  color: var(--mgcd-black);
  text-decoration: none;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mgcd-item-name:hover { color: var(--mgcd-gold); }

.mgcd-item-price {
  font-size: 13px;
  color: #888;
  font-weight: 700;
}

.mgcd-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

/* Contrôle quantité */
.mgcd-qty-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--mgcd-cream);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(17,17,17,.1);
}

.mgcd-qty-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  color: var(--mgcd-black);
  line-height: 1;
  transition: background .15s;
}

.mgcd-qty-btn:hover { background: rgba(17,17,17,.07); }
.mgcd-qty-btn:disabled { opacity: .35; cursor: default; }

.mgcd-qty-val {
  min-width: 28px;
  text-align: center;
  font-size: 14px;
  font-weight: 900;
  color: var(--mgcd-black);
  line-height: 32px;
}

/* Sous-total item */
.mgcd-item-subtotal {
  font-size: 15px;
  font-weight: 950;
  color: var(--mgcd-black);
  white-space: nowrap;
}

/* Bouton supprimer */
.mgcd-remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #aaa;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 0;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: color .15s;
  text-decoration: none;
}

.mgcd-remove-btn:hover { color: #e24b4a; }

/* ── ÉTAT VIDE ── */
.mgcd-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
  height: 100%;
  gap: 16px;
}

.mgcd-empty-icon {
  width: 64px;
  height: 64px;
  color: var(--mgcd-grey);
}

.mgcd-empty-text {
  font-size: 18px;
  font-weight: 900;
  color: var(--mgcd-black);
  letter-spacing: -.03em;
}

.mgcd-empty-cta {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--mgcd-black);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 950;
  font-size: 14px;
  transition: background .2s, transform .2s;
}

.mgcd-empty-cta:hover {
  background: var(--mgcd-gold);
  color: var(--mgcd-black) !important;
  transform: translateY(-2px);
}

/* ── LOADER ── */
.mgcd-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
}

.mgcd-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(17,17,17,.1);
  border-top-color: var(--mgcd-gold);
  border-radius: 50%;
  animation: mgcd-spin .7s linear infinite;
}

@keyframes mgcd-spin { to { transform: rotate(360deg); } }

/* ── FOOTER ── */
.mgcd-drawer-footer {
  padding: 20px 24px 24px;
  background: #fff;
  border-top: 1px solid rgba(17,17,17,.08);
  flex-shrink: 0;
}

.mgcd-subtotal-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}

.mgcd-subtotal-row span {
  font-size: 14px;
  font-weight: 700;
  color: var(--mgcd-text);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.mgcd-subtotal-amount {
  font-size: 26px;
  font-weight: 950;
  color: var(--mgcd-black);
  letter-spacing: -.04em;
}

.mgcd-footer-note {
  font-size: 12px;
  color: #aaa;
  margin: 0 0 18px;
}

.mgcd-footer-btns {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 10px;
}

/* Bouton "Voir le panier" — contour */
.mgcd-btn-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(17,17,17,.2);
  background: transparent;
  color: var(--mgcd-black) !important;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none !important;
  text-align: center;
  transition: background .2s, border-color .2s;
  white-space: nowrap;
}

.mgcd-btn-cart:hover {
  background: var(--mgcd-cream);
  border-color: var(--mgcd-black);
}

/* Bouton "Commander" — plein or */
.mgcd-btn-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--mgcd-gold);
  color: var(--mgcd-black) !important;
  font-size: 14px;
  font-weight: 950;
  text-decoration: none !important;
  text-align: center;
  transition: background .2s, transform .2s;
}

.mgcd-btn-checkout:hover {
  background: var(--mgcd-black);
  color: #fff !important;
  transform: translateY(-2px);
}

/* ════════════════════════════════════════
   RESPONSIVE MOBILE
════════════════════════════════════════ */
@media (max-width: 480px) {
  .mgcd-drawer {
    width: 100vw;
    border-radius: 0;
  }

  .mgcd-footer-btns {
    grid-template-columns: 1fr;
  }
}


/* ════════════════════════════════════════
   BOUTON COMPTE
════════════════════════════════════════ */

/* ── Wrapper positionné ── */
.mgcd-account-wrap {
  position: relative;
  display: inline-block;
  z-index: 99998;  /* Juste sous le dropdown */
}

/* ── Bouton commun ── */
.mgcd-account-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
}

.mgcd-account-btn-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(17,17,17,.14);
  background: #fff;
  font-size: 14px;
  font-weight: 800;
  color: var(--mgcd-black);
  transition: background .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}

.mgcd-account-btn:hover .mgcd-account-btn-inner,
.mgcd-account-btn[aria-expanded="true"] .mgcd-account-btn-inner {
  background: var(--mgcd-black);
  color: #fff;
  border-color: var(--mgcd-black);
  transform: translateY(-2px);
}

/* ── Avatar initiales ── */
.mgcd-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--mgcd-black);
  color: var(--mgcd-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .02em;
  flex-shrink: 0;
  font-family: Inter, Arial, sans-serif;
}

.mgcd-account-btn:hover .mgcd-avatar,
.mgcd-account-btn[aria-expanded="true"] .mgcd-avatar {
  background: var(--mgcd-gold);
  color: var(--mgcd-black);
}

.mgcd-avatar-lg {
  width: 44px;
  height: 44px;
  font-size: 16px;
  flex-shrink: 0;
}

.mgcd-account-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Chevron tourne quand ouvert */
.mgcd-account-btn[aria-expanded="true"] .mgcd-chevron {
  transform: rotate(180deg);
}

/* ── Dropdown ── */
.mgcd-account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 270px;
  background: #fff;
  border-radius: 22px;
  border: 1px solid rgba(17,17,17,.08);
  box-shadow: 0 20px 60px rgba(0,0,0,.18), 0 4px 16px rgba(0,0,0,.1);
  overflow: hidden;
  z-index: 99999;
  /* L'état ouvert/fermé est géré par le checkbox hack en bas du fichier */
}

/* Entête utilisateur */
.mgcd-dd-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(17,17,17,.07);
  background: var(--mgcd-cream);
}

.mgcd-dd-user-info {
  min-width: 0;
  flex: 1;
}

.mgcd-dd-user-info strong {
  display: block;
  font-size: 14px;
  font-weight: 900;
  color: var(--mgcd-black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mgcd-dd-user-info > span:not(.mgcd-dd-status) {
  display: block;
  font-size: 12px;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.mgcd-dd-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #2d8a4e;
}

.mgcd-dd-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2d8a4e;
  flex-shrink: 0;
}

/* Résumé commandes */
.mgcd-dd-orders-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(212,175,55,.08);
  border-bottom: 1px solid rgba(17,17,17,.06);
  font-size: 12px;
  color: var(--mgcd-text);
}

.mgcd-dd-orders-summary a {
  margin-left: auto;
  color: var(--mgcd-gold) !important;
  font-weight: 900;
  text-decoration: none !important;
  font-size: 12px;
  white-space: nowrap;
}

.mgcd-dd-orders-summary a:hover { text-decoration: underline !important; }

/* Liens navigation */
.mgcd-dd-links {
  padding: 8px;
}

.mgcd-dd-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--mgcd-black) !important;
  text-decoration: none !important;
  transition: background .15s;
}

.mgcd-dd-link:hover {
  background: var(--mgcd-cream);
  color: var(--mgcd-black) !important;
}

.mgcd-dd-link .ti {
  font-size: 16px;
  color: #888;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.mgcd-dd-link:hover .ti { color: var(--mgcd-gold); }

/* Footer déconnexion */
.mgcd-dd-footer {
  padding: 8px 8px 10px;
  border-top: 1px solid rgba(17,17,17,.07);
}

.mgcd-dd-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  color: #e24b4a !important;
  text-decoration: none !important;
  transition: background .15s;
  width: 100%;
}

.mgcd-dd-logout:hover {
  background: #fef2f2;
  color: #c0392b !important;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .mgcd-account-dropdown {
    right: -10px;
    width: calc(100vw - 20px);
    border-radius: 18px;
    z-index: 99999 !important;
    position: fixed !important;    /* fixed sur très petit écran pour éviter les overflow */
    top: auto !important;
    bottom: 0 !important;
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    border-radius: 24px 24px 0 0 !important;
  }
}

/* ════════════════════════════════════════
   RESPONSIVE — Bouton compte mobile
   Sur mobile : icône seule, pas de texte
════════════════════════════════════════ */
@media (max-width: 768px) {

    /* Cache le nom et le chevron sur mobile */
    .mgcd-account-name,
    .mgcd-account-btn .mgcd-chevron {
        display: none !important;
    }

    /* Réduit le padding pour une icône compacte */
    .mgcd-account-btn .mgcd-account-btn-inner {
        padding: 9px 12px !important;
        gap: 0 !important;
    }

    /* Avatar légèrement plus petit */
    .mgcd-account-btn .mgcd-avatar {
        width: 26px !important;
        height: 26px !important;
        font-size: 10px !important;
    }

    /* Bouton Connexion : cache le texte, icône seule */
    .mgcd-account-login-label {
        display: none !important;
    }

    .mgcd-account-guest .mgcd-account-btn-inner {
        padding: 9px 12px !important;
        gap: 0 !important;
    }

    /* Dropdown : pleine largeur, aligné à droite */
    .mgcd-account-dropdown {
        right: -8px !important;
        width: calc(100vw - 24px) !important;
        max-width: 300px !important;
    }

    /* Bouton panier compact aussi sur mobile */
    .mgcd-trigger-label {
        display: none !important;
    }

    .mgcd-trigger-inner {
        padding: 9px 12px !important;
    }
}

/* Extra petit (< 480px) */
@media (max-width: 480px) {
    .mgcd-account-dropdown {
        right: -12px !important;
        width: calc(100vw - 20px) !important;
        max-width: none !important;
    }
}

/* ════════════════════════════════════════
   MOBILE STRICT — avatar seul
   Surcharge avec !important pour battre
   le thème Elementor/Hello/Astra
════════════════════════════════════════ */
@media (max-width: 1024px) {

    /* Cache texte + chevron sur tablette/mobile */
    .mgcd-account-name          { display: none !important; }
    .mgcd-account-btn .mgcd-chevron { display: none !important; }
    .mgcd-account-login-label   { display: none !important; }
    .mgcd-trigger-label         { display: none !important; }

    /* Bouton carré compact — juste l'avatar/icône */
    .mgcd-account-btn-inner,
    .mgcd-trigger-inner {
        padding: 8px !important;
        gap: 0 !important;
        min-width: 0 !important;
        width: auto !important;
    }

    /* Avatar taille fixe */
    .mgcd-avatar {
        width: 32px !important;
        height: 32px !important;
        font-size: 12px !important;
        flex-shrink: 0 !important;
    }

    /* Icône panier */
    .mgcd-icon {
        width: 20px !important;
        height: 20px !important;
    }

    /* Badge repositionné */
    .mgcd-badge {
        top: -4px !important;
        right: -4px !important;
    }
}


    /* Animation depuis le bas */
    .mgcd-account-dropdown {
        transform: translateY(100%) !important;
        transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .3s ease, visibility .3s ease !important;
    }

    .mgcd-account-dropdown.is-open {
        transform: translateY(0) !important;
    }
}



  /* Le wrapper doit être static pour que fixed fonctionne */
  .mgcd-account-wrap {
    position: static !important;
  }

  /* Overlay sombre */
  .mgcd-acc-checkbox:checked ~ .mgcd-account-dropdown::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(17,17,17,.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: -1;
  }

  /* Bottom sheet depuis le bas */
  .mgcd-account-wrap .mgcd-account-dropdown {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 24px 24px 0 0 !important;
    z-index: 99999 !important;
    transform: translateY(100%) !important;
    padding-bottom: env(safe-area-inset-bottom, 16px);
  }

  .mgcd-acc-checkbox:checked ~ .mgcd-account-dropdown {
    transform: translateY(0) !important;
  }
}


/* ════════════════════════════════════════
   ACCOUNT DROPDOWN — styles de base
   Le positionnement ouvert/fermé est géré
   par account.js via style inline
════════════════════════════════════════ */

/* Overlay mobile */
.mgcd-acc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17,17,17,.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 999998;
}

/* Dropdown — état de base (caché) */
.mgcd-account-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 270px;
  background: #fff;
  border-radius: 22px;
  border: 1px solid rgba(17,17,17,.08);
  box-shadow: 0 24px 70px rgba(0,0,0,.18), 0 4px 16px rgba(0,0,0,.1);
  overflow: hidden;
  z-index: 999999;
}

/* Bouton fermer interne (visible sur mobile) */
.mgcd-dd-close-btn {
  display: none;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: var(--mgcd-cream);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--mgcd-black);
  flex-shrink: 0;
  margin-left: auto;
  padding: 0;
}

@media (max-width: 768px) {
  .mgcd-dd-close-btn {
    display: flex;
  }

  /* Header avec bouton fermer */
  .mgcd-dd-header {
    position: relative;
    padding-right: 50px;
  }
}

/* ════════════════════════════════════════
   RESET COMPLET — écrase le thème
   border: 1px solid #c36 sur les boutons
════════════════════════════════════════ */

/* Supprime le border rose/rouge du thème sur NOS boutons */
button.mgcd-account-btn,
button.mgcd-account-btn:not(:disabled),
button.mgcd-trigger,
button.mgcd-trigger:not(:disabled),
button.mgcd-close,
button.mgcd-close:not(:disabled),
button.mgcd-qty-btn,
button.mgcd-qty-btn:not(:disabled),
button.mgcd-remove-btn,
button.mgcd-remove-btn:not(:disabled),
button.mgcd-dd-close-btn,
button.mgcd-dd-close-btn:not(:disabled) {
  border: none !important;
  border-color: transparent !important;
  outline: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  box-shadow: none !important;
  color: inherit !important;
  background: none !important;
}

/* Rétablit nos propres styles sur le bouton trigger */
button.mgcd-trigger .mgcd-trigger-inner {
  border: 1.5px solid rgba(17,17,17,.14) !important;
  background: #fff !important;
  color: #111111 !important;
}

button.mgcd-trigger:hover .mgcd-trigger-inner,
button.mgcd-trigger[aria-expanded="true"] .mgcd-trigger-inner {
  background: #111111 !important;
  color: #fff !important;
  border-color: #111111 !important;
}

/* Bouton compte */
button.mgcd-account-btn .mgcd-account-btn-inner {
  border: 1.5px solid rgba(17,17,17,.14) !important;
  background: #fff !important;
  color: #111111 !important;
  border-radius: 999px !important;
  padding: 10px 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

button.mgcd-account-btn:hover .mgcd-account-btn-inner {
  background: #111111 !important;
  color: #fff !important;
  border-color: #111111 !important;
}

/* Dropdown porté dans body — styles de base */
#mgcd-account-dropdown-portal {
  font-family: Inter, Arial, sans-serif !important;
  color: #111111 !important;
  background: #ffffff !important;
  border: none !important;
  box-shadow: 0 24px 70px rgba(0,0,0,.2) !important;
}

#mgcd-account-dropdown-portal * {
  box-sizing: border-box !important;
}

#mgcd-account-dropdown-portal .mgcd-dd-header {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 18px !important;
  background: #F8F8F6 !important;
  border-bottom: 1px solid rgba(17,17,17,.07) !important;
}

#mgcd-account-dropdown-portal .mgcd-dd-user-info strong {
  display: block !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  color: #111111 !important;
}

#mgcd-account-dropdown-portal .mgcd-dd-user-info span {
  display: block !important;
  font-size: 12px !important;
  color: #888 !important;
}

#mgcd-account-dropdown-portal .mgcd-dd-links {
  padding: 8px !important;
}

#mgcd-account-dropdown-portal .mgcd-dd-link {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 11px 13px !important;
  border-radius: 14px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #111111 !important;
  text-decoration: none !important;
  background: transparent !important;
  transition: background .15s !important;
}

#mgcd-account-dropdown-portal .mgcd-dd-link:hover {
  background: #F8F8F6 !important;
}

#mgcd-account-dropdown-portal .mgcd-dd-orders-summary {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 18px !important;
  background: rgba(212,175,55,.08) !important;
  border-bottom: 1px solid rgba(17,17,17,.06) !important;
  font-size: 12px !important;
  color: #3d3d3d !important;
}

#mgcd-account-dropdown-portal .mgcd-dd-orders-summary a {
  margin-left: auto !important;
  color: #D4AF37 !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

#mgcd-account-dropdown-portal .mgcd-dd-footer {
  padding: 8px 8px 12px !important;
  border-top: 1px solid rgba(17,17,17,.07) !important;
}

#mgcd-account-dropdown-portal .mgcd-dd-logout {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 11px 13px !important;
  border-radius: 14px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #e24b4a !important;
  text-decoration: none !important;
  background: transparent !important;
  transition: background .15s !important;
}

#mgcd-account-dropdown-portal .mgcd-dd-logout:hover {
  background: #fef2f2 !important;
}

/* Bouton fermer mobile dans le portal */
#mgcd-account-dropdown-portal .mgcd-dd-close-btn {
  width: 34px !important;
  height: 34px !important;
  border: none !important;
  border-radius: 50% !important;
  background: #F8F8F6 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #111111 !important;
  flex-shrink: 0 !important;
  margin-left: auto !important;
  padding: 0 !important;
}

/* Avatar dans le portal */
#mgcd-account-dropdown-portal .mgcd-avatar {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: #111111 !important;
  color: #D4AF37 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  flex-shrink: 0 !important;
}

/* Status dot */
#mgcd-account-dropdown-portal .mgcd-dd-status {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  margin-top: 5px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #2d8a4e !important;
}

#mgcd-account-dropdown-portal .mgcd-dd-status-dot {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: #2d8a4e !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
}

/* Icônes Tabler dans le portal */
#mgcd-account-dropdown-portal .ti {
  font-size: 16px !important;
  color: #888 !important;
  flex-shrink: 0 !important;
  width: 20px !important;
  text-align: center !important;
}
