/*
 * WP Gift Card - fiche produit d'une carte cadeau (1.1.1, utilisateur 2026-11-05).
 * - Bouton « Enregistrer la personnalisation » : fond noir, texte blanc en gras (plus visible).
 * - Montant libre : curseur de MIN a MAX au lieu du champ texte (plus de montant hors fourchette).
 * - Coche verte « Personnalisation enregistree » sous le bouton une fois enregistree.
 */
.wpgc-product .product-customization button[name="submitCustomizedData"] {
  background: #111111 !important;
  border-color: #111111 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  letter-spacing: .04em;
  padding-top: 14px;
  padding-bottom: 14px;
}
.wpgc-product .product-customization button[name="submitCustomizedData"]:is(:hover, :focus-visible) {
  background: #333333 !important;
  border-color: #333333 !important;
  color: #ffffff !important;
}

/* Curseur du montant libre */
.wpgc-range {
  margin: 6px 0 4px;
}
.wpgc-range__value {
  display: block;
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}
.wpgc-range input[type="range"] {
  width: 100%;
  accent-color: #111111;
  cursor: pointer;
}
.wpgc-range__bounds {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  opacity: .7;
}
/* Le champ texte d'origine reste dans le formulaire (il porte la valeur), cache. */
.wpgc-range-field textarea.product-message,
.wpgc-range-field .clearfix small {
  display: none !important;
}

/* Coche verte : personnalisation enregistree */
.wpgc-saved {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #1e7b3a;
}
.wpgc-saved[hidden] {
  display: none;
}
.wpgc-saved::before {
  content: "\2713";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1e7b3a;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

/* « La carte cadeau s'achete seule, dans une commande separee. » : en evidence dans la description courte
   (utilisateur, 2026-11-17). */
.wpgc-alone {
  margin: 14px 0 0;
  padding: 10px 14px;
  border-left: 4px solid var(--wp-accent, #F15A29);
  background: #f4f4f4;
  color: #111111;
  font-size: 15px;
  line-height: 1.4;
}
.wpgc-alone strong { font-weight: 700; }
