/* === Cartbar fixe en bas === */
.scqs-cartbar {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: max(10px, env(safe-area-inset-bottom, 10px));
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #f9fafb;
  border-radius: 999px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 9998;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.5);
}

/* Centrer la cartbar sur les écrans plus larges */
@media (min-width: 768px) {
  .scqs-cartbar {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    min-width: 320px;
    max-width: 480px;
  }
}

/* RTL : inverser la direction */
.scqs-shop-wrapper.scqs-rtl ~ .scqs-cartbar {
  direction: rtl;
}

/* Contenu total */
.scqs-cartbar-total {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
}

.scqs-cartbar-label {
  font-size: 12px;
  color: #9ca3af;
  white-space: nowrap;
}

.scqs-cartbar-label::before {
  content: "🧵 ";
}

.scqs-cartbar-amount {
  font-size: 14px;
  font-weight: 600;
}

/* Bouton "Voir le panier / Confirmer" */
.scqs-cartbar-button {
  border: none;
  border-radius: 999px;
  padding: 7px 16px;
  background: #f97316;
  color: #111827;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}

.scqs-cartbar-button::before {
  content: "🧺";
}

.scqs-cartbar-button:hover {
  filter: brightness(1.05);
}

/* Mobile : un peu plus gros et confortable au doigt */
@media (max-width: 640px) {
  .scqs-cartbar {
    padding: 9px 14px;
    gap: 10px;
  }

  .scqs-cartbar-label {
    font-size: 11px;
  }

  .scqs-cartbar-amount {
    font-size: 14px;
  }

  .scqs-cartbar-button {
    padding: 8px 18px;
    font-size: 13px;
  }
}

/* === Forcer la devise en "DA" dans la barre panier === */

/* 1) Cacher le symbole monétaire WooCommerce (دج) dans la cartbar */
#scqs_cartbar_total .woocommerce-Price-currencySymbol {
  display: none !important;
}

/* 2) Ajouter "DA" après le montant total de la cartbar */
#scqs_cartbar_total::after {
  content: " DA";
  margin-left: 4px;
  font-size: 0.9em;
}
