/* Estilos para campos de pessoa jurídica */

.legal-person-field {
  display: none !important;
  transition: all 0.3s ease;
}

.legal-person-field.show {
  display: block !important;
}

/* Estilos para campos de pessoa física */
#billing_birthdate-container {
  transition: all 0.3s ease;
}

.legal-person-field .form-row {
  margin-bottom: 1rem;
}

.legal-person-field label {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  display: block;
}

.legal-person-field input[type="text"],
.legal-person-field select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.legal-person-field input[type="text"]:focus,
.legal-person-field select:focus {
  outline: none;
  border-color: #007cba;
  box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.legal-person-field input[type="checkbox"] {
  margin-right: 0.5rem;
  transform: scale(1.2);
}

/* .ie-number-field {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 4px;
  border-left: 4px solid #007cba;
} */

.ie-number-field label {
  color: #007cba;
  font-weight: 600;
}

/* Estilos para campos obrigatórios */
.legal-person-field .required {
  color: #e74c3c;
  font-weight: bold;
}

/* Estilos para mensagens de erro */
.legal-person-field .woocommerce-error {
  color: #e74c3c;
  font-size: 12px;
  margin-top: 0.25rem;
  display: block;
}

.legal-person-field input.woocommerce-invalid,
.legal-person-field select.woocommerce-invalid {
  border-color: #e74c3c;
  box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.1);
}

/* Responsividade */
@media (max-width: 768px) {
  .legal-person-field .form-row-first,
  .legal-person-field .form-row-last {
    width: 100%;
    float: none;
  }

  .legal-person-field .form-row-wide {
    width: 100%;
  }
}

/* Animações */
.legal-person-field {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Estilo para o campo de pessoa jurídica selecionada */
/* #billing_persontype_field {
  background-color: #e8f4fd;
  padding: 1rem;
  border-radius: 4px;
  border-left: 4px solid #007cba;
  margin-bottom: 1rem;
} */

/* #billing_persontype_field label {
  color: #007cba;
  font-weight: 600;
} */

/* Estilo para campos desabilitados */
.legal-person-field input:disabled {
  background-color: #f5f5f5;
  color: #999;
  cursor: not-allowed;
}

/* Estilo para o checkbox de isento */
/* #billing_ie_isento_field {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  background-color: #fff3cd;
  border-radius: 4px;
  border-left: 4px solid #ffc107;
} */

/* #billing_ie_isento_field label {
  margin-bottom: 0;
  color: #856404;
  font-weight: 500;
} */

#billing_ie_isento_field input[type="checkbox"] {
  margin-right: 0.75rem;
}

#custom-billing-form {
  .required {
    color: #e74c3c;
  }
}
