/* ═══════════════════════════════════════════════════════════
   CONNEC7E - PERSONNALISATION PRODUIT
   Plugin: Connec7e Product Customization
   ═══════════════════════════════════════════════════════════ */

/* Conteneur principal - Version allégée sans bordure */
.c7e-customization-wrapper {
  position: relative;
  margin: 25px 0;
  display: block;
  clear: both;
  width: 100%;
}

/* Contenu */
.c7e-customization-wrapper .c7e-customization-section {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ─────────────────────────────────────────────────────────── */
/* Groupes d'options                                           */
/* ─────────────────────────────────────────────────────────── */

.c7e-option-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Labels des options - Sans radio visible */
.c7e-option-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  padding: 14px 16px;
  border-radius: 6px;
  transition: all 0.25s ease;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.15);
  color: #fff;
}

.c7e-option-label:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateX(3px);
}

/* Masquer visuellement les boutons radio mais garder l'accessibilité */
.c7e-option-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Label actif (radio checked) - Effet visuel clair */
.c7e-option-label:has(input[type="radio"]:checked) {
  background: rgba(245, 166, 35, 0.2);
  border-color: rgba(245, 166, 35, 0.5);
  box-shadow: 0 0 15px rgba(245, 166, 35, 0.3);
  font-weight: 600;
}

/* Prix personnalisation */
.c7e-option-label .c7e-custom-price {
  color: #f5a623;
  font-weight: 700;
  font-size: 0.95em;
  font-style: normal;
  white-space: nowrap;
}

/* ─────────────────────────────────────────────────────────── */
/* Contenu des options (select + input)                        */
/* ─────────────────────────────────────────────────────────── */

.c7e-option-content {
  padding-left: 0;
  padding-top: 10px;
  display: none; /* Masqué par défaut */
}

/* Afficher uniquement le contenu de l'option cochée */
.c7e-option-label:has(input[type="radio"]:checked) + .c7e-option-content {
  display: block;
}

/* Select de répliques - Style amélioré */
#c7e_selected_replica {
  width: 100%;
  max-width: 500px;
  padding: 12px 16px;
  border: 2px solid rgba(255, 255, 255, 0.27);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  cursor: pointer;
}

#c7e_selected_replica:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.5);
}

#c7e_selected_replica:focus {
  outline: none;
  border-color: #f5a623;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
  background: rgba(0, 0, 0, 0.6);
}

/* Options du select - Meilleure séparation visuelle */
#c7e_selected_replica option {
  background: #1a1a1a;
  color: #fff;
  padding: 12px;
  line-height: 1.6;
  font-size: 14px;
}

/* Champ de texte personnalisé */
#c7e_custom_replica_text {
  width: 100%;
  max-width: 600px;
  padding: 12px 16px;
  border: 2px solid rgba(255, 255, 255, 0.27);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 400;
  font-family: inherit;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

#c7e_custom_replica_text::placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

#c7e_custom_replica_text:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.5);
}

#c7e_custom_replica_text:focus {
  outline: none;
  border-color: #f5a623;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
  background: rgba(0, 0, 0, 0.6);
}

/* Compteur de caractères */
.c7e-char-counter {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

#c7e-char-count {
  font-weight: 700;
  color: #27ae60;
  transition: color 0.2s ease;
}

/* États désactivés */
#c7e_selected_replica:disabled,
#c7e_custom_replica_text:disabled {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.1);
  cursor: not-allowed;
  opacity: 0.5;
}

/* ─────────────────────────────────────────────────────────── */
/* RESPONSIVE                                                   */
/* ─────────────────────────────────────────────────────────── */

/* Tablette */
@media (max-width: 980px) {
  .c7e-customization-wrapper {
    padding: 20px;
    margin: 20px 0;
  }
  
  .c7e-option-label {
    font-size: 15px;
    padding: 12px 14px;
  }
  
  #c7e_selected_replica,
  #c7e_custom_replica_text {
    font-size: 14px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .c7e-customization-wrapper {
    padding: 18px;
    margin: 18px 0;
  }
  
  .c7e-customization-section {
    gap: 15px;
  }
  
  .c7e-option-label {
    font-size: 14px;
    padding: 12px 14px;
    gap: 10px;
    /* Garder le texte à droite sur mobile */
    flex-direction: row;
    align-items: center;
  }
  
  .c7e-option-content {
    padding-left: 0;
  }
  
  #c7e_selected_replica,
  #c7e_custom_replica_text {
    max-width: 100%;
    font-size: 14px;
    padding: 10px 14px;
  }
  
  .c7e-char-counter {
    font-size: 12px;
  }
}

/* Très petit mobile */
@media (max-width: 480px) {
  .c7e-customization-wrapper {
    padding: 15px;
  }
  
  .c7e-option-label {
    font-size: 13px;
    padding: 10px 12px;
  }
  
  .c7e-custom-price {
    display: block;
    margin-top: 4px;
  }
}
