
/* Switch Toggle Styles - Version améliorée plus visible */
.form-group input[type="checkbox"][name="second_email_active"],
form input[type="checkbox"][name="second_email_active"],
.customer-form input[type="checkbox"][name="second_email_active"] {
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 60px;
  height: 30px;
  background-color: #ddd;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  border: 2px solid #ddd;
  margin: 0 8px 0 0;
  padding: 0;
  vertical-align: middle;
  flex-shrink: 0;
  opacity: 1;
}

.form-group input[type="checkbox"][name="second_email_active"]:before,
form input[type="checkbox"][name="second_email_active"]:before,
.customer-form input[type="checkbox"][name="second_email_active"]:before {
  content: "";
  position: absolute;
  top: 2px;
  left: 1px;
  width: 22px;
  height: 22px;
  background-color: white;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.form-group input[type="checkbox"][name="second_email_active"]:checked,
form input[type="checkbox"][name="second_email_active"]:checked,
.customer-form input[type="checkbox"][name="second_email_active"]:checked {
  background-color: var(--btn-primary-bg-color);
  border-color: var(--btn-primary-bg-color--is-hover);
}

.form-group input[type="checkbox"][name="second_email_active"]:checked:before,
form input[type="checkbox"][name="second_email_active"]:checked:before,
.customer-form input[type="checkbox"][name="second_email_active"]:checked:before {
  transform: translateX(30px);
}

.form-group input[type="checkbox"][name="second_email_active"]:hover,
form input[type="checkbox"][name="second_email_active"]:hover,
.customer-form input[type="checkbox"][name="second_email_active"]:hover {
  opacity: 0.8;
  transform: scale(1.02);
}

.form-group input[type="checkbox"][name="second_email_active"]:focus,
form input[type="checkbox"][name="second_email_active"]:focus,
.customer-form input[type="checkbox"][name="second_email_active"]:focus {
  box-shadow: 0 0 0 3px rgba(37, 185, 215, 0.3);
}

/* Amélioration de l'alignement avec le label */
.form-group .form-control-label,
form .form-control-label,
.customer-form .form-control-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

/* Style pour le texte du label */
.form-group input[name="second_email_active"] + label,
form input[name="second_email_active"] + label,
.customer-form input[name="second_email_active"] + label {
  cursor: pointer;
  user-select: none;
  font-weight: 500;
  margin: 0;
}

.form-group .custom-checkbox input[name="second_email_active"] + span{
  display: none;
}

.custom-checkbox label{
  margin-top: 10px;
}
