/* ============================================================
   MOH BEATMAKER - AMÉLIORATIONS DU PANIER
   ============================================================ */

/* Sélecteur de licence sous le titre de chaque prod */
.moh-cart-license-switcher {
  margin-top: 10px;
  padding: 8px 12px;
  background: #141414;
  border-radius: 6px;
  border: 1px solid #262626;
  display: inline-block;
  max-width: 100%;
}

.moh-switcher-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  margin-bottom: 6px;
  font-weight: 600;
}

.moh-switcher-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.moh-license-pill {
  appearance: none;
  background: #202020;
  border: 1px solid #333333;
  color: #e0e0e0;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease-in-out;
  line-height: 1.2;
}

.moh-license-pill:hover:not(:disabled) {
  border-color: #c8a84b;
  color: #ffffff;
  background: #2a2a2a;
  transform: translateY(-1px);
}

.moh-license-pill.is-active,
.moh-license-pill:disabled {
  background: #c8a84b !important;
  color: #0d0d0d !important;
  border-color: #c8a84b !important;
  font-weight: 700;
  cursor: default;
  opacity: 1 !important;
}

.moh-license-pill.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

.moh-license-pill .pill-price {
  opacity: 0.85;
  font-weight: 600;
}

.moh-switcher-feedback {
  font-size: 11px;
  margin-top: 4px;
  color: #c8a84b;
  font-weight: 600;
}

/* Verrouillage strict de la quantité à 1 */
.woocommerce-cart-form .product-quantity input.qty,
.woocommerce-cart-form .product-quantity input[type="number"],
.woocommerce-cart-form .product-quantity .quantity button,
.woocommerce-cart-form .product-quantity .quantity input {
  display: none !important;
}

.woocommerce-cart-form .product-quantity {
  text-align: center;
}

.moh-locked-qty {
  display: inline-block;
  padding: 4px 10px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  color: #888;
  font-weight: 700;
  font-size: 12px;
}

/* Encart d'incitation à la réduction cliquable */
.moh-discount-notice--link {
  display: block;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.moh-discount-notice--link:hover {
  transform: translateY(-2px);
  border-color: #c8a84b !important;
  box-shadow: 0 4px 14px rgba(200, 168, 75, 0.15);
}

.moh-discount-notice-cta {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #c8a84b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Overlay spinner sur le tableau du panier pendant le changement de licence */
.woocommerce-cart-form {
  position: relative;
}
.woocommerce-cart-form.moh-cart-loading::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.7);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 40;
  border-radius: 10px;
}
.woocommerce-cart-form.moh-cart-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 38px;
  height: 38px;
  margin-top: -19px;
  margin-left: -19px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: #c8a84b;
  border-right-color: #c8a84b;
  border-radius: 50%;
  animation: moh-cart-spin 0.65s linear infinite;
  z-index: 41;
}
@keyframes moh-cart-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
